Two fixes:
- station rate tables were not updated correctly after association, leading to bad configuration - rtl8723bs (staging) was initializing data incorrectly after the previous fix and needed to move the init later -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEH1e1rEeCd0AIMq6MB8qZga/fl8QFAmAZYesACgkQB8qZga/f l8QOpA//V6cBc+ie4AoWKLU/isc33IiZG15qbwvXrHVouLaMgSg4SKQ3cQMwRKd7 Y6cDJynj4EkIo7RZlRMIo5Dsefm2sv6L41tDhfVwR8Z7+wOmGKSXsmYABpjWttaZ 4ABEqU2ZUPI3cm5iYF7qKKSNbwSqHeCWjlWnB3TFB8NfzTC+x7uSTQ/8C8/GZ7aF tkELHgvdig9+FbdKOs52lmIneTYLEDqxMuv+65XtE9flaYvgWiXCj5ilVVDo8Tjd vdCST8ux/9YIEcrhlM+SUM1OFO6AIqZ3EX5S2ZzJdc37PMDDy+nNr95cFrlN4EQ8 y9avIS0Z+mvw/R7KSDc7XKInpvleC7bzR9DZVQsF8hdV9iB0cmVKyPmASfGpft69 Ndv2+h2vmWvSHmJDpiroSvTY9WT+AgWCihOU/tj0PrKs+XNLUFfrO08BxFGnaRK/ +MXzXY7ZmgfU9BFgmlAS2ejRbqfb3V6F5qa2Obj+3gq/SbM9W4Jl8RHiiox7szse GdLrT/LjvVEFC/cEMqDzvnGpnVosNkNtJRFMAaGyKs1g/uljl9A51HRZ8HdLrgv9 bVsMripcQX2JMMxqBwbyfdzPBE0MX8ExkMhyuFbdUyWGEWJqsz4+irr25Bhcyoge RaRI6/xPM7DOkB9CDdbvJItBJ9GHYz6gvf+ZiIdu+ClpQ+b3k3s= =mEgj -----END PGP SIGNATURE----- Merge tag 'mac80211-for-net-2021-02-02' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211 Johannes Berg says: ==================== Two fixes: - station rate tables were not updated correctly after association, leading to bad configuration - rtl8723bs (staging) was initializing data incorrectly after the previous fix and needed to move the init later * tag 'mac80211-for-net-2021-02-02' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211: staging: rtl8723bs: Move wiphy setup to after reading the regulatory settings from the chip mac80211: fix station rate table updates on assoc ==================== Link: https://lore.kernel.org/r/20210202143505.37610-1-johannes@sipsolutions.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
f418bad6cc
|
@ -339,8 +339,6 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct
|
||||||
|
|
||||||
padapter = rtw_netdev_priv(pnetdev);
|
padapter = rtw_netdev_priv(pnetdev);
|
||||||
|
|
||||||
rtw_wdev_alloc(padapter, dvobj_to_dev(dvobj));
|
|
||||||
|
|
||||||
/* 3 3. init driver special setting, interface, OS and hardware relative */
|
/* 3 3. init driver special setting, interface, OS and hardware relative */
|
||||||
|
|
||||||
/* 4 3.1 set hardware operation functions */
|
/* 4 3.1 set hardware operation functions */
|
||||||
|
@ -378,6 +376,8 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct
|
||||||
goto free_hal_data;
|
goto free_hal_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rtw_wdev_alloc(padapter, dvobj_to_dev(dvobj));
|
||||||
|
|
||||||
/* 3 8. get WLan MAC address */
|
/* 3 8. get WLan MAC address */
|
||||||
/* set mac addr */
|
/* set mac addr */
|
||||||
rtw_macaddr_cfg(&psdio->func->dev, padapter->eeprompriv.mac_addr);
|
rtw_macaddr_cfg(&psdio->func->dev, padapter->eeprompriv.mac_addr);
|
||||||
|
|
|
@ -125,8 +125,11 @@ int drv_sta_state(struct ieee80211_local *local,
|
||||||
} else if (old_state == IEEE80211_STA_AUTH &&
|
} else if (old_state == IEEE80211_STA_AUTH &&
|
||||||
new_state == IEEE80211_STA_ASSOC) {
|
new_state == IEEE80211_STA_ASSOC) {
|
||||||
ret = drv_sta_add(local, sdata, &sta->sta);
|
ret = drv_sta_add(local, sdata, &sta->sta);
|
||||||
if (ret == 0)
|
if (ret == 0) {
|
||||||
sta->uploaded = true;
|
sta->uploaded = true;
|
||||||
|
if (rcu_access_pointer(sta->sta.rates))
|
||||||
|
drv_sta_rate_tbl_update(local, sdata, &sta->sta);
|
||||||
|
}
|
||||||
} else if (old_state == IEEE80211_STA_ASSOC &&
|
} else if (old_state == IEEE80211_STA_ASSOC &&
|
||||||
new_state == IEEE80211_STA_AUTH) {
|
new_state == IEEE80211_STA_AUTH) {
|
||||||
drv_sta_remove(local, sdata, &sta->sta);
|
drv_sta_remove(local, sdata, &sta->sta);
|
||||||
|
|
|
@ -960,7 +960,8 @@ int rate_control_set_rates(struct ieee80211_hw *hw,
|
||||||
if (old)
|
if (old)
|
||||||
kfree_rcu(old, rcu_head);
|
kfree_rcu(old, rcu_head);
|
||||||
|
|
||||||
drv_sta_rate_tbl_update(hw_to_local(hw), sta->sdata, pubsta);
|
if (sta->uploaded)
|
||||||
|
drv_sta_rate_tbl_update(hw_to_local(hw), sta->sdata, pubsta);
|
||||||
|
|
||||||
ieee80211_sta_set_expected_throughput(pubsta, sta_get_expected_throughput(sta));
|
ieee80211_sta_set_expected_throughput(pubsta, sta_get_expected_throughput(sta));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue