diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2009-12-11 08:40:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:31:31 -0500 |
commit | bdcbbb947be9778f740797a2bfc69c44a0d54776 (patch) | |
tree | 055ecf9879424f3bdb870a1801fb01021244b14c | |
parent | cd264769f7a571fc2a61765757ed85c56f02e9d3 (diff) |
wl1271: set null data template when BSSID is known
The call to wl1271_cmd_build_null_data() was missing when we got associated,
this was causing PS to fail. This patch adds the call and now PS seems to
work.
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index bf1d0fd93bcc..64f8623e0325 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1545,6 +1545,12 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw, | |||
1545 | memcmp(wl->bssid, bss_conf->bssid, ETH_ALEN)) { | 1545 | memcmp(wl->bssid, bss_conf->bssid, ETH_ALEN)) { |
1546 | wl->rx_config |= CFG_BSSID_FILTER_EN; | 1546 | wl->rx_config |= CFG_BSSID_FILTER_EN; |
1547 | memcpy(wl->bssid, bss_conf->bssid, ETH_ALEN); | 1547 | memcpy(wl->bssid, bss_conf->bssid, ETH_ALEN); |
1548 | ret = wl1271_cmd_build_null_data(wl); | ||
1549 | if (ret < 0) { | ||
1550 | wl1271_warning("cmd buld null data failed %d", | ||
1551 | ret); | ||
1552 | goto out_sleep; | ||
1553 | } | ||
1548 | ret = wl1271_cmd_join(wl); | 1554 | ret = wl1271_cmd_join(wl); |
1549 | if (ret < 0) { | 1555 | if (ret < 0) { |
1550 | wl1271_warning("cmd join failed %d", ret); | 1556 | wl1271_warning("cmd join failed %d", ret); |