aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_main.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-04-01 04:38:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-06 16:55:13 -0400
commit606c1487ac894798121bc2c64d27c1953c5a6210 (patch)
tree9b45dc3b6f06a6c7216ff30fad316fa4c5fcee88 /drivers/net/wireless/wl12xx/wl1271_main.c
parentebba60c66b3aa321a84c9a90a343c91fde972066 (diff)
wl1271: Configure rates for templates
Configure meaningful rates to be used with the templates. For control frames, use the determined basic rates (currently the lowest rate for the band) and for data-frames (null-funcs) let the firmware use the current rate policy to determine the rate. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index ca5cd325fac7..247f4079832e 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -1642,7 +1642,8 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
1642 wl1271_ssid_set(wl, beacon); 1642 wl1271_ssid_set(wl, beacon);
1643 ret = wl1271_cmd_template_set(wl, CMD_TEMPL_BEACON, 1643 ret = wl1271_cmd_template_set(wl, CMD_TEMPL_BEACON,
1644 beacon->data, 1644 beacon->data,
1645 beacon->len, 0); 1645 beacon->len, 0,
1646 wl1271_min_rate_get(wl));
1646 1647
1647 if (ret < 0) { 1648 if (ret < 0) {
1648 dev_kfree_skb(beacon); 1649 dev_kfree_skb(beacon);
@@ -1657,7 +1658,8 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
1657 ret = wl1271_cmd_template_set(wl, 1658 ret = wl1271_cmd_template_set(wl,
1658 CMD_TEMPL_PROBE_RESPONSE, 1659 CMD_TEMPL_PROBE_RESPONSE,
1659 beacon->data, 1660 beacon->data,
1660 beacon->len, 0); 1661 beacon->len, 0,
1662 wl1271_min_rate_get(wl));
1661 dev_kfree_skb(beacon); 1663 dev_kfree_skb(beacon);
1662 if (ret < 0) 1664 if (ret < 0)
1663 goto out_sleep; 1665 goto out_sleep;