aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-01-19 03:29:58 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-27 14:56:54 -0500
commitea086359a63bd0dd85c1d784d0425340649613fa (patch)
treee00130d16f0907bfdde4bc679e862159c058361b /include/net/mac80211.h
parentc1288b1278d00169e12495eb53ad128e09560b69 (diff)
mac80211: make CQM RSSI support per virtual interface
Similar to the previous beacon filtering patch, make CQM RSSI support depend on the flags that the driver set for virtual interfaces. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Luciano Coelho <coelho@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index ae8db247bdeb..650185876846 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -856,9 +856,14 @@ struct ieee80211_channel_switch {
856 * 856 *
857 * @IEEE80211_VIF_BEACON_FILTER: the device performs beacon filtering 857 * @IEEE80211_VIF_BEACON_FILTER: the device performs beacon filtering
858 * on this virtual interface to avoid unnecessary CPU wakeups 858 * on this virtual interface to avoid unnecessary CPU wakeups
859 * @IEEE80211_VIF_SUPPORTS_CQM_RSSI: the device can do connection quality
860 * monitoring on this virtual interface -- i.e. it can monitor
861 * connection quality related parameters, such as the RSSI level and
862 * provide notifications if configured trigger levels are reached.
859 */ 863 */
860enum ieee80211_vif_flags { 864enum ieee80211_vif_flags {
861 IEEE80211_VIF_BEACON_FILTER = BIT(0), 865 IEEE80211_VIF_BEACON_FILTER = BIT(0),
866 IEEE80211_VIF_SUPPORTS_CQM_RSSI = BIT(1),
862}; 867};
863 868
864/** 869/**
@@ -1119,11 +1124,6 @@ enum sta_notify_cmd {
1119 * When this flag is set, signaling beacon-loss will cause an immediate 1124 * When this flag is set, signaling beacon-loss will cause an immediate
1120 * change to disassociated state. 1125 * change to disassociated state.
1121 * 1126 *
1122 * @IEEE80211_HW_SUPPORTS_CQM_RSSI:
1123 * Hardware can do connection quality monitoring - i.e. it can monitor
1124 * connection quality related parameters, such as the RSSI level and
1125 * provide notifications if configured trigger levels are reached.
1126 *
1127 * @IEEE80211_HW_NEED_DTIM_PERIOD: 1127 * @IEEE80211_HW_NEED_DTIM_PERIOD:
1128 * This device needs to know the DTIM period for the BSS before 1128 * This device needs to know the DTIM period for the BSS before
1129 * associating. 1129 * associating.
@@ -1167,7 +1167,7 @@ enum ieee80211_hw_flags {
1167 IEEE80211_HW_SUPPORTS_UAPSD = 1<<17, 1167 IEEE80211_HW_SUPPORTS_UAPSD = 1<<17,
1168 IEEE80211_HW_REPORTS_TX_ACK_STATUS = 1<<18, 1168 IEEE80211_HW_REPORTS_TX_ACK_STATUS = 1<<18,
1169 IEEE80211_HW_CONNECTION_MONITOR = 1<<19, 1169 IEEE80211_HW_CONNECTION_MONITOR = 1<<19,
1170 IEEE80211_HW_SUPPORTS_CQM_RSSI = 1<<20, 1170 /* reuse bit 20 */
1171 IEEE80211_HW_SUPPORTS_PER_STA_GTK = 1<<21, 1171 IEEE80211_HW_SUPPORTS_PER_STA_GTK = 1<<21,
1172 IEEE80211_HW_AP_LINK_PS = 1<<22, 1172 IEEE80211_HW_AP_LINK_PS = 1<<22,
1173 IEEE80211_HW_TX_AMPDU_SETUP_IN_HW = 1<<23, 1173 IEEE80211_HW_TX_AMPDU_SETUP_IN_HW = 1<<23,
@@ -3408,7 +3408,7 @@ void ieee80211_enable_dyn_ps(struct ieee80211_vif *vif);
3408 * @rssi_event: the RSSI trigger event type 3408 * @rssi_event: the RSSI trigger event type
3409 * @gfp: context flags 3409 * @gfp: context flags
3410 * 3410 *
3411 * When the %IEEE80211_HW_SUPPORTS_CQM_RSSI is set, and a connection quality 3411 * When the %IEEE80211_VIF_SUPPORTS_CQM_RSSI is set, and a connection quality
3412 * monitoring is configured with an rssi threshold, the driver will inform 3412 * monitoring is configured with an rssi threshold, the driver will inform
3413 * whenever the rssi level reaches the threshold. 3413 * whenever the rssi level reaches the threshold.
3414 */ 3414 */