Add Linux rfkill support
authorJouni Malinen <j@w1.fi>
Sun, 23 May 2010 07:27:32 +0000 (10:27 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 May 2010 07:27:32 +0000 (10:27 +0300)
commit8401a6b028c464a427654496b7b4a4cfb4ab8492
tree2a58f83fd3564e81314b8620debcea376e7585c9
parent6deb41e73f74270656150e70cf6323276dd54f14
Add Linux rfkill support

Add a new wpa_supplicant state: interface disabled. This can be used
to allow wpa_supplicant to be running with the network interface even
when the driver does not actually allow any radio operations (e.g.,
due to rfkill).

Allow driver_nl80211.c and driver_wext.c to start while rfkill is in
blocked state (i.e., when ifconfig up fails) and process rfkill
events to block/unblock WLAN.
12 files changed:
src/common/defs.h
src/drivers/driver.h
src/drivers/driver_nl80211.c
src/drivers/driver_wext.c
src/drivers/driver_wext.h
src/drivers/drivers.mak
src/drivers/rfkill.c [new file with mode: 0644]
src/drivers/rfkill.h [new file with mode: 0644]
wpa_supplicant/ctrl_iface.c
wpa_supplicant/events.c
wpa_supplicant/scan.c
wpa_supplicant/wpa_supplicant.c