Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194130
b: refs/heads/master
c: 60e84c2
h: refs/heads/master
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Mar 31, 2010
1 parent 3f96b57 commit 010acc4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 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: 5da11dcde3d2a91688e02f032062fa26877eacb0
refs/heads/master: 60e84c2ebb7b04361cf1ba0d325cc93366bd04a6
3 changes: 3 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ struct wl1271 {
/* The current band */
enum ieee80211_band band;

/* Beaconing interval (needed for ad-hoc) */
u32 beacon_int;

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

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1271_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type)
CONF_HW_BIT_RATE_24MBPS);
}

join->beacon_interval = cpu_to_le16(WL1271_DEFAULT_BEACON_INT);
join->beacon_interval = cpu_to_le16(wl->beacon_int);
join->dtim_interval = WL1271_DEFAULT_DTIM_PERIOD;

join->channel = wl->channel;
Expand Down
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,15 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
if (ret < 0)
goto out;

if ((changed && BSS_CHANGED_BEACON_INT) &&
(wl->bss_type == BSS_TYPE_IBSS)) {
wl1271_debug(DEBUG_ADHOC, "ad-hoc beacon interval updated: %d",
bss_conf->beacon_int);

wl->beacon_int = bss_conf->beacon_int;
do_join = true;
}

if ((changed && BSS_CHANGED_BEACON) &&
(wl->bss_type == BSS_TYPE_IBSS)) {
struct sk_buff *beacon = ieee80211_beacon_get(hw, vif);
Expand Down Expand Up @@ -2193,6 +2202,7 @@ struct ieee80211_hw *wl1271_alloc_hw(void)

INIT_DELAYED_WORK(&wl->elp_work, wl1271_elp_work);
wl->channel = WL1271_DEFAULT_CHANNEL;
wl->beacon_int = WL1271_DEFAULT_BEACON_INT;
wl->default_key = 0;
wl->rx_counter = 0;
wl->rx_config = WL1271_DEFAULT_RX_CONFIG;
Expand Down

0 comments on commit 010acc4

Please sign in to comment.