Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/mac80211/key.c

Filename:/net/mac80211/key.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.25-git2  2.6.25-git3  2.6.25-git4 

Location
[  2.6.25-rc7
  [  net
    [  mac80211
       o  key.c

Patch

diff --git a/net/mac80211/key.c b/net/mac80211/key.c
index 0b2328f..ed57fb8 100644
--- a/net/mac80211/key.c
+++ b/net/mac80211/key.c
@@ -49,8 +49,8 @@ static const u8 *get_mac_for_key(struct ieee80211_key *key)
     * address to indicate a transmit-only key.
     */
    if (key->conf.alg != ALG_WEP &&
-       (key->sdata->type == IEEE80211_IF_TYPE_AP ||
-        key->sdata->type == IEEE80211_IF_TYPE_VLAN))
+       (key->sdata->vif.type == IEEE80211_IF_TYPE_AP ||
+        key->sdata->vif.type == IEEE80211_IF_TYPE_VLAN))
       addr = zero_addr;
 
    if (key->sta)
@@ -172,7 +172,7 @@ struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata,
       if (sta->flags & WLAN_STA_WME)
          key->conf.flags |= IEEE80211_KEY_FLAG_WMM_STA;
    } else {
-      if (sdata->type == IEEE80211_IF_TYPE_STA) {
+      if (sdata->vif.type == IEEE80211_IF_TYPE_STA) {
          struct sta_info *ap;
 
          /* same here, the AP could be using QoS */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.