nl80211: add new rssi event to indicate beacon loss
authorEliad Peller <eliad@wizery.com>
Tue, 15 May 2012 11:50:58 +0000 (14:50 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:23:21 +0000 (15:23 -0400)
Tell userspace about beacon loss event.
This event doesn't replace the deauth/disassoc that
might come if the AP is not available.

The driver can send this event in order to hint
userspace what might follow (which in turn can
use it as roaming trigger).

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/nl80211.h

index a6959f72745e1583525dc8c70565757123389915..6930dddad18a558a6e510a16a90042f0d4d97d33 100644 (file)
@@ -2534,10 +2534,14 @@ enum nl80211_attr_cqm {
  *      configured threshold
  * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the
  *      configured threshold
+ * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: The device experienced beacon loss.
+ *     (Note that deauth/disassoc will still follow if the AP is not
+ *     available. This event might get used as roaming event, etc.)
  */
 enum nl80211_cqm_rssi_threshold_event {
        NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,
        NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,
+       NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
 };