Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134480
b: refs/heads/master
c: a472780
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Feb 13, 2009
1 parent 2303133 commit fa61d9e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 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: 5e1333624827e7a91b2d2cc04ce978f050cae15e
refs/heads/master: a4727801004f255f589478b2d75ec00f0a9e30c5
16 changes: 13 additions & 3 deletions trunk/drivers/net/wireless/zd1211rw/zd_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,23 @@ static int zd_op_config_interface(struct ieee80211_hw *hw,
if (!beacon)
return -ENOMEM;
r = zd_mac_config_beacon(hw, beacon);
kfree_skb(beacon);

if (r < 0)
return r;
r = zd_set_beacon_interval(&mac->chip, BCN_MODE_IBSS |
hw->conf.beacon_int);
}

if (conf->changed & IEEE80211_IFCC_BEACON_ENABLED) {
u32 interval;

if (conf->enable_beacon)
interval = BCN_MODE_IBSS | hw->conf.beacon_int;
else
interval = 0;

r = zd_set_beacon_interval(&mac->chip, interval);
if (r < 0)
return r;
kfree_skb(beacon);
}
} else
associated = is_valid_ether_addr(conf->bssid);
Expand Down

0 comments on commit fa61d9e

Please sign in to comment.