Skip to contentSkip to conversation

ath6kl: Max clients reached notification

PATCH Applied Pandiyarajan Pitchaimuthu 2 participants 2 messages Sep 21, 2012 – Oct 12, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/wireless/ath/ath6kl/main.c |    7 +++++++
 1 file changed, 7 insertions(+)
drivers/net/wireless/ath/ath6kl/main.c +7 -0
index 9533558..cc2749a 100644
@@ -1004,6 +1004,13 @@ void ath6kl_disconnect_event(struct ath6kl_vif *vif, u8 reason, u8 *bssid,
 			ar->last_ch = le16_to_cpu(vif->profile.ch);
 		}
 
+		if (prot_reason_status == WMI_AP_REASON_MAX_STA) {
+			/* send max client reached notification to user space */
+			cfg80211_conn_failed(vif->ndev, bssid,
+					     NL80211_CONN_FAIL_MAX_CLIENTS,
+					     GFP_KERNEL);
+		}
+
 		if (!ath6kl_remove_sta(ar, bssid, prot_reason_status))
 			return;
 
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 7 lines · Pandiyarajan Pitchaimuthu

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.

Thanks, applied.

Kalle