aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-07 08:37:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:02:30 -0400
commit3e5d7649a64e558e4146ddfad4dfcf13fc65dd47 (patch)
treefa51725ca07cf682e6694ba5f107d8614d9f0972 /include
parent2ffa5fede379091bf62a732462b829e4b51af054 (diff)
cfg80211: let SME control reassociation vs. association
Since we don't really know that well in the kernel, let's let the SME control whether it wants to use reassociation or not, by allowing it to give the previous BSSID in the associate() parameters. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nl80211.h5
-rw-r--r--include/net/cfg80211.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index b34c17f52f3e..e496a2daf7ef 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -564,6 +564,9 @@ enum nl80211_commands {
564 * @NL80211_ATTR_RESP_IE: (Re)association response information elements as 564 * @NL80211_ATTR_RESP_IE: (Re)association response information elements as
565 * sent by peer, for ROAM and successful CONNECT events. 565 * sent by peer, for ROAM and successful CONNECT events.
566 * 566 *
567 * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used by in ASSOCIATE
568 * commands to specify using a reassociate frame
569 *
567 * @NL80211_ATTR_MAX: highest attribute number currently defined 570 * @NL80211_ATTR_MAX: highest attribute number currently defined
568 * @__NL80211_ATTR_AFTER_LAST: internal use 571 * @__NL80211_ATTR_AFTER_LAST: internal use
569 */ 572 */
@@ -687,6 +690,8 @@ enum nl80211_attrs {
687 NL80211_ATTR_REQ_IE, 690 NL80211_ATTR_REQ_IE,
688 NL80211_ATTR_RESP_IE, 691 NL80211_ATTR_RESP_IE,
689 692
693 NL80211_ATTR_PREV_BSSID,
694
690 /* add attributes here, update the policy in nl80211.c */ 695 /* add attributes here, update the policy in nl80211.c */
691 696
692 __NL80211_ATTR_AFTER_LAST, 697 __NL80211_ATTR_AFTER_LAST,
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index ca986cc91098..71847d3c2640 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -664,10 +664,11 @@ struct cfg80211_auth_request {
664 * @ie_len: Length of ie buffer in octets 664 * @ie_len: Length of ie buffer in octets
665 * @use_mfp: Use management frame protection (IEEE 802.11w) in this association 665 * @use_mfp: Use management frame protection (IEEE 802.11w) in this association
666 * @crypto: crypto settings 666 * @crypto: crypto settings
667 * @prev_bssid: previous BSSID, if not %NULL use reassociate frame
667 */ 668 */
668struct cfg80211_assoc_request { 669struct cfg80211_assoc_request {
669 struct cfg80211_bss *bss; 670 struct cfg80211_bss *bss;
670 const u8 *ie; 671 const u8 *ie, *prev_bssid;
671 size_t ie_len; 672 size_t ie_len;
672 struct cfg80211_crypto_settings crypto; 673 struct cfg80211_crypto_settings crypto;
673 bool use_mfp; 674 bool use_mfp;