mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
fix hostapd a/g mode if only the channel is configured in the config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13076 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1d9daa849b
commit
a3dae311fd
@ -79,7 +79,10 @@ hostapd_setup_vif() {
|
||||
11a) agmode=a;;
|
||||
11b) agmode=b;;
|
||||
11g) agmode=g;;
|
||||
*) agmode=;;
|
||||
*)
|
||||
agmode=
|
||||
[ "$channel" -gt 14 ] && agmode=a
|
||||
;;
|
||||
esac
|
||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||
driver=$driver
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user