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)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:21:02 +0000 (12:21 -0500)
commitdf9199c0e343bb0bb16cb83e2c920e9e98a111a7
tree6c665c33a4abb5c1cb5eebdcd630ad54a155e1cc
parent052583cd8c631cad05e496bc0eeec0352a990a8c
staging: r8712u: Fix driver to support ad-hoc mode

BugLink: http://bugs.launchpad.net/bugs/793702

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/staging/rtl8712/rtl871x_ioctl_set.c