Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278656
b: refs/heads/master
c: f75c753
h: refs/heads/master
v: v3
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Oct 7, 2011
1 parent 3a79236 commit 5e9d921
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a8997964366f51c39d8efcfdc0e6319b2bd01fa
refs/heads/master: f75c753f3c77b758fa5ace90c15b2ea3b7a3d46d
7 changes: 3 additions & 4 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2704,7 +2704,7 @@ static int wl1271_ap_init_hwenc(struct wl1271 *wl, struct wl12xx_vif *wlvif)
}

if (wep_key_added) {
ret = wl12xx_cmd_set_default_wep_key(wl, wl->default_key,
ret = wl12xx_cmd_set_default_wep_key(wl, wlvif->default_key,
wlvif->ap.bcast_hlid);
if (ret < 0)
goto out;
Expand Down Expand Up @@ -2801,8 +2801,8 @@ static int wl1271_set_key(struct wl1271 *wl, struct wl12xx_vif *wlvif,
/* the default WEP key needs to be configured at least once */
if (key_type == KEY_WEP) {
ret = wl12xx_cmd_set_default_wep_key(wl,
wl->default_key,
wlvif->sta.hlid);
wlvif->default_key,
wlvif->sta.hlid);
if (ret < 0)
return ret;
}
Expand Down Expand Up @@ -4891,7 +4891,6 @@ struct ieee80211_hw *wl1271_alloc_hw(void)
}

wl->channel = WL1271_DEFAULT_CHANNEL;
wl->default_key = 0;
wl->rx_counter = 0;
wl->psm_entry_retry = 0;
wl->power_level = WL1271_DEFAULT_POWER_LEVEL;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,11 @@ static int wl1271_prepare_tx_frame(struct wl1271 *wl, struct sk_buff *skb,
is_wep = (cipher == WLAN_CIPHER_SUITE_WEP40) ||
(cipher == WLAN_CIPHER_SUITE_WEP104);

if (unlikely(is_wep && wl->default_key != idx)) {
if (unlikely(is_wep && wlvif->default_key != idx)) {
ret = wl1271_set_default_wep_key(wl, wlvif, idx);
if (ret < 0)
return ret;
wl->default_key = idx;
wlvif->default_key = idx;
}
}
hlid = wl1271_tx_get_hlid(wl, vif, skb);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/wl12xx/wl12xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,6 @@ struct wl1271 {
/* The current band */
enum ieee80211_band band;

/* Default key (for WEP) */
u32 default_key;

/* Rx Streaming */
struct work_struct rx_streaming_enable_work;
struct work_struct rx_streaming_disable_work;
Expand Down Expand Up @@ -645,6 +642,9 @@ struct wl12xx_vif {
/* Beaconing interval (needed for ad-hoc) */
u32 beacon_int;

/* Default key (for WEP) */
u32 default_key;

/* Our association ID */
u16 aid;

Expand Down

0 comments on commit 5e9d921

Please sign in to comment.