Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183362
b: refs/heads/master
c: 9cf25fe
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Dec 28, 2009
1 parent 8ca0079 commit 0e91f18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7f43e451ba40e66a89d51e63bc21a57824592f2
refs/heads/master: 9cf25fed6a3b1c0792cbab3e934a4e2b6736d284
15 changes: 0 additions & 15 deletions trunk/drivers/net/wireless/wl12xx/wl1271_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,19 +344,6 @@ int wl1271_cmd_join(struct wl1271 *wl)
do_cal = false;
}

/* FIXME: This is a workaround, because with the current stack, we
* cannot know when we have disassociated. So, if we have already
* joined, we disconnect before joining again. */
if (wl->joined) {
ret = wl1271_cmd_disconnect(wl);
if (ret < 0) {
wl1271_error("failed to disconnect before rejoining");
goto out;
}

wl->joined = false;
}

join = kzalloc(sizeof(*join), GFP_KERNEL);
if (!join) {
ret = -ENOMEM;
Expand Down Expand Up @@ -421,8 +408,6 @@ int wl1271_cmd_join(struct wl1271 *wl)
goto out_free;
}

wl->joined = true;

/*
* ugly hack: we should wait for JOIN_EVENT_COMPLETE_ID but to
* simplify locking we just sleep instead, for now
Expand Down

0 comments on commit 0e91f18

Please sign in to comment.