diff options
author | Daniel Drake <dsd@gentoo.org> | 2007-07-10 17:32:10 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-07-12 20:07:26 (GMT) |
commit | 5628221caf88e2a052782b042e12da7cd34111b0 (patch) | |
tree | b4dbee3be1aa2b39e3d4c6f384b28d07740465fd /net/mac80211/ieee80211_i.h | |
parent | 1fd5e589d8c7d3cd42ddd39358338766cfcedec8 (diff) | |
download | linux-5628221caf88e2a052782b042e12da7cd34111b0.tar.xz |
[PATCH] mac80211: ERP IE handling improvements
The "protection needed" flag is currently parsed out of the ERP IE in
beacons. This patch allows the ERP IE to be available at assocation time
and causes the appropriate actions to be performed earlier.
It is slightly complicated by the fact that most APs don't include the
ERP IE in association responses. To work around this, we store ERP
values in the ieee80211_sta_bss structure.
Also added some WLAN_ERP defines for use by upcoming patches.
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index b222a9a..99ff7c5 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -99,6 +99,12 @@ struct ieee80211_sta_bss { int probe_resp; unsigned long last_update; + /* during assocation, we save an ERP value from a probe response so + * that we can feed ERP info to the driver when handling the + * association completes. these fields probably won't be up-to-date + * otherwise, you probably don't want to use them. */ + int has_erp_value; + u8 erp_value; }; |