OSDN Git Service

cfg80211: track hidden SSID networks properly
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Feb 2013 01:06:18 +0000 (02:06 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 17:44:57 +0000 (18:44 +0100)
commit776b3580178f2065838fa0db0eb7a41b57495c0a
tree7a12015c647583690755f53482e40de7f57b3a31
parent1f4ac5a63f897a480fffd0d5c843b03f02c384a5
cfg80211: track hidden SSID networks properly

Currently, cfg80211 will copy beacon IEs from a previously
received hidden SSID beacon to a probe response entry, if
that entry is created after the beacon entry. However, if
it is the other way around, or if the beacon is updated,
such changes aren't propagated.

Fix this by tracking the relation between the probe
response and beacon BSS structs in this case.

In case drivers have private data stored in a BSS struct
and need access to such data from a beacon entry, cfg80211
now provides the hidden_beacon_bss pointer from the probe
response entry to the beacon entry.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.h
net/wireless/scan.c