aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_cmd.c
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-08-07 06:34:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:40 -0400
commitae46ae17d1d8b953eb5859764737c065e4e3c86b (patch)
treef9d4e5cb265dc372ccdbcc8e6f843de80c17d622 /drivers/net/wireless/wl12xx/wl1251_cmd.c
parentc88f87540fa4b90a0b8696dae8bce801ecc142d3 (diff)
wl1251: create wl1251_join()
Better to use wl1251_cmd_join() only for sending the command and move the logic to wl1251_join(). 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/wl1251_cmd.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_cmd.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_cmd.c b/drivers/net/wireless/wl12xx/wl1251_cmd.c
index 4e796db16244..d7800a39f7d4 100644
--- a/drivers/net/wireless/wl12xx/wl1251_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1251_cmd.c
@@ -254,7 +254,6 @@ out:
254int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 channel, 254int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 channel,
255 u16 beacon_interval, u8 dtim_interval) 255 u16 beacon_interval, u8 dtim_interval)
256{ 256{
257 unsigned long timeout;
258 struct cmd_join *join; 257 struct cmd_join *join;
259 int ret, i; 258 int ret, i;
260 u8 *bssid; 259 u8 *bssid;
@@ -265,14 +264,6 @@ int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 channel,
265 goto out; 264 goto out;
266 } 265 }
267 266
268 /* FIXME: this should be in main.c */
269 ret = wl1251_acx_frame_rates(wl, DEFAULT_HW_GEN_TX_RATE,
270 DEFAULT_HW_GEN_MODULATION_TYPE,
271 wl->tx_mgmt_frm_rate,
272 wl->tx_mgmt_frm_mod);
273 if (ret < 0)
274 goto out;
275
276 wl1251_debug(DEBUG_CMD, "cmd join%s ch %d %d/%d", 267 wl1251_debug(DEBUG_CMD, "cmd join%s ch %d %d/%d",
277 bss_type == BSS_TYPE_IBSS ? " ibss" : "", 268 bss_type == BSS_TYPE_IBSS ? " ibss" : "",
278 channel, beacon_interval, dtim_interval); 269 channel, beacon_interval, dtim_interval);
@@ -300,14 +291,6 @@ int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 channel,
300 goto out; 291 goto out;
301 } 292 }
302 293
303 timeout = msecs_to_jiffies(JOIN_TIMEOUT);
304
305 /*
306 * ugly hack: we should wait for JOIN_EVENT_COMPLETE_ID but to
307 * simplify locking we just sleep instead, for now
308 */
309 msleep(10);
310
311out: 294out:
312 kfree(join); 295 kfree(join);
313 return ret; 296 return ret;