diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_cmd.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index 36a64e06f290..d59b3830a6a5 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c | |||
@@ -29,7 +29,6 @@ | |||
29 | 29 | ||
30 | #include "wl1271.h" | 30 | #include "wl1271.h" |
31 | #include "wl1271_reg.h" | 31 | #include "wl1271_reg.h" |
32 | #include "wl1271_spi.h" | ||
33 | #include "wl1271_io.h" | 32 | #include "wl1271_io.h" |
34 | #include "wl1271_acx.h" | 33 | #include "wl1271_acx.h" |
35 | #include "wl12xx_80211.h" | 34 | #include "wl12xx_80211.h" |
@@ -248,7 +247,7 @@ int wl1271_cmd_radio_parms(struct wl1271 *wl) | |||
248 | return ret; | 247 | return ret; |
249 | } | 248 | } |
250 | 249 | ||
251 | int wl1271_cmd_join(struct wl1271 *wl) | 250 | int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type) |
252 | { | 251 | { |
253 | static bool do_cal = true; | 252 | static bool do_cal = true; |
254 | struct wl1271_cmd_join *join; | 253 | struct wl1271_cmd_join *join; |
@@ -279,7 +278,7 @@ int wl1271_cmd_join(struct wl1271 *wl) | |||
279 | 278 | ||
280 | join->rx_config_options = cpu_to_le32(wl->rx_config); | 279 | join->rx_config_options = cpu_to_le32(wl->rx_config); |
281 | join->rx_filter_options = cpu_to_le32(wl->rx_filter); | 280 | join->rx_filter_options = cpu_to_le32(wl->rx_filter); |
282 | join->bss_type = wl->bss_type; | 281 | join->bss_type = bss_type; |
283 | 282 | ||
284 | /* | 283 | /* |
285 | * FIXME: disable temporarily all filters because after commit | 284 | * FIXME: disable temporarily all filters because after commit |
@@ -319,8 +318,7 @@ int wl1271_cmd_join(struct wl1271 *wl) | |||
319 | 318 | ||
320 | /* reset TX security counters */ | 319 | /* reset TX security counters */ |
321 | wl->tx_security_last_seq = 0; | 320 | wl->tx_security_last_seq = 0; |
322 | wl->tx_security_seq_16 = 0; | 321 | wl->tx_security_seq = 0; |
323 | wl->tx_security_seq_32 = 0; | ||
324 | 322 | ||
325 | ret = wl1271_cmd_send(wl, CMD_START_JOIN, join, sizeof(*join), 0); | 323 | ret = wl1271_cmd_send(wl, CMD_START_JOIN, join, sizeof(*join), 0); |
326 | if (ret < 0) { | 324 | if (ret < 0) { |