diff options
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 28ba20fda3e2..2ea3edeee7aa 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -323,6 +323,12 @@ | |||
323 | * the TX command and %NL80211_ATTR_FRAME includes the contents of the | 323 | * the TX command and %NL80211_ATTR_FRAME includes the contents of the |
324 | * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged | 324 | * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged |
325 | * the frame. | 325 | * the frame. |
326 | * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command | ||
327 | * is used to configure connection quality monitoring notification trigger | ||
328 | * levels. | ||
329 | * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This | ||
330 | * command is used as an event to indicate the that a trigger level was | ||
331 | * reached. | ||
326 | * | 332 | * |
327 | * @NL80211_CMD_MAX: highest used command number | 333 | * @NL80211_CMD_MAX: highest used command number |
328 | * @__NL80211_CMD_AFTER_LAST: internal use | 334 | * @__NL80211_CMD_AFTER_LAST: internal use |
@@ -419,6 +425,9 @@ enum nl80211_commands { | |||
419 | NL80211_CMD_SET_POWER_SAVE, | 425 | NL80211_CMD_SET_POWER_SAVE, |
420 | NL80211_CMD_GET_POWER_SAVE, | 426 | NL80211_CMD_GET_POWER_SAVE, |
421 | 427 | ||
428 | NL80211_CMD_SET_CQM, | ||
429 | NL80211_CMD_NOTIFY_CQM, | ||
430 | |||
422 | /* add new commands above here */ | 431 | /* add new commands above here */ |
423 | 432 | ||
424 | /* used to define NL80211_CMD_MAX below */ | 433 | /* used to define NL80211_CMD_MAX below */ |
@@ -691,6 +700,15 @@ enum nl80211_commands { | |||
691 | * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was | 700 | * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was |
692 | * acknowledged by the recipient. | 701 | * acknowledged by the recipient. |
693 | * | 702 | * |
703 | * @NL80211_ATTR_CQM: connection quality monitor configuration in a | ||
704 | * nested attribute with %NL80211_ATTR_CQM_* sub-attributes. | ||
705 | * | ||
706 | * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command | ||
707 | * is requesting a local authentication/association state change without | ||
708 | * invoking actual management frame exchange. This can be used with | ||
709 | * NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE, | ||
710 | * NL80211_CMD_DISASSOCIATE. | ||
711 | * | ||
694 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 712 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
695 | * @__NL80211_ATTR_AFTER_LAST: internal use | 713 | * @__NL80211_ATTR_AFTER_LAST: internal use |
696 | */ | 714 | */ |
@@ -842,6 +860,10 @@ enum nl80211_attrs { | |||
842 | 860 | ||
843 | NL80211_ATTR_PS_STATE, | 861 | NL80211_ATTR_PS_STATE, |
844 | 862 | ||
863 | NL80211_ATTR_CQM, | ||
864 | |||
865 | NL80211_ATTR_LOCAL_STATE_CHANGE, | ||
866 | |||
845 | /* add attributes here, update the policy in nl80211.c */ | 867 | /* add attributes here, update the policy in nl80211.c */ |
846 | 868 | ||
847 | __NL80211_ATTR_AFTER_LAST, | 869 | __NL80211_ATTR_AFTER_LAST, |
@@ -1583,4 +1605,40 @@ enum nl80211_ps_state { | |||
1583 | NL80211_PS_ENABLED, | 1605 | NL80211_PS_ENABLED, |
1584 | }; | 1606 | }; |
1585 | 1607 | ||
1608 | /** | ||
1609 | * enum nl80211_attr_cqm - connection quality monitor attributes | ||
1610 | * @__NL80211_ATTR_CQM_INVALID: invalid | ||
1611 | * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies | ||
1612 | * the threshold for the RSSI level at which an event will be sent. Zero | ||
1613 | * to disable. | ||
1614 | * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies | ||
1615 | * the minimum amount the RSSI level must change after an event before a | ||
1616 | * new event may be issued (to reduce effects of RSSI oscillation). | ||
1617 | * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event | ||
1618 | * @__NL80211_ATTR_CQM_AFTER_LAST: internal | ||
1619 | * @NL80211_ATTR_CQM_MAX: highest key attribute | ||
1620 | */ | ||
1621 | enum nl80211_attr_cqm { | ||
1622 | __NL80211_ATTR_CQM_INVALID, | ||
1623 | NL80211_ATTR_CQM_RSSI_THOLD, | ||
1624 | NL80211_ATTR_CQM_RSSI_HYST, | ||
1625 | NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, | ||
1626 | |||
1627 | /* keep last */ | ||
1628 | __NL80211_ATTR_CQM_AFTER_LAST, | ||
1629 | NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1 | ||
1630 | }; | ||
1631 | |||
1632 | /** | ||
1633 | * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event | ||
1634 | * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW - The RSSI level is lower than the | ||
1635 | * configured threshold | ||
1636 | * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH - The RSSI is higher than the | ||
1637 | * configured threshold | ||
1638 | */ | ||
1639 | enum nl80211_cqm_rssi_threshold_event { | ||
1640 | NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW, | ||
1641 | NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH, | ||
1642 | }; | ||
1643 | |||
1586 | #endif /* __LINUX_NL80211_H */ | 1644 | #endif /* __LINUX_NL80211_H */ |