OSDN Git Service

staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 25 Nov 2017 19:32:38 +0000 (13:32 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:39:17 +0000 (17:39 +0100)
commitc789cfe0ae72005f368aef5c361851fabec0e5f5
treecdbe26a299fb44cb24f0f64d0d44698cda435bb1
parent0479bc01767ff58170a2f1ae27e6b98f9dfa01b9
staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID

[ Upstream commit b77992d2df9e47144354d1b25328b180afa33442 ]

When not associated with an AP, wifi device drivers should respond to the
SIOCGIWESSID ioctl with a zero-length string for the SSID, which is the
behavior expected by dhcpcd.

Currently, this driver returns an error code (-1) from the ioctl call,
which causes dhcpcd to assume that the device is not a wireless interface
and therefore it fails to work correctly with it thereafter.

This problem was reported and tested at
https://github.com/lwfinger/rtl8188eu/issues/234.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c