Firefly Open Source Community

Title: Wi-Fi Access Point mode using hostapd [Print This Page]

Author: bragma    Time: 7/20/2015 19:47
Title: Wi-Fi Access Point mode using hostapd
Hi,
does the Firefly-RK3288 support access point mode? I'm trying to set up hostapd on Ubuntu but I've not been able to make it work. Anyone managed to do it?
Thanks!
Author: zhansb    Time: 7/21/2015 11:48
some one have support it£¬ but it is chinese£º
http://developer.t-firefly.com/thread-1684-1-1.html
Author: busybee    Time: 7/21/2015 12:00
Actually, this is a YES.

Here is the link (but in Chinese, use Google translate):

http://developer.t-firefly.com/thread-1684-1-1.html
Author: bragma    Time: 7/21/2015 16:24
Thanks, I'll try to understand what's in there... :-)
Author: bragma    Time: 7/21/2015 16:56
Thanks, I've followed the instructions on the link you posted and I can confirm it works. It is a pain to bring everything down and upload a new firmware, but better than nothing. :-)
Author: bragma    Time: 7/31/2015 19:54
Hi,
after some testing I've managed to make it work. No need to rewrite the firmware, just need to change the "op_mode" and restart wifi. At the moment, the only way I've found to restart the wifi is to use rfkill or nmcli:

  1. sudo nmcli radio wifi off
  2. sudo su -c "echo 2 > /sys/module/bcmdhd/parameters/op_mode"
  3. sudo nmcli radio wifi on
Copy the code


Now I'm facing the problem that while in AP mode, network manager can't scan the network anymore (nmcli dev wifi rescan). When it tries, I see this error in dmesg:

  1. CFG80211-ERROR) __wl_cfg80211_scan : Invalid Scan Command at SoftAP mode
  2. CFG80211-ERROR) wl_cfg80211_scan : scan error (-22)
Copy the code


The error seems to imply that scan can't be done, but using iwlist it seems to work instead (iwlist wlan0 scan), even if the kernel complains:

  1. bcmsdh_sdmmc mmc2:0001:2 wlan0: (WE) : Wireless Event (cmd=0x8B19) too big (65303)
  2. CFG80211-ERROR) wl_notify_scan_status : scan is not ready
Copy the code


Any idea or suggestion? Thanks!





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1