Skip to content

Commit

Permalink
iwlwifi: mvm: return value for request_ownership
Browse files Browse the repository at this point in the history
Propagate the value to the user space so it can understand
if the operation failed or not.

Fixes: bfcfdb5 ("iwlwifi: mvm: add vendor commands needed for iwlmei")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://lore.kernel.org/r/20220302072715.4885-1-emmanuel.grumbach@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Mar 2, 2022
1 parent e50b88c commit e6e91ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/intel/iwlwifi/mvm/vendor-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ static int iwl_mvm_vendor_host_get_ownership(struct wiphy *wiphy,
{
struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
int ret;

mutex_lock(&mvm->mutex);
iwl_mvm_mei_get_ownership(mvm);
ret = iwl_mvm_mei_get_ownership(mvm);
mutex_unlock(&mvm->mutex);

return 0;
return ret;
}

static const struct wiphy_vendor_command iwl_mvm_vendor_commands[] = {
Expand Down

0 comments on commit e6e91ec

Please sign in to comment.