Skip to content

Commit

Permalink
wlcore: fix "wlcore: update beacon and probe_resp..." (SQUASH)
Browse files Browse the repository at this point in the history
This makes the code a bit cleaner.  Thanks Eliad for the comment.

Needs to be squashed with:
fbf05e7 (wlcore: update beacon and probe_resp templates when rates change)

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Luciano Coelho committed Feb 22, 2012
1 parent e373343 commit 978e7c3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/net/wireless/ti/wlcore/main.c
Expand Up @@ -3241,14 +3241,15 @@ static int wl1271_ap_set_probe_resp_tmpl(struct wl1271 *wl, u32 rates,
skb->data,
skb->len, 0,
rates);

dev_kfree_skb(skb);

if (ret == 0) {
wl1271_debug(DEBUG_AP, "probe response updated");
set_bit(WLVIF_FLAG_AP_PROBE_RESP_SET, &wlvif->flags);
}
if (ret < 0)
goto out;

wl1271_debug(DEBUG_AP, "probe response updated");
set_bit(WLVIF_FLAG_AP_PROBE_RESP_SET, &wlvif->flags);

out:
return ret;
}

Expand Down

0 comments on commit 978e7c3

Please sign in to comment.