summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi/mvm/time-event.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-03-30 10:55:57 +0300
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-04-02 09:29:13 +0300
commit31755207afc5d5a30e3eea9e4f2a518fc5b680c1 (patch)
tree9b3388a7026669772115471a2a466c62f748da6f /drivers/net/wireless/iwlwifi/mvm/time-event.c
parent874c174eb9950a62032a7c90c4a23947a2bb863d (diff)
downloadlwn-31755207afc5d5a30e3eea9e4f2a518fc5b680c1.tar.gz
lwn-31755207afc5d5a30e3eea9e4f2a518fc5b680c1.zip
iwlwifi: mvm: capture connection loss as part of MLME trigger
The only other way to catch these would have been to monitor the Tx deauth event, but we can send a deauth when we roam. So it would have been tricky to make sure we capture the connection losses only. Define a separate trigger for the connection losses to make it easier to catch them. Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/time-event.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/time-event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/time-event.c b/drivers/net/wireless/iwlwifi/mvm/time-event.c
index 647822366fe5..fd7b0d36f9a6 100644
--- a/drivers/net/wireless/iwlwifi/mvm/time-event.c
+++ b/drivers/net/wireless/iwlwifi/mvm/time-event.c
@@ -187,7 +187,8 @@ static bool iwl_mvm_te_check_disconnect(struct iwl_mvm *mvm,
return false;
if (errmsg)
IWL_ERR(mvm, "%s\n", errmsg);
- ieee80211_connection_loss(vif);
+
+ iwl_mvm_connection_loss(mvm, vif, errmsg);
return true;
}
@@ -210,7 +211,8 @@ iwl_mvm_te_handle_notify_csa(struct iwl_mvm *mvm,
break;
case NL80211_IFTYPE_STATION:
if (!notif->status) {
- ieee80211_connection_loss(te_data->vif);
+ iwl_mvm_connection_loss(mvm, vif,
+ "CSA TE failed to start");
break;
}
iwl_mvm_csa_client_absent(mvm, te_data->vif);