parse the a/g mode setting in /etc/config/wireless when setting up hostapd (instead of hardcoding it to g)
SVN-Revision: 12673
This commit is contained in:
parent
065306a9a8
commit
69692e019a
1 changed files with 8 additions and 1 deletions
|
@ -74,10 +74,17 @@ hostapd_setup_vif() {
|
|||
config_get ssid "$vif" ssid
|
||||
config_get device "$vif" device
|
||||
config_get channel "$device" channel
|
||||
config_get agmode "$device" agmode
|
||||
case "$agmode" in
|
||||
11a) agmode=a;;
|
||||
11b) agmode=b;;
|
||||
11g) agmode=g;;
|
||||
*) agmode=;;
|
||||
esac
|
||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||
driver=$driver
|
||||
interface=$ifname
|
||||
hw_mode=g
|
||||
hw_mode=${agmode:-g}
|
||||
channel=$channel
|
||||
${bridge:+bridge=$bridge}
|
||||
ssid=$ssid
|
||||
|
|
Loading…
Reference in a new issue