wifi: iwlwifi: mvm: Handle return value for iwl_mvm_sta_init
authorMukesh Sisodiya <mukesh.sisodiya@intel.com>
Mon, 12 Jun 2023 15:51:04 +0000 (18:51 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 10:32:17 +0000 (12:32 +0200)
commit8d507812cb4bb3c3b05404a7dda70b32a1fc1324
tree4a344df91c22022ca87228e9c97e473cc53a619d
parent3f244876ef73c8ef5eaeb8f01768a2bf33c4421e
wifi: iwlwifi: mvm: Handle return value for iwl_mvm_sta_init

sta_init function can fail and if it returns an error then
driver should not send the request to fw to add a station.

Fixes: 69aef848052b ("wifi: iwlwifi: mvm: refactor iwl_mvm_add_sta(), iwl_mvm_rm_sta()")
Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230612184434.1ecd293539e8.I5ec6aab387bb2fe743a7402581beaeb9c801d31f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c