mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
net: wireless: Add CFG80211_ALLOW_RECONNECT option
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
998ba94954
commit
c6a6a521e9
2 changed files with 13 additions and 0 deletions
|
@ -160,3 +160,14 @@ config LIB80211_DEBUG
|
|||
from lib80211.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config CFG80211_ALLOW_RECONNECT
|
||||
bool "Allow reconnect while already connected"
|
||||
depends on CFG80211
|
||||
default n
|
||||
help
|
||||
cfg80211 stack doesn't allow to connect if you are already
|
||||
connected. This option allows to make a connection in this case.
|
||||
|
||||
Select this option ONLY for wlan drivers that are specifically
|
||||
built for such purposes.
|
||||
|
|
|
@ -767,8 +767,10 @@ int __cfg80211_connect(struct cfg80211_registered_device *rdev,
|
|||
|
||||
ASSERT_WDEV_LOCK(wdev);
|
||||
|
||||
#ifndef CONFIG_CFG80211_ALLOW_RECONNECT
|
||||
if (wdev->sme_state != CFG80211_SME_IDLE)
|
||||
return -EALREADY;
|
||||
#endif
|
||||
|
||||
if (WARN_ON(wdev->connect_keys)) {
|
||||
kfree(wdev->connect_keys);
|
||||
|
|
Loading…
Reference in a new issue