mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
net: wireless: Skip connect warning for CONFIG_CFG80211_ALLOW_RECONNECT
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
e7c926ff4d
commit
bd0ac3f403
|
|
@ -772,9 +772,11 @@ int __cfg80211_connect(struct cfg80211_registered_device *rdev,
|
|||
#ifndef CONFIG_CFG80211_ALLOW_RECONNECT
|
||||
if (wdev->sme_state != CFG80211_SME_IDLE)
|
||||
return -EALREADY;
|
||||
#endif
|
||||
|
||||
if (WARN_ON(wdev->connect_keys)) {
|
||||
#else
|
||||
if (wdev->connect_keys) {
|
||||
#endif
|
||||
kfree(wdev->connect_keys);
|
||||
wdev->connect_keys = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user