mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 21:23:23 +07:00
wcn36xx: Fetch private sta data from sta entry instead of from vif
For consistency with other code. Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
a92e469629
commit
81c6926375
@ -386,7 +386,7 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|||||||
{
|
{
|
||||||
struct wcn36xx *wcn = hw->priv;
|
struct wcn36xx *wcn = hw->priv;
|
||||||
struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
|
struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
|
||||||
struct wcn36xx_sta *sta_priv = vif_priv->sta;
|
struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta);
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
u8 key[WLAN_MAX_KEY_LEN];
|
u8 key[WLAN_MAX_KEY_LEN];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user