[PATCH 3/5] wcn36xx: Fetch private sta data from sta entry instead of from vif
Pontus Fuchs
pontus.fuchs at gmail.com
Wed Feb 19 11:55:20 EST 2014
For consistency with other code.
Signed-off-by: Pontus Fuchs <pontus.fuchs at gmail.com>
---
main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 7f58f1e..eacd659 100644
--- a/main.c
+++ b/main.c
@@ -385,7 +385,8 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
{
struct wcn36xx *wcn = hw->priv;
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;
u8 key[WLAN_MAX_KEY_LEN];
--
1.7.10.4
More information about the wcn36xx
mailing list