Browse Source

iwlwifi: mvm: remove warning on station exhaustion

When using IBSS, it's easily possible to exhaust the number
of available stations in the driver, so don't warn on it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Johannes Berg 10 years ago
parent
commit
36f4631c53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/wireless/iwlwifi/mvm/sta.c

+ 1 - 1
drivers/net/wireless/iwlwifi/mvm/sta.c

@@ -273,7 +273,7 @@ int iwl_mvm_add_sta(struct iwl_mvm *mvm,
 	else
 	else
 		sta_id = mvm_sta->sta_id;
 		sta_id = mvm_sta->sta_id;
 
 
-	if (WARN_ON_ONCE(sta_id == IWL_MVM_STATION_COUNT))
+	if (sta_id == IWL_MVM_STATION_COUNT)
 		return -ENOSPC;
 		return -ENOSPC;
 
 
 	spin_lock_init(&mvm_sta->lock);
 	spin_lock_init(&mvm_sta->lock);