diff options
author | Pandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com> | 2012-09-21 05:36:14 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-10-24 04:49:53 -0400 |
commit | 07033ce2fbfb8d27663d1cd1e9ce36b9661007e0 (patch) | |
tree | f003e9bbd27cbdea860c330d8fc4557847068ddd | |
parent | baec5c6d0b191a44977a5fca131b5215e1868341 (diff) |
ath6kl: Max clients reached notification
When a station requests connection to an AP, that has already been
connected to the maximum number of stations it can support, an event
is sent to user space via NL80211_CMD_CONN_FAILED command and reason
attribute NL80211_ATTR_CONN_FAILED_REASON with
NL80211_CONN_FAIL_MAX_CLIENTS as reason.
Signed-off-by: Pandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index 9533558a6235..cc2749a9e7fb 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c | |||
@@ -1004,6 +1004,13 @@ void ath6kl_disconnect_event(struct ath6kl_vif *vif, u8 reason, u8 *bssid, | |||
1004 | ar->last_ch = le16_to_cpu(vif->profile.ch); | 1004 | ar->last_ch = le16_to_cpu(vif->profile.ch); |
1005 | } | 1005 | } |
1006 | 1006 | ||
1007 | if (prot_reason_status == WMI_AP_REASON_MAX_STA) { | ||
1008 | /* send max client reached notification to user space */ | ||
1009 | cfg80211_conn_failed(vif->ndev, bssid, | ||
1010 | NL80211_CONN_FAIL_MAX_CLIENTS, | ||
1011 | GFP_KERNEL); | ||
1012 | } | ||
1013 | |||
1007 | if (!ath6kl_remove_sta(ar, bssid, prot_reason_status)) | 1014 | if (!ath6kl_remove_sta(ar, bssid, prot_reason_status)) |
1008 | return; | 1015 | return; |
1009 | 1016 | ||