mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -29,7 +29,7 @@ disable_mac80211() (
|
|||||||
|
|
||||||
set_wifi_down "$device"
|
set_wifi_down "$device"
|
||||||
# kill all running hostapd and wpa_supplicant processes that
|
# 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
|
for pid in `pidof hostapd wpa_supplicant`; do
|
||||||
grep wlan /proc/$pid/cmdline >/dev/null && \
|
grep wlan /proc/$pid/cmdline >/dev/null && \
|
||||||
kill $pid
|
kill $pid
|
||||||
@@ -131,8 +131,8 @@ enable_mac80211() {
|
|||||||
case "$mode" in
|
case "$mode" in
|
||||||
ap)
|
ap)
|
||||||
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
|
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
|
||||||
hostapd_setup_vif "$vif" devicescape || {
|
hostapd_setup_vif "$vif" nl80211 || {
|
||||||
echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
|
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
|
# make sure this wifi interface won't accidentally stay open without encryption
|
||||||
ifconfig "$ifname" down
|
ifconfig "$ifname" down
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user