aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-10-22 11:35:14 -0400
committerJohannes Berg <johannes.berg@intel.com>2015-11-03 04:54:58 -0500
commite86abc689c5cb963f713c1bab9c37775421a6a96 (patch)
tree2c475d3c7f360251c8a25cb93eeebd8374889fd7
parent520c75dcae6e588670962243bac6324e7839b648 (diff)
cfg80211/mac80211: clarify RSSI CQM reporting requirements
The previous patch changed mac80211 to always report an event after a CQM RSSI reconfiguration. Document that as expected behaviour in both the cfg80211 and mac80211 API. Currently, iwlmvm already implements that behaviour; the other drivers implementing CQM RSSI events may have to be changed. This behaviour lets userspace know what the current state is without relying on querying the data which is racy. Reviewed-by: Sharon, Sara <sara.sharon@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--include/net/cfg80211.h4
-rw-r--r--include/net/mac80211.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 48155be5db7f..2c7bdb81d30c 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2399,6 +2399,10 @@ struct cfg80211_qos_map {
2399 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1 2399 * @set_power_mgmt: Configure WLAN power management. A timeout value of -1
2400 * allows the driver to adjust the dynamic ps timeout value. 2400 * allows the driver to adjust the dynamic ps timeout value.
2401 * @set_cqm_rssi_config: Configure connection quality monitor RSSI threshold. 2401 * @set_cqm_rssi_config: Configure connection quality monitor RSSI threshold.
2402 * After configuration, the driver should (soon) send an event indicating
2403 * the current level is above/below the configured threshold; this may
2404 * need some care when the configuration is changed (without first being
2405 * disabled.)
2402 * @set_cqm_txe_config: Configure connection quality monitor TX error 2406 * @set_cqm_txe_config: Configure connection quality monitor TX error
2403 * thresholds. 2407 * thresholds.
2404 * @sched_scan_start: Tell the driver to start a scheduled scan. 2408 * @sched_scan_start: Tell the driver to start a scheduled scan.
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 4b9dd070aeb9..dac575c55c62 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -482,7 +482,9 @@ struct ieee80211_event {
482 * Note that with TDLS this can be the case (channel is HT, protection must 482 * Note that with TDLS this can be the case (channel is HT, protection must
483 * be used from this field) even when the BSS association isn't using HT. 483 * be used from this field) even when the BSS association isn't using HT.
484 * @cqm_rssi_thold: Connection quality monitor RSSI threshold, a zero value 484 * @cqm_rssi_thold: Connection quality monitor RSSI threshold, a zero value
485 * implies disabled 485 * implies disabled. As with the cfg80211 callback, a change here should
486 * cause an event to be sent indicating where the current value is in
487 * relation to the newly configured threshold.
486 * @cqm_rssi_hyst: Connection quality monitor RSSI hysteresis 488 * @cqm_rssi_hyst: Connection quality monitor RSSI hysteresis
487 * @arp_addr_list: List of IPv4 addresses for hardware ARP filtering. The 489 * @arp_addr_list: List of IPv4 addresses for hardware ARP filtering. The
488 * may filter ARP queries targeted for other addresses than listed here. 490 * may filter ARP queries targeted for other addresses than listed here.