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S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLQ0KRW1tYW51ZWwgR3J1bWJhY2ggKDEpOg0KICAgICAgaXdsd2lmaTog ZHZtOiBkcm9wIFZPIHBhY2tldHMgd2hlbiBtYWM4MDIxMSB0ZWxscyB1cyB0bw0KDQpKb2hhbm5l cyBCZXJnICgxKToNCiAgICAgIGl3bHdpZmk6IG12bTogZGlzY29ubmVjdCBpZiBDU0EgdGltZSBl dmVudCBmYWlscyBzY2hlZHVsaW5nDQoNCiBkcml2ZXJzL25ldC93aXJlbGVzcy9pd2x3aWZpL2R2 bS9tYWM4MDIxMS5jICAgfCAxNyArKysrKysrKystLS0tLS0tLQ0KIGRyaXZlcnMvbmV0L3dpcmVs ZXNzL2l3bHdpZmkvbXZtL3RpbWUtZXZlbnQuYyB8ICAyICsrDQogMiBmaWxlcyBjaGFuZ2VkLCAx MSBpbnNlcnRpb25zKCspLCA4IGRlbGV0aW9ucygtKQ0KDQo=
PATCH 1/2 iwlwifi: dvm: drop VO packets when mac80211 tells us to
mac80211 now informs the driver when to drop the packets upon flush(). This will happen before disconnecting, or before we shut down the interface. We can now rely on this to drop all the packets including the VO queues. When mac80211 sets drop to false, wait for all the queues to be empty.
--- drivers/net/wireless/iwlwifi/dvm/mac80211.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
drivers/net/wireless/iwlwifi/dvm/mac80211.c +9 -8
@@ -1114,16 +1114,17 @@ static void iwlagn_mac_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, scd_queues &= ~(BIT (IWL_IPAN_CMD_QUEUE_NUM ) |BIT (IWL_DEFAULT_CMD_QUEUE_NUM )); -if (vif) - scd_queues &= ~BIT (vif->hw_queue[IEEE80211_AC_VO ]); - -IWL_DEBUG_TX_QUEUES (priv,"Flushing SCD queues: 0x%x\n" , scd_queues); -if (iwlagn_txfifo_flush (priv, scd_queues)) { -IWL_ERR (priv,"flush request fail\n" ); - goto done; +if (drop) { +IWL_DEBUG_TX_QUEUES (priv,"Flushing SCD queues: 0x%x\n" , + scd_queues); +if (iwlagn_txfifo_flush (priv, scd_queues)) { +IWL_ERR (priv,"flush request fail\n" ); + goto done; + } } +IWL_DEBUG_TX_QUEUES (priv,"wait transmit/flush all frames\n" ); -iwl_trans_wait_tx_queue_empty (priv->trans,0xffffffff ); +iwl_trans_wait_tx_queue_empty (priv->trans, scd_queues); done:mutex_unlock (&priv->mutex);IWL_DEBUG_MAC80211 (priv,"leave\n" );
Signature · 1 line
1.9.1
PATCH 2/2 iwlwifi: mvm: disconnect if CSA time event fails scheduling
In reply to Grumbach, EmmanuelFrom: Johannes Berg <[email protected]>
If this situation ever happens, the mac80211 state machine gets confused because it never clears csa_active. There was a separate bug that lead to this happening with a working connection, but it isn't very robust to try to keep the connection up in this case.
When removing the time event the CSA essentially procedure stops, so the safest thing to do is to disconnect in this case.
--- drivers/net/wireless/iwlwifi/mvm/time-event.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wireless/iwlwifi/mvm/time-event.c +2 -0
@@ -197,6 +197,8 @@ iwl_mvm_te_handle_notify_csa(struct iwl_mvm *mvm, struct iwl_time_event_notif *notif) {if (!le32_to_cpu (notif->status)) { +if (te_data->vif->type ==NL80211_IFTYPE_STATION ) +ieee80211_connection_loss (te_data->vif);IWL_DEBUG_TE (mvm,"CSA time event failed to start\n" );iwl_mvm_te_clear_data (mvm, te_data);return ;
Signature · 1 line
1.9.1
Quoted 5 lines · Emmanuel
Hi Kalle,
2 more fixes for 4.0. Details in the tag.
Please pull - thanks!
Quoted 7 lines
The following changes since commit
4cd4b50cc2429294c23a1998c33fdfd804db0f37:iwlwifi: mvm: BT Coex - fix a NULL pointer exception (2015-03-05 14:13:20 +0200)
are available in the git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git tags/iwlwifi-for-kalle-2013-03-12
Thanks, pulled.
Signature · 1 line
Kalle Valo