diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-08-07 06:34:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:39 -0400 |
commit | 46e947b9c382f67f84cffec3bf068d6d23695058 (patch) | |
tree | 7cc889dfa4f3abf983f42c4bbeb9473edaed148f /drivers/net/wireless/wl12xx | |
parent | 0e71bb084adc4986b9a4be3581897f0ee703cbd5 (diff) |
wl1251: reorder wl1251_cmd_join() arguments
It's more common to have beacon interval before dtim period. Also use
bool instead of u8.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Reviewed-by: Vidhya Govindan <vidhya.govindan@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_cmd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_cmd.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_main.c | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_cmd.c b/drivers/net/wireless/wl12xx/wl1251_cmd.c index 53f5da65bcb4..50daa9bda4ae 100644 --- a/drivers/net/wireless/wl12xx/wl1251_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1251_cmd.c | |||
@@ -251,8 +251,8 @@ out: | |||
251 | return ret; | 251 | return ret; |
252 | } | 252 | } |
253 | 253 | ||
254 | int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 dtim_interval, | 254 | int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u16 beacon_interval, |
255 | u16 beacon_interval, u8 wait) | 255 | u8 dtim_interval, bool wait) |
256 | { | 256 | { |
257 | unsigned long timeout; | 257 | unsigned long timeout; |
258 | struct cmd_join *join; | 258 | struct cmd_join *join; |
diff --git a/drivers/net/wireless/wl12xx/wl1251_cmd.h b/drivers/net/wireless/wl12xx/wl1251_cmd.h index 64f228dd9a9b..f9177d6941d8 100644 --- a/drivers/net/wireless/wl12xx/wl1251_cmd.h +++ b/drivers/net/wireless/wl12xx/wl1251_cmd.h | |||
@@ -36,8 +36,8 @@ int wl1251_cmd_configure(struct wl1251 *wl, u16 id, void *buf, size_t len); | |||
36 | int wl1251_cmd_vbm(struct wl1251 *wl, u8 identity, | 36 | int wl1251_cmd_vbm(struct wl1251 *wl, u8 identity, |
37 | void *bitmap, u16 bitmap_len, u8 bitmap_control); | 37 | void *bitmap, u16 bitmap_len, u8 bitmap_control); |
38 | int wl1251_cmd_data_path(struct wl1251 *wl, u8 channel, bool enable); | 38 | int wl1251_cmd_data_path(struct wl1251 *wl, u8 channel, bool enable); |
39 | int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 dtim_interval, | 39 | int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u16 beacon_interval, |
40 | u16 beacon_interval, u8 wait); | 40 | u8 dtim_interval, bool wait); |
41 | int wl1251_cmd_ps_mode(struct wl1251 *wl, u8 ps_mode); | 41 | int wl1251_cmd_ps_mode(struct wl1251 *wl, u8 ps_mode); |
42 | int wl1251_cmd_read_memory(struct wl1251 *wl, u32 addr, void *answer, | 42 | int wl1251_cmd_read_memory(struct wl1251 *wl, u32 addr, void *answer, |
43 | size_t len); | 43 | size_t len); |
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c index 8c88fe279ec6..47b82faac697 100644 --- a/drivers/net/wireless/wl12xx/wl1251_main.c +++ b/drivers/net/wireless/wl12xx/wl1251_main.c | |||
@@ -325,7 +325,7 @@ static void wl1251_filter_work(struct work_struct *work) | |||
325 | goto out; | 325 | goto out; |
326 | 326 | ||
327 | /* FIXME: replace the magic numbers with proper definitions */ | 327 | /* FIXME: replace the magic numbers with proper definitions */ |
328 | ret = wl1251_cmd_join(wl, wl->bss_type, 1, 100, 0); | 328 | ret = wl1251_cmd_join(wl, wl->bss_type, 100, 1, false); |
329 | if (ret < 0) | 329 | if (ret < 0) |
330 | goto out_sleep; | 330 | goto out_sleep; |
331 | 331 | ||
@@ -565,7 +565,7 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) | |||
565 | 565 | ||
566 | if (channel != wl->channel) { | 566 | if (channel != wl->channel) { |
567 | /* FIXME: use beacon interval provided by mac80211 */ | 567 | /* FIXME: use beacon interval provided by mac80211 */ |
568 | ret = wl1251_cmd_join(wl, wl->bss_type, 1, 100, 0); | 568 | ret = wl1251_cmd_join(wl, wl->bss_type, 100, 1, false); |
569 | if (ret < 0) | 569 | if (ret < 0) |
570 | goto out_sleep; | 570 | goto out_sleep; |
571 | 571 | ||
@@ -1113,7 +1113,7 @@ static void wl1251_op_bss_info_changed(struct ieee80211_hw *hw, | |||
1113 | goto out; | 1113 | goto out; |
1114 | 1114 | ||
1115 | if (wl->bss_type != BSS_TYPE_IBSS) { | 1115 | if (wl->bss_type != BSS_TYPE_IBSS) { |
1116 | ret = wl1251_cmd_join(wl, wl->bss_type, 5, 100, 1); | 1116 | ret = wl1251_cmd_join(wl, wl->bss_type, 100, 5, true); |
1117 | if (ret < 0) | 1117 | if (ret < 0) |
1118 | goto out_sleep; | 1118 | goto out_sleep; |
1119 | wl1251_warning("Set ctsprotect failed %d", ret); | 1119 | wl1251_warning("Set ctsprotect failed %d", ret); |
@@ -1139,7 +1139,7 @@ static void wl1251_op_bss_info_changed(struct ieee80211_hw *hw, | |||
1139 | if (ret < 0) | 1139 | if (ret < 0) |
1140 | goto out; | 1140 | goto out; |
1141 | 1141 | ||
1142 | ret = wl1251_cmd_join(wl, wl->bss_type, 1, 100, 0); | 1142 | ret = wl1251_cmd_join(wl, wl->bss_type, 100, 1, false); |
1143 | 1143 | ||
1144 | if (ret < 0) | 1144 | if (ret < 0) |
1145 | goto out; | 1145 | goto out; |