staging: r8712u: Fix driver to support ad-hoc mode
authorJeff Chua <jeff.chua.linux@gmail.com>
Wed, 27 Apr 2011 16:25:14 +0000 (11:25 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 17:57:39 +0000 (10:57 -0700)
commit62819fd9481021db7f87d5f61f2e2fd2be1dfcfa
tree2a9e2fd25dd3c6077ef6a6e3c945412165d55147
parent3d51406d08649d166b3f3d552da2bdfbcf46fcde
staging: r8712u: Fix driver to support ad-hoc mode

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>
Cc: Stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl871x_ioctl_set.c