android_kernel_oneplus_msm8998/net/wireless
Jouni Malinen dcfe151610 cfg80211: Allow cfg80211_connect_result() errors to be distinguished
Previously, the status parameter to cfg80211_connect_result() was
documented as using WLAN_STATUS_UNSPECIFIED_FAILURE (1) when the real
status code for the failure is not known. This value can be used by an
AP (and often is) and as such, user space cannot distinguish between
explicitly rejected authentication/association and not being able to
even try to associate or not receiving a response from the AP.

Add a new inline function, cfg80211_connect_timeout(), to be used when
the driver knows that the connection attempt failed due to a reason
where connection could not be attempt or no response was received from
the AP. The internal functions now allow a negative status value (-1) to
be used as an indication of this special case. This results in the
NL80211_ATTR_TIMED_OUT to be added to the NL80211_CMD_CONNECT event to
allow user space to determine this case was hit. For backwards
compatibility, NL80211_STATUS_CODE with the value
WLAN_STATUS_UNSPECIFIED_FAILURE is still indicated in the event in such
a case.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
[johannes: fix cfg80211_connect_bss() prototype to use int for status,
 add cfg80211_connect_timeout() to docbook, fix docbook]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: bf1ecd210541ef5f3a110e88e8ca5d33b4aa5c23
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 2004380
Change-Id: I43e2a7d588ee86a8470cf72ac0a95daaae569fa0
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
2017-03-06 21:18:26 -08:00
..
.gitignore
ap.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
chan.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
core.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
core.h cfg80211: Allow cfg80211_connect_result() errors to be distinguished 2017-03-06 21:18:26 -08:00
db.txt msm: wlan: update regulatory database 2016-11-17 12:19:51 -08:00
debugfs.c
debugfs.h
ethtool.c
genregdb.awk
ibss.c
Kconfig
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
Makefile
mesh.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
mlme.c cfg80211: Add support for randomizing TA of Public Action frames 2017-01-17 15:25:09 +05:30
nl80211.c cfg80211: Allow cfg80211_connect_result() errors to be distinguished 2017-03-06 21:18:26 -08:00
nl80211.h cfg80211: Allow cfg80211_connect_result() errors to be distinguished 2017-03-06 21:18:26 -08:00
ocb.c
radiotap.c
rdev-ops.h cfg80211/mac80211: disconnect on suspend 2017-02-05 11:26:29 -08:00
reg.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
reg.h
regdb.h
scan.c Merge tag 'lsk-v4.4-16.12-android' into branch 'msm-4.4' 2017-02-28 17:10:49 -08:00
sme.c cfg80211: Allow cfg80211_connect_result() errors to be distinguished 2017-03-06 21:18:26 -08:00
sysfs.c cfg80211: Do not disconnect on suspend 2017-02-06 10:00:20 +05:30
sysfs.h
trace.c
trace.h cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
util.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
wext-compat.c
wext-compat.h
wext-core.c Revert "wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel" 2016-09-24 10:07:41 +02:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c