|
@@ -573,6 +573,11 @@
|
|
|
* @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by
|
|
|
* its %NL80211_ATTR_WDEV identifier.
|
|
|
*
|
|
|
+ * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to
|
|
|
+ * notify userspace that AP has rejected the connection request from a
|
|
|
+ * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON
|
|
|
+ * is used for this.
|
|
|
+ *
|
|
|
* @NL80211_CMD_MAX: highest used command number
|
|
|
* @__NL80211_CMD_AFTER_LAST: internal use
|
|
|
*/
|
|
@@ -719,6 +724,8 @@ enum nl80211_commands {
|
|
|
NL80211_CMD_START_P2P_DEVICE,
|
|
|
NL80211_CMD_STOP_P2P_DEVICE,
|
|
|
|
|
|
+ NL80211_CMD_CONN_FAILED,
|
|
|
+
|
|
|
/* add new commands above here */
|
|
|
|
|
|
/* used to define NL80211_CMD_MAX below */
|
|
@@ -1262,6 +1269,10 @@ enum nl80211_commands {
|
|
|
* was used to provide the hint. For the different types of
|
|
|
* allowed user regulatory hints see nl80211_user_reg_hint_type.
|
|
|
*
|
|
|
+ * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected
|
|
|
+ * the connection request from a station. nl80211_connect_failed_reason
|
|
|
+ * enum has different reasons of connection failure.
|
|
|
+ *
|
|
|
* @NL80211_ATTR_MAX: highest attribute number currently defined
|
|
|
* @__NL80211_ATTR_AFTER_LAST: internal use
|
|
|
*/
|
|
@@ -1517,6 +1528,8 @@ enum nl80211_attrs {
|
|
|
|
|
|
NL80211_ATTR_USER_REG_HINT_TYPE,
|
|
|
|
|
|
+ NL80211_ATTR_CONN_FAILED_REASON,
|
|
|
+
|
|
|
/* add attributes here, update the policy in nl80211.c */
|
|
|
|
|
|
__NL80211_ATTR_AFTER_LAST,
|
|
@@ -3045,4 +3058,15 @@ enum nl80211_probe_resp_offload_support_attr {
|
|
|
NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3,
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * enum nl80211_connect_failed_reason - connection request failed reasons
|
|
|
+ * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be
|
|
|
+ * handled by the AP is reached.
|
|
|
+ * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Client's MAC is in the AP's blocklist.
|
|
|
+ */
|
|
|
+enum nl80211_connect_failed_reason {
|
|
|
+ NL80211_CONN_FAIL_MAX_CLIENTS,
|
|
|
+ NL80211_CONN_FAIL_BLOCKED_CLIENT,
|
|
|
+};
|
|
|
+
|
|
|
#endif /* __LINUX_NL80211_H */
|