Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278726
b: refs/heads/master
c: 341f2c1
h: refs/heads/master
v: v3
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed Dec 1, 2011
1 parent cffece3 commit 12c25a2
Show file tree
Hide file tree
Showing 2 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: 97127e67218e5970a5a7df0513ded730b19a67e9
refs/heads/master: 341f2c11b5ce7689d3f0acb04574fe6424aa6be0
17 changes: 8 additions & 9 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3299,14 +3299,15 @@ static void wl12xx_remove_vendor_ie(struct sk_buff *skb,
skb_trim(skb, skb->len - len);
}

static int wl1271_ap_set_probe_resp_tmpl(struct wl1271 *wl, u32 rates)
static int wl1271_ap_set_probe_resp_tmpl(struct wl1271 *wl, u32 rates,
struct ieee80211_vif *vif)
{
struct sk_buff *skb;
int ret;

skb = ieee80211_proberesp_get(wl->hw, wl->vif);
skb = ieee80211_proberesp_get(wl->hw, vif);
if (!skb)
return -EINVAL;
return -EOPNOTSUPP;

ret = wl1271_cmd_template_set(wl,
CMD_TEMPL_AP_PROBE_RESPONSE,
Expand Down Expand Up @@ -3437,12 +3438,10 @@ static int wl1271_bss_beacon_info_changed(struct wl1271 *wl,

if ((changed & BSS_CHANGED_AP_PROBE_RESP) && is_ap) {
u32 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set);
ret = wl1271_ap_set_probe_resp_tmpl(wl, rate);
if (ret < 0)
goto out;

wl1271_debug(DEBUG_AP, "probe response updated");
set_bit(WLVIF_FLAG_AP_PROBE_RESP_SET, &wlvif->flags);
if (!wl1271_ap_set_probe_resp_tmpl(wl, rate, vif)) {
wl1271_debug(DEBUG_AP, "probe response updated");
set_bit(WLVIF_FLAG_AP_PROBE_RESP_SET, &wlvif->flags);
}
}

if ((changed & BSS_CHANGED_BEACON)) {
Expand Down

0 comments on commit 12c25a2

Please sign in to comment.