summaryrefslogtreecommitdiffstats
path: root/package/mac80211/files/lib/wifi
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-17 13:29:22 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-17 13:29:22 +0000
commit8b99a957f2d8e712fdea90564f127f65040d36cd (patch)
tree741663229bb0688f4e9b51f9139e62ab1b8a75fd /package/mac80211/files/lib/wifi
parentf6b242d80b0fd6e280c4a9379bc97323944a0a79 (diff)
mac80211 wifi script: Tell hostapd to use the nl80211 driver.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10477 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/files/lib/wifi')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 39a7034ab..58fa1be49 100644
--- 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
- # 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
@@ -131,8 +131,8 @@ enable_mac80211() {
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