Changeset 36467


Ignore:
Timestamp:
2013-04-27T11:56:18+02:00 (5 years ago)
Author:
nbd
Message:

ath9k: fix keycache handling with many connected clients

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/300-pending_work.patch

    r36448 r36467  
    7777  
    7878 /* Called with sc->mutex held. */ 
     79@@ -1327,6 +1332,7 @@ static int ath9k_sta_add(struct ieee8021 
     80        struct ath_common *common = ath9k_hw_common(sc->sc_ah); 
     81        struct ath_node *an = (struct ath_node *) sta->drv_priv; 
     82        struct ieee80211_key_conf ps_key = { }; 
     83+       int key; 
     84  
     85        ath_node_attach(sc, sta, vif); 
     86  
     87@@ -1334,7 +1340,9 @@ static int ath9k_sta_add(struct ieee8021 
     88            vif->type != NL80211_IFTYPE_AP_VLAN) 
     89                return 0; 
     90  
     91-       an->ps_key = ath_key_config(common, vif, sta, &ps_key); 
     92+       key = ath_key_config(common, vif, sta, &ps_key); 
     93+       if (key > 0) 
     94+               an->ps_key = key; 
     95  
     96        return 0; 
     97 } 
     98@@ -1351,6 +1359,7 @@ static void ath9k_del_ps_key(struct ath_ 
     99            return; 
     100  
     101        ath_key_delete(common, &ps_key); 
     102+       an->ps_key = 0; 
     103 } 
     104  
     105 static int ath9k_sta_remove(struct ieee80211_hw *hw, 
    79106--- a/drivers/net/wireless/ath/ath9k/reg.h 
    80107+++ b/drivers/net/wireless/ath/ath9k/reg.h 
Note: See TracChangeset for help on using the changeset viewer.