staging: r8712u: Fix driver to support ad-hoc mode
commit9edb40ddd05b47703bb1b5757ba36e96c77d1fdd
authorJeff Chua <jeff.chua.linux@gmail.com>
Wed, 27 Apr 2011 16:25:14 +0000 (27 11:25 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:32:10 +0000 (3 09:32 +0900)
tree9d46ae15165c6c7e1072721034622b87b8928fe7
parentd13ae39a34fb711bf0add4bfd25e08b2f7aba104
staging: r8712u: Fix driver to support ad-hoc mode

commit 62819fd9481021db7f87d5f61f2e2fd2be1dfcfa upstream.

Driver r8712u is unable to handle ad-hoc mode. The issue is that when
the driver first starts, there will not be an SSID for association.
The fix is to always call the "select and join from scan" routine when
in ad-hoc mode.

Note: Ad-hoc mode worked intermittently before. If the driver had
previously been associated, then things were OK.

Signed-off-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl871x_ioctl_set.c