linux/net/wireless
Andrei Otcheretianski 36a554cec1 nl80211: Don't verify owner_nlportid on NAN commands
If NAN interface is created with NL80211_ATTR_SOCKET_OWNER, the socket
that is used to create the interface is used for all NAN operations and
reporting NAN events.
However, it turns out that sending commands and receiving events on
the same socket is not possible in a completely race-free way:
If the socket buffer is overflowed by the events, the command response
will not be sent. In that case the caller will block forever on recv.
Using non-blocking socket for commands is more complicated and still
the command response or ack may not be received.
So, keep unicasting NAN events to the interface creator, but allow
using a different socket for commands.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-06-30 09:44:17 +03:00
..
.gitignore
Kconfig
Makefile
ap.c
chan.c
core.c cfg80211: support 4-way handshake offloading for 802.1X 2017-06-13 10:44:09 +02:00
core.h cfg80211: add request id to cfg80211_sched_scan_*() api 2017-04-28 14:51:43 +02:00
db.txt
debugfs.c
debugfs.h
ethtool.c
genregdb.awk
ibss.c
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
mesh.c wireless: Only join DFS channels in mesh mode if userspace flags support 2017-05-19 13:25:58 +02:00
mlme.c
nl80211.c nl80211: Don't verify owner_nlportid on NAN commands 2017-06-30 09:44:17 +03:00
nl80211.h
ocb.c
of.c
radiotap.c
rdev-ops.h cfg80211: support 4-way handshake offloading for 802.1X 2017-06-13 10:44:09 +02:00
reg.c
reg.h
regdb.h
scan.c cfg80211: make cfg80211_sched_scan_results() work from atomic context 2017-05-23 14:36:46 +02:00
sme.c nl80211: add authorized flag to ROAM event 2017-06-13 11:04:37 +02:00
sysfs.c
sysfs.h
trace.c
trace.h cfg80211: support 4-way handshake offloading for 802.1X 2017-06-13 10:44:09 +02:00
util.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
wext-compat.c
wext-compat.h
wext-core.c dev_ioctl: copy only the smaller struct iwreq for wext 2017-06-14 13:52:44 +02:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c