fix hostapd a/g mode if only the channel is configured in the config
SVN-Revision: 13076
This commit is contained in:
parent
1b5de1c105
commit
9161a70235
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ hostapd_setup_vif() {
|
||||||
11a) agmode=a;;
|
11a) agmode=a;;
|
||||||
11b) agmode=b;;
|
11b) agmode=b;;
|
||||||
11g) agmode=g;;
|
11g) agmode=g;;
|
||||||
*) agmode=;;
|
*)
|
||||||
|
agmode=
|
||||||
|
[ "$channel" -gt 14 ] && agmode=a
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||||
driver=$driver
|
driver=$driver
|
||||||
|
|
Loading…
Reference in a new issue