wil6210: fix overwriting max_assoc_sta module param
Save the parameter of max_assoc_sta per device. On fw_ready event calculate the max_assoc_sta and save it per device, do not overwrite the max_assoc_sta module param. Signed-off-by: Ahmad Masri <amasri@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -395,7 +395,7 @@ static int wil_find_cid_by_idx(struct wil6210_priv *wil, u8 mid, int idx)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < max_assoc_sta; i++) {
|
||||
for (i = 0; i < wil->max_assoc_sta; i++) {
|
||||
if (wil->sta[i].status == wil_sta_unused)
|
||||
continue;
|
||||
if (wil->sta[i].mid != mid)
|
||||
@@ -3020,7 +3020,7 @@ static int wil_rf_sector_set_selected(struct wiphy *wiphy,
|
||||
wil, vif->mid, WMI_INVALID_RF_SECTOR_INDEX,
|
||||
sector_type, WIL_CID_ALL);
|
||||
if (rc == -EINVAL) {
|
||||
for (i = 0; i < max_assoc_sta; i++) {
|
||||
for (i = 0; i < wil->max_assoc_sta; i++) {
|
||||
if (wil->sta[i].mid != vif->mid)
|
||||
continue;
|
||||
rc = wil_rf_sector_wmi_set_selected(
|
||||
|
Reference in New Issue
Block a user