openwisp / OpenWISP-Firmware

An OpenWRT based firmware to be used with OpenWISP Manager
http://openwisp.org
GNU General Public License v3.0
86 stars 43 forks source link

802.11a/an-only AP are not supported #12

Closed dguerri closed 9 years ago

dguerri commented 12 years ago

Access points with only 5Ghz radios are not supported because OWF forces the use of channel 1 (i.e. 2,412Ghz) for the setup services:

https://github.com/openwisp/OpenWISP-Firmware/blob/master/tools/mac80211.sh#L71 https://github.com/openwisp/OpenWISP-Firmware/blob/master/owispmanager.sh#L305

If we're using mac80211 driver we can use something like the following in order to determine the first available channel:

iw phy0 info | awk 'BEGIN { FS="[\]|\[]" } ; /Frequencies/ { getline; print $2 }'

The output on a Nanostation M2:

~# iw phy0 info | awk 'BEGIN { FS="[\]|\[]" } ; /Frequencies/ { getline; print $2 }'
1
AndreaFerraresi commented 12 years ago

You have to modify your /tmp/configuration.hostapd with

driver=nl80211 hw_mode=a channel=48

i'm currently try to find the right approach in order to patch this issue, maybe a cmdline option

dguerri commented 12 years ago

Please leave this bug open until a solution will be committed. Moreover, even if the problem is not where I thought, we should remove some useless code from the scripts I've linked in the bug report.

IMO an autodetect feature is a way more practical since it won't require a separate firmware for a and bg devices.

AndreaFerraresi commented 11 years ago

Fixed in 80211a branch but still in testing, when it's ready i'll send a pull request

dguerri commented 11 years ago

Problem is still present in master

claudyus commented 9 years ago

is now in master after commit https://github.com/openwisp/OpenWISP-Firmware/commit/0ef1abbe54947ca2d51940902016933317b35481 (wrong description in commit)