diff options
author | Sara Sharon <sara.sharon@intel.com> | 2017-09-28 10:11:51 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2017-10-06 14:22:28 +0200 |
commit | 417795a3f4d634bb50dbffaf2ab9d7f46750b7e8 (patch) | |
tree | e7505455590c9e561d5c3ce4bd75f5b100b3c5c2 /drivers/net/wireless/intel | |
parent | iwlwifi: pcie: dump registers when HW becomes inaccessible (diff) | |
download | linux-417795a3f4d634bb50dbffaf2ab9d7f46750b7e8.tar.xz linux-417795a3f4d634bb50dbffaf2ab9d7f46750b7e8.zip |
iwlwifi: mvm: change warning to warn_once()
In case there is a FW bug where the BAID value in the
metadata is not properly initialized we hit the warning for
every RX packet.
Change it to warn once and add elaborate message.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c index a0b406e68d55..836c6cf4b369 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -624,7 +624,8 @@ static bool iwl_mvm_reorder(struct iwl_mvm *mvm, return false; /* no sta yet */ - if (WARN_ON(IS_ERR_OR_NULL(sta))) + if (WARN_ONCE(IS_ERR_OR_NULL(sta), + "Got valid BAID without a valid station assigned\n")) return false; mvm_sta = iwl_mvm_sta_from_mac80211(sta); |