History

cfg80211: clean up beacon loss CQM event

Having it as a sub-event for RSSI thresholds is very ugly, but luckily no userspace actually uses the events yet. Move the event to its own function call internally and to its own event attribute in nl80211.

Johannes Berg committed 11 years ago

Commit 98f03341 parent 5b97f497 files · +62 −10Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+4−3
@@ -3451,6 +3451,8 @@ enum nl80211_ps_state { · 3450 unmodified lines
34513451 * interval in which %NL80211_ATTR_CQM_TXE_PKTS and
34523452 * %NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an
34533453 * %NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting.
3454+ * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon
3455+ * loss event
34543456 * @__NL80211_ATTR_CQM_AFTER_LAST: internal
34553457 * @NL80211_ATTR_CQM_MAX: highest key attribute
34563458 */
@@ -3463,6 +3465,7 @@ enum nl80211_attr_cqm { · 6 unmodified lines
34633465 NL80211_ATTR_CQM_TXE_RATE,
34643466 NL80211_ATTR_CQM_TXE_PKTS,
34653467 NL80211_ATTR_CQM_TXE_INTVL,
3468+ NL80211_ATTR_CQM_BEACON_LOSS_EVENT,
34663469
34673470 /* keep last */
34683471 __NL80211_ATTR_CQM_AFTER_LAST,
@@ -3475,9 +3478,7 @@ enum nl80211_attr_cqm { · 6 unmodified lines
34753478 * configured threshold
34763479 * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the
34773480 * configured threshold
3478− * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: The device experienced beacon loss.
3479− * (Note that deauth/disassoc will still follow if the AP is not
3480− * available. This event might get used as roaming event, etc.)
3481+ * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent)
34813482 */
34823483 enum nl80211_cqm_rssi_threshold_event {
34833484 NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,