diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-01-22 12:07:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:13 -0500 |
commit | 078e1e60dd6c6b0d4bc8d58ccb80c008e8efc9ff (patch) | |
tree | 7fa2580b76a5693a37449e9cc075eee2394bb0c3 /include | |
parent | 07c1e852514e862e246b9f2962ce8fc0d7ac8ed1 (diff) |
mac80211: Add capability to enable/disable beaconing
This patch adds a flag to notify drivers to start and stop
beaconing when needed, for example, during a scan run. Based
on Sujith's first patch to do the same, but now disables
beaconing for all virtual interfaces while scanning, has a
separate change flag and tracks user-space requests.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
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/net/mac80211.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 634c08de6acb..35643c55827a 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -646,10 +646,12 @@ struct ieee80211_if_init_conf { | |||
646 | * @IEEE80211_IFCC_BSSID: The BSSID changed. | 646 | * @IEEE80211_IFCC_BSSID: The BSSID changed. |
647 | * @IEEE80211_IFCC_BEACON: The beacon for this interface changed | 647 | * @IEEE80211_IFCC_BEACON: The beacon for this interface changed |
648 | * (currently AP and MESH only), use ieee80211_beacon_get(). | 648 | * (currently AP and MESH only), use ieee80211_beacon_get(). |
649 | * @IEEE80211_IFCC_BEACON_ENABLED: The enable_beacon value changed. | ||
649 | */ | 650 | */ |
650 | enum ieee80211_if_conf_change { | 651 | enum ieee80211_if_conf_change { |
651 | IEEE80211_IFCC_BSSID = BIT(0), | 652 | IEEE80211_IFCC_BSSID = BIT(0), |
652 | IEEE80211_IFCC_BEACON = BIT(1), | 653 | IEEE80211_IFCC_BEACON = BIT(1), |
654 | IEEE80211_IFCC_BEACON_ENABLED = BIT(2), | ||
653 | }; | 655 | }; |
654 | 656 | ||
655 | /** | 657 | /** |
@@ -657,6 +659,8 @@ enum ieee80211_if_conf_change { | |||
657 | * | 659 | * |
658 | * @changed: parameters that have changed, see &enum ieee80211_if_conf_change. | 660 | * @changed: parameters that have changed, see &enum ieee80211_if_conf_change. |
659 | * @bssid: BSSID of the network we are associated to/creating. | 661 | * @bssid: BSSID of the network we are associated to/creating. |
662 | * @enable_beacon: Indicates whether beacons can be sent. | ||
663 | * This is valid only for AP/IBSS/MESH modes. | ||
660 | * | 664 | * |
661 | * This structure is passed to the config_interface() callback of | 665 | * This structure is passed to the config_interface() callback of |
662 | * &struct ieee80211_hw. | 666 | * &struct ieee80211_hw. |
@@ -664,6 +668,7 @@ enum ieee80211_if_conf_change { | |||
664 | struct ieee80211_if_conf { | 668 | struct ieee80211_if_conf { |
665 | u32 changed; | 669 | u32 changed; |
666 | const u8 *bssid; | 670 | const u8 *bssid; |
671 | bool enable_beacon; | ||
667 | }; | 672 | }; |
668 | 673 | ||
669 | /** | 674 | /** |