diff options
author | Dedy Lansky <qca_dlansky@qca.qualcomm.com> | 2015-01-25 03:52:43 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-29 02:53:32 -0500 |
commit | c5e96c91fa8f98ddceac16f410fc741648585401 (patch) | |
tree | b32812cac3c7230aa2700dfb445d2788967b151a /drivers/net/wireless/ath/wil6210/netdev.c | |
parent | 8c6796758f0abd8ee2b4d7e8c6ca5f7adf737ee6 (diff) |
wil6210: fix timing of netif_carrier_on indication
netif_carrier_on indication was too late. In case Rx packet received
before netif_carrier_on indication, upper layers could not send
Tx packet back.
The fix is to indicate netif_carrier_on earlier:
for STA, indicate netif_carrier_on when association starts.
for AP/PCP, indicate netif_carrier_on upon starting AP/PCP.
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/netdev.c')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/netdev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/wil6210/netdev.c b/drivers/net/wireless/ath/wil6210/netdev.c index e81703ca7701..f1f9e510bfe9 100644 --- a/drivers/net/wireless/ath/wil6210/netdev.c +++ b/drivers/net/wireless/ath/wil6210/netdev.c | |||
@@ -174,7 +174,7 @@ void *wil_if_alloc(struct device *dev, void __iomem *csr) | |||
174 | netif_napi_add(ndev, &wil->napi_tx, wil6210_netdev_poll_tx, | 174 | netif_napi_add(ndev, &wil->napi_tx, wil6210_netdev_poll_tx, |
175 | WIL6210_NAPI_BUDGET); | 175 | WIL6210_NAPI_BUDGET); |
176 | 176 | ||
177 | wil_link_off(wil); | 177 | netif_tx_stop_all_queues(ndev); |
178 | 178 | ||
179 | return wil; | 179 | return wil; |
180 | 180 | ||
@@ -217,8 +217,6 @@ int wil_if_add(struct wil6210_priv *wil) | |||
217 | return rc; | 217 | return rc; |
218 | } | 218 | } |
219 | 219 | ||
220 | wil_link_off(wil); | ||
221 | |||
222 | return 0; | 220 | return 0; |
223 | } | 221 | } |
224 | 222 | ||