wcn36xx for MotoG (XT1045, CM 11.0)
Eugene Krasnikov
k.eugene.e at gmail.com
Tue Jan 27 11:54:34 PST 2015
I belive mesh network was working at some point.
2015-01-22 16:10 GMT+00:00 S <buildbreakfix at gmail.com>:
> Hello again, thanks for the reply - I actually just managed to get everything working last night!
>
> I was mistaken in that (I think) the XT1045 contains a wcn3680 so the output from the driver was correct. I compiled iw and had minimal success running hostap and manually connecting to networks.
>
> Turns out the trick was to adjust the Wifi.c file located in cyanogen/hardware/libhardware_legacy/wifi/wifi.c and recompile CM11.
> I forced wifi_load_driver() to return 1 since the driver downloads the firmware, and your shell script inserts the module. This allowed wpa_supplicant to run from init.rc, enabling the UI inside of android. Good news is the driver seems to work on CM11 with just a few tweaks, and it seems to work on the Motorola phones as well.
>
> Thanks for the support and all the work on this driver! I’ll continue testing and will begin investigating my initial goal of an AP—>Phone—>Phone relay. In some drivers this is called wifi "multi-role" I believe? Does it still seem feasible the firmware will support simultaneous connections to an AP and another phone?
>
> Thanks again,
> - Stephen
>
>
>
> On Jan 22, 2015, at 3:08 AM, Eugene Krasnikov <k.eugene.e at gmail.com> wrote:
>
>> Try to get iw working. Also have a look into kernel logs.
>>
>> 2015-01-20 7:28 GMT+00:00 S <buildbreakfix at gmail.com>:
>>> Hi again - just wanted to share my progress, especially since the MotoG and
>>> CM11 weren't previously tested.
>>>
>>> After a number of recompiles and file edits I got the driver to build and
>>> run on the device.
>>> Unfortunately the UI doesn’t seem to work with the driver. Manually bringing
>>> up the device with “netcfg wlan0 up” outputs the FW capabilities then throws
>>> the error:
>>>
>>> ADDRCONF(NETDEV_UP): wlan0: link is not ready
>>>
>>> Neither iw or iwconfig are available on the system so I can’t figure out a
>>> way to test getting the device online. No luck with starting from the UI
>>> either.
>>>
>>> Any help is appreciated. Thanks!
>>> Stephen
>>>
>>>
>>> Here are a few additional notes where I had to work around the read-me
>>> steps. Thought it might be helpful:
>>>
>>> • compiling compat on Mac OS 10.9 does not work for me and will not build
>>> the driver. I’ve switched to Linux.
>>> • Chip is detected as 3680. Behavior is the same if forced to run as 3660.
>>> • Needed to edit main.c before compiling. Added changes in BOLD
>>> static void wcn36xx_sw_scan_complete(struct ieee80211_hw *hw, struct
>>> ieee80211_vif *vif)
>>> static void wcn36xx_sw_scan_start(struct ieee80211_hw *hw, struct
>>> ieee80211_vif *vif,const u8 *mac_addr)
>>> • Newest firmware from Qcom doesn’t load. Firmware from CM11 does download
>>> properly.
>>> • hostapd with a default configuration does seems to work intermittently.
>>
>>
>>
>> --
>> Best regards,
>> Eugene
>
--
Best regards,
Eugene
More information about the wcn36xx
mailing list