projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5aeceaa
)
mac80211 wifi script: Tell hostapd to use the nl80211 driver.
author
Michael Büsch
<mb@bu3sch.de>
Sun, 17 Feb 2008 13:29:22 +0000
(13:29 +0000)
committer
Michael Büsch
<mb@bu3sch.de>
Sun, 17 Feb 2008 13:29:22 +0000
(13:29 +0000)
SVN-Revision: 10477
package/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index 39a7034abd5a4c2b1fa72a6b1e10d4abec480657..58fa1be492fac15703efda74ac0181c9a2949fe9 100644
(file)
--- a/
package/mac80211/files/lib/wifi/mac80211.sh
+++ b/
package/mac80211/files/lib/wifi/mac80211.sh
@@
-29,7
+29,7
@@
disable_mac80211() (
set_wifi_down "$device"
# kill all running hostapd and wpa_supplicant processes that
set_wifi_down "$device"
# kill all running hostapd and wpa_supplicant processes that
- # are running on atheros vifs
+ # are running on atheros
/mac80211
vifs
for pid in `pidof hostapd wpa_supplicant`; do
grep wlan /proc/$pid/cmdline >/dev/null && \
kill $pid
for pid in `pidof hostapd wpa_supplicant`; do
grep wlan /proc/$pid/cmdline >/dev/null && \
kill $pid
@@
-131,8
+131,8
@@
enable_mac80211() {
case "$mode" in
ap)
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
case "$mode" in
ap)
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
- hostapd_setup_vif "$vif"
devicescape
|| {
- echo "enable_
atheros
($device): Failed to set up wpa for interface $ifname" >&2
+ hostapd_setup_vif "$vif"
nl80211
|| {
+ echo "enable_
mac80211
($device): Failed to set up wpa for interface $ifname" >&2
# make sure this wifi interface won't accidentally stay open without encryption
ifconfig "$ifname" down
continue
# make sure this wifi interface won't accidentally stay open without encryption
ifconfig "$ifname" down
continue