hostap/src
Johannes Berg 0e92fb8fae rfkill: Match only the correct expected wiphy rfkill
On systems that have multiple WLAN rfkill instances, the rfkill code
can become confused into thinking that the device was unblocked when
in fact it wasn't, because it only matches on the WLAN type.

Since it then stores the new (unblocked) state from the wrong rfkill
instance, it will never retry the failing IFF_UP operation and the
user has to toggle rfkill again, or otherwise intervene manually, in
this case to get back to operational state.

Fix this by using the existing (but unused) ifname argument when the
rfkill instance is created to match to a specific rfkill index only.

As a P2P Device interface does not have a netdev interface associated
with it, use the name of a sibling interface to initialize the rfkill
context for the P2P Device interface. For nl80211, as the wiphy index
is known only after getting the driver capabilities from the kernel,
move the initialization of the rfkill object to
wpa_driver_nl80211_finish_drv_init().

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
2015-12-18 22:26:18 +02:00
..
ap FT: Fix FTIE generation for EAPOL-Key msg 3/4 2015-12-10 00:14:36 +02:00
common EAP peer: External server certificate chain validation 2015-12-12 18:24:27 +02:00
crypto EAP peer: External server certificate chain validation 2015-12-12 18:24:27 +02:00
drivers rfkill: Match only the correct expected wiphy rfkill 2015-12-18 22:26:18 +02:00
eap_common EAP-FAST: Check T-PRF result in MSK/EMSK derivation 2015-12-12 11:20:05 +02:00
eap_peer EAP-TTLS peer: Fix parsing auth= and autheap= phase2 params 2015-12-18 00:24:30 +02:00
eap_server EAP-FAST: Check T-PRF result in MSK/EMSK derivation 2015-12-12 11:20:05 +02:00
eapol_auth Remove unreachable PMKSA cache entry addition on Access-Accept 2015-10-14 18:43:26 +03:00
eapol_supp Fix EAPOL reauth after FT protocol or offloaded PMKSA cache use 2015-11-19 21:16:18 +02:00
fst FST: Make FST peer connection check more permissive in hostapd 2015-11-25 17:30:59 +02:00
l2_packet l2_packet: Add build option to disable Linux packet socket workaround 2015-10-25 19:56:53 +02:00
p2p P2P: Add support for VHT 80+80 MHz and 160 MHz 2015-11-25 19:01:20 +02:00
pae MACsec: Update protect frames and replay on reauthentication 2014-12-09 16:56:10 +02:00
radius RADIUS: Avoid undefined behavior in pointer arithmetic 2015-10-25 15:34:59 +02:00
rsn_supp TDLS: Ignore incoming TDLS Setup Response retries 2015-12-18 20:32:39 +02:00
tls TLS: Report OCSP rejection cases when no valid response if found 2015-12-17 11:47:38 +02:00
utils utils: Fix NULL pointer dereference with unexpected kernel behavior 2015-12-18 00:24:52 +02:00
wps WPS: Support parallel UPnP WPS protocol runs 2015-11-30 16:57:11 +02:00
lib.rules Add QUIET=1 option for make 2014-12-29 15:49:05 +02:00
Makefile FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00