iwlwifi: mvm: change warning to warn_once()
authorSara Sharon <sara.sharon@intel.com>
Thu, 28 Sep 2017 08:11:51 +0000 (11:11 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 12:22:28 +0000 (15:22 +0300)
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>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

index a0b406e..836c6cf 100644 (file)
@@ -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);