diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/cmd.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/cmd.c b/drivers/net/wireless/wl12xx/cmd.c index 1bb8be5e805b..97ffd7aa57a8 100644 --- a/drivers/net/wireless/wl12xx/cmd.c +++ b/drivers/net/wireless/wl12xx/cmd.c | |||
@@ -286,6 +286,7 @@ int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type) | |||
286 | join->rx_filter_options = cpu_to_le32(wl->rx_filter); | 286 | join->rx_filter_options = cpu_to_le32(wl->rx_filter); |
287 | join->bss_type = bss_type; | 287 | join->bss_type = bss_type; |
288 | join->basic_rate_set = cpu_to_le32(wl->basic_rate_set); | 288 | join->basic_rate_set = cpu_to_le32(wl->basic_rate_set); |
289 | join->supported_rate_set = cpu_to_le32(wl->rate_set); | ||
289 | 290 | ||
290 | if (wl->band == IEEE80211_BAND_5GHZ) | 291 | if (wl->band == IEEE80211_BAND_5GHZ) |
291 | join->bss_type |= WL1271_JOIN_CMD_BSS_TYPE_5GHZ; | 292 | join->bss_type |= WL1271_JOIN_CMD_BSS_TYPE_5GHZ; |
@@ -303,6 +304,9 @@ int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type) | |||
303 | wl->tx_security_last_seq = 0; | 304 | wl->tx_security_last_seq = 0; |
304 | wl->tx_security_seq = 0; | 305 | wl->tx_security_seq = 0; |
305 | 306 | ||
307 | wl1271_debug(DEBUG_CMD, "cmd join: basic_rate_set=0x%x, rate_set=0x%x", | ||
308 | join->basic_rate_set, join->supported_rate_set); | ||
309 | |||
306 | ret = wl1271_cmd_send(wl, CMD_START_JOIN, join, sizeof(*join), 0); | 310 | ret = wl1271_cmd_send(wl, CMD_START_JOIN, join, sizeof(*join), 0); |
307 | if (ret < 0) { | 311 | if (ret < 0) { |
308 | wl1271_error("failed to initiate cmd join"); | 312 | wl1271_error("failed to initiate cmd join"); |
@@ -454,7 +458,7 @@ out: | |||
454 | return ret; | 458 | return ret; |
455 | } | 459 | } |
456 | 460 | ||
457 | int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, u32 rates, bool send) | 461 | int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode) |
458 | { | 462 | { |
459 | struct wl1271_cmd_ps_params *ps_params = NULL; | 463 | struct wl1271_cmd_ps_params *ps_params = NULL; |
460 | int ret = 0; | 464 | int ret = 0; |
@@ -468,10 +472,6 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, u32 rates, bool send) | |||
468 | } | 472 | } |
469 | 473 | ||
470 | ps_params->ps_mode = ps_mode; | 474 | ps_params->ps_mode = ps_mode; |
471 | ps_params->send_null_data = send; | ||
472 | ps_params->retries = wl->conf.conn.psm_entry_nullfunc_retries; | ||
473 | ps_params->hang_over_period = wl->conf.conn.psm_entry_hangover_period; | ||
474 | ps_params->null_data_rate = cpu_to_le32(rates); | ||
475 | 475 | ||
476 | ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, | 476 | ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, |
477 | sizeof(*ps_params), 0); | 477 | sizeof(*ps_params), 0); |