OSDN Git Service

iwlwifi: mvm: slightly clean up rs_fw_set_supp_rates()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 5 Feb 2021 09:06:34 +0000 (11:06 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 5 Feb 2021 09:56:42 +0000 (11:56 +0200)
commit85b7eb490e86984d59df79a4baf9fa185d3587f8
tree3bd4e2bf28f7fae1a0e7190ccae159c65e79b161
parent46e64deaa868a77f182b2be5c82dae94368999de
iwlwifi: mvm: slightly clean up rs_fw_set_supp_rates()

The "supp" variable doesn't need to be unsigned long, only
"tmp" is used with for_each_set_bit(). "supp" should just
be a u16, since that's how it's sent to the firmware.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210205110447.762e50704a39.I014bc7898f90c734f8e9be2a3efaf9bf8b7db6db@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c