diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2009-12-11 08:40:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:31:30 -0500 |
commit | 9cf25fed6a3b1c0792cbab3e934a4e2b6736d284 (patch) | |
tree | 4ae88b29083bafebe7bdfc22f38832e80bc25eca /drivers | |
parent | c7f43e451ba40e66a89d51e63bc21a57824592f2 (diff) |
wl1271: remove workaround for disconnection
Now we're using a the idle information coming from mac80211 to decide when to
disconnect. If we have joined (ie. we're listening to a channel), whenever
the interface goes to idle, we will issue a disconnect command. So the
workaround to send a disconnect command before joining is not needed anymore.
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index 57c21454e543..ceb1ca63c43a 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c | |||
@@ -344,19 +344,6 @@ int wl1271_cmd_join(struct wl1271 *wl) | |||
344 | do_cal = false; | 344 | do_cal = false; |
345 | } | 345 | } |
346 | 346 | ||
347 | /* FIXME: This is a workaround, because with the current stack, we | ||
348 | * cannot know when we have disassociated. So, if we have already | ||
349 | * joined, we disconnect before joining again. */ | ||
350 | if (wl->joined) { | ||
351 | ret = wl1271_cmd_disconnect(wl); | ||
352 | if (ret < 0) { | ||
353 | wl1271_error("failed to disconnect before rejoining"); | ||
354 | goto out; | ||
355 | } | ||
356 | |||
357 | wl->joined = false; | ||
358 | } | ||
359 | |||
360 | join = kzalloc(sizeof(*join), GFP_KERNEL); | 347 | join = kzalloc(sizeof(*join), GFP_KERNEL); |
361 | if (!join) { | 348 | if (!join) { |
362 | ret = -ENOMEM; | 349 | ret = -ENOMEM; |
@@ -421,8 +408,6 @@ int wl1271_cmd_join(struct wl1271 *wl) | |||
421 | goto out_free; | 408 | goto out_free; |
422 | } | 409 | } |
423 | 410 | ||
424 | wl->joined = true; | ||
425 | |||
426 | /* | 411 | /* |
427 | * ugly hack: we should wait for JOIN_EVENT_COMPLETE_ID but to | 412 | * ugly hack: we should wait for JOIN_EVENT_COMPLETE_ID but to |
428 | * simplify locking we just sleep instead, for now | 413 | * simplify locking we just sleep instead, for now |