aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-09-19 12:15:02 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-22 03:07:59 -0400
commit3b25ed186fc3ac8d2517332bfbd5c44016c10f82 (patch)
tree2c5ab1851963cb219769cbfd6fc7eb733b4f672f /drivers
parent64b834d83a191dd6585c0778b1a7a92c36775554 (diff)
ath6kl: Remove unnecessary node table update on disconnect event
Since ath6kl does not actually update cfg80211 BSS table when this event occurs, there is not much need for removing the entries from the internal table that is not really used or exposed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index f21e4b12544c..55d3331bed85 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -1326,7 +1326,6 @@ void ath6kl_disconnect_event(struct ath6kl *ar, u8 reason, u8 *bssid,
1326 u8 assoc_resp_len, u8 *assoc_info, 1326 u8 assoc_resp_len, u8 *assoc_info,
1327 u16 prot_reason_status) 1327 u16 prot_reason_status)
1328{ 1328{
1329 struct bss *wmi_ssid_node = NULL;
1330 unsigned long flags; 1329 unsigned long flags;
1331 1330
1332 if (ar->nw_type == AP_NETWORK) { 1331 if (ar->nw_type == AP_NETWORK) {
@@ -1386,33 +1385,6 @@ void ath6kl_disconnect_event(struct ath6kl *ar, u8 reason, u8 *bssid,
1386 } 1385 }
1387 } 1386 }
1388 1387
1389 if ((reason == NO_NETWORK_AVAIL) && test_bit(WMI_READY, &ar->flag)) {
1390 ath6kl_wmi_node_free(ar->wmi, bssid);
1391
1392 /*
1393 * In case any other same SSID nodes are present remove it,
1394 * since those nodes also not available now.
1395 */
1396 do {
1397 /*
1398 * Find the nodes based on SSID and remove it
1399 *
1400 * Note: This case will not work out for
1401 * Hidden-SSID
1402 */
1403 wmi_ssid_node = ath6kl_wmi_find_ssid_node(ar->wmi,
1404 ar->ssid,
1405 ar->ssid_len,
1406 false,
1407 true);
1408
1409 if (wmi_ssid_node)
1410 ath6kl_wmi_node_free(ar->wmi,
1411 wmi_ssid_node->ni_macaddr);
1412
1413 } while (wmi_ssid_node);
1414 }
1415
1416 /* update connect & link status atomically */ 1388 /* update connect & link status atomically */
1417 spin_lock_irqsave(&ar->lock, flags); 1389 spin_lock_irqsave(&ar->lock, flags);
1418 clear_bit(CONNECTED, &ar->flag); 1390 clear_bit(CONNECTED, &ar->flag);