iwlwifi: mvm: fix error checking for multi/broadcast sta
authorJohannes Berg <johannes.berg@intel.com>
Thu, 22 Feb 2018 12:51:21 +0000 (13:51 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 16 Mar 2018 10:34:53 +0000 (12:34 +0200)
commit75fd4fec3e4c43b131c7c4958adb3ab9f1665513
treec4c772ba7b56bf872600858957f5f99ee020572c
parente829b17caf96c2da34620e335fb777592990906c
iwlwifi: mvm: fix error checking for multi/broadcast sta

The earlier patch called the station add functions but didn't
assign their return value to the ret variable, so that the
checks for it were meaningless. Fix that.

Found by smatch:

.../mac80211.c:2560 iwl_mvm_start_ap_ibss() warn: we tested 'ret' before and it was 'false'
.../mac80211.c:2563 iwl_mvm_start_ap_ibss() warn: we tested 'ret' before and it was 'false'

Fixes: 3a89411cd31c ("iwlwifi: mvm: fix assert 0x2B00 on older FWs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c