wifi: iwlwifi: mvm: fix primary link setting

mvmvif::primary link holds the ID and not a bitmap. Fix this

Fixes: 07bf5297d3 ("wifi: iwlwifi: mvm: Implement new link selection algorithm")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://msgid.link/20240506095953.779bf6949053.Ia9297991ff2fdc82ae7c730e0069e2dd6e5f2902@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Miri Korenblit
2024-05-06 10:04:06 +03:00
committed by Johannes Berg
parent 0897fc66ac
commit 4e8a56aab3

View File

@@ -1212,7 +1212,7 @@ iwl_mvm_mld_change_vif_links(struct ieee80211_hw *hw,
* Ensure we always have a valid primary_link, the real
* decision happens later when PHY is activated.
*/
mvmvif->primary_link = BIT(__ffs(new_links));
mvmvif->primary_link = __ffs(new_links);
}
out_err: