The most difficult thing in the task is to make it coexist nicely with the existing Harmattan infra which would like to see the WLAN connection just as a client device. The kernel part is the easy part You need to hack the startup scripts so that when you do a normal wlan connect it will load the normal mode wl12xx drivers (wl12xx_spi, wl12xx_sdio) and push up the wl1271-fw.bin firmware to the chip, and when you set up the AP mode it will unload the normal mode cleanly, push up the wl1271-fw-ap.bin firmware and kll off the network manager without affecting the 3g connection...