wil6210: handle failure in Tx vring config
authorVladimir Kondratiev <QCA_vkondrat@QCA.qualcomm.com>
Sun, 25 Oct 2015 13:59:24 +0000 (15:59 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 29 Oct 2015 11:06:49 +0000 (13:06 +0200)
When configuring Tx vring for new connection,
WMI call to the firmware may fail. In this case, need to
clean up properly. In particular, need to call
cfg80211_del_sta() in case of AP like interface.

Perform full "disconnect" procedure for proper clean up

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/main.c

index aade16b126c49b86338b8f90e5a231f89ec4eb09..bb69a5949aea62fabb506442e870430c309e66f8 100644 (file)
@@ -422,7 +422,7 @@ static void wil_connect_worker(struct work_struct *work)
                wil->sta[cid].status = wil_sta_connected;
                netif_tx_wake_all_queues(ndev);
        } else {
-               wil->sta[cid].status = wil_sta_unused;
+               wil_disconnect_cid(wil, cid, WLAN_REASON_UNSPECIFIED, true);
        }
 }