projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ar71xx] register GPIO buttons on the AP83 board
[openwrt.git]
/
package
/
hostapd
/
files
/
hostapd.sh
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index
7a67cec
..
a6f5dba
100644
(file)
--- a/
package/hostapd/files/hostapd.sh
+++ b/
package/hostapd/files/hostapd.sh
@@
-79,7
+79,10
@@
hostapd_setup_vif() {
11a) agmode=a;;
11b) agmode=b;;
11g) agmode=g;;
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
esac
cat > /var/run/hostapd-$ifname.conf <<EOF
driver=$driver
@@
-93,6
+96,6
@@
wpa=$wpa
wpa_pairwise=$crypto
$hostapd_cfg
EOF
wpa_pairwise=$crypto
$hostapd_cfg
EOF
- hostapd -B /var/run/hostapd-$ifname.conf
+ hostapd -
P /var/run/wifi-$ifname.pid -
B /var/run/hostapd-$ifname.conf
}
}
This page took
0.025647 seconds
and
4
git commands to generate.