Skip to content

Commit 78eadad

Browse files
striebitgregkh
authored andcommitted
iwlwifi: mvm: fix error print when session protection ends
[ Upstream commit 976ac0a ] When the session protection ends and the Driver is not associated or a beacon was not heard, the Driver prints "No beacons heard...". That's confusing for the case where not associated. Change the print when not associated to "Not associated...". Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20210617100544.41a5a5a894fa.I9eabb76e7a3a7f4abbed8f2ef918f1df8e825726@changeid Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1e1bb1e commit 78eadad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/net/wireless/intel/iwlwifi/mvm/time-event.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ static void iwl_mvm_te_handle_notif(struct iwl_mvm *mvm,
345345
* and know the dtim period.
346346
*/
347347
iwl_mvm_te_check_disconnect(mvm, te_data->vif,
348+
!te_data->vif->bss_conf.assoc ?
349+
"Not associated and the time event is over already..." :
348350
"No beacon heard and the time event is over already...");
349351
break;
350352
default:
@@ -843,6 +845,8 @@ void iwl_mvm_rx_session_protect_notif(struct iwl_mvm *mvm,
843845
* and know the dtim period.
844846
*/
845847
iwl_mvm_te_check_disconnect(mvm, vif,
848+
!vif->bss_conf.assoc ?
849+
"Not associated and the session protection is over already..." :
846850
"No beacon heard and the session protection is over already...");
847851
spin_lock_bh(&mvm->time_event_lock);
848852
iwl_mvm_te_clear_data(mvm, te_data);

0 commit comments

Comments
 (0)