android_kernel_oneplus_msm8998/net
Vasanthakumar Thiagarajan d0ba49498c cfg80211: Make pre-CAC results valid only for ETSI domain
DFS requirement for ETSI domain (section 4.7.1.4 in
ETSI EN 301 893 V1.8.1) is the only one which explicitly
states that once DFS channel is marked as available afer
the CAC, this channel will remain in available state even
moving to a different operating channel. But the same is
not explicitly stated in FCC DFS requirement. Also, Pre-CAC
requriements are not explicitly mentioned in FCC requirement.
Current implementation in keeping DFS channel in available
state is same as described in ETSI domain.

For non-ETSI DFS domain, this patch gives a grace period of 2 seconds
since the completion of successful CAC before moving the channel's
DFS state to 'usable' from 'available' state. The same grace period
is checked against the channel's dfs_state_entered timestamp while
deciding if a DFS channel is available for operation. There is a new
radar event, NL80211_RADAR_PRE_CAC_EXPIRED, reported when DFS channel
is moved from available to usable state after the grace period. Also
make sure the DFS channel state is reset to usable once the beaconing
operation on that channel is brought down (like stop_ap, leave_ibss
and leave_mesh) in non-ETSI domain.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Git-commit: b35a51c7dd25a823767969e3089542d7478777e9
[svishnoi@codeaurora.org: removed NaN interface type from switch case in net/wireless/chan.c
as NaN interface is not supported]

Change-Id: Iba19513d1e40fe5da129d6251212c33d1361fec3
Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
2017-11-23 00:33:51 -08:00
..
6lowpan
9p p9_client_readdir() fix 2017-05-02 21:19:55 -07:00
802
8021q vlan: Propagate MAC address to VLANs 2017-08-06 19:19:43 -07:00
appletalk
atm
ax25 ax25: Fix segfault after sock connection timeout 2017-02-04 09:45:09 +01:00
batman-adv batman-adv: Check for alloc errors when preparing TT local data 2016-12-15 08:49:23 -08:00
bluetooth Merge android-4.4@29d0b65 (v4.4.88) into msm-4.4 2017-09-21 14:00:18 -07:00
bridge This is the 4.4.91 stable release 2017-10-08 10:41:52 +02:00
caif net: caif: Fix a sleep-in-atomic bug in cfpkt_create_pfx 2017-07-05 14:37:14 +02:00
can can: Fix kernel panic at security_sock_rcv_skb 2017-02-18 16:39:26 +01:00
ceph libceph: force GFP_NOIO for socket allocations 2017-04-08 09:53:30 +02:00
core Merge android-4.4@89074de (v4.4.94) into msm-4.4 2017-10-27 10:56:12 -07:00
dcb
dccp dccp: defer ccid_hc_tx_delete() at dismantle time 2017-08-30 10:19:18 +02:00
decnet decnet: always not take dst->__refcnt when inserting dst into hash table 2017-07-05 14:37:14 +02:00
dns_resolver KEYS: Fix race between updating and finding a negative key 2017-10-27 10:23:18 +02:00
dsa net: dsa: Check return value of phy_connect_direct() 2017-07-05 14:37:19 +02:00
ethernet net: introduce device min_header_len 2017-02-18 16:39:27 +01:00
hsr
ieee802154 Revert "net: fix percpu memory leaks" 2017-09-27 11:00:11 +02:00
ipc_router soc: qcom: ipc_router: Improve IPC attribution 2017-06-20 15:43:11 +05:30
ipv4 Merge android-4.4@89074de (v4.4.94) into msm-4.4 2017-10-27 10:56:12 -07:00
ipv6 Merge android-4.4@89074de (v4.4.94) into msm-4.4 2017-10-27 10:56:12 -07:00
ipx ipx: call ipxitf_put() in ioctl error path 2017-05-25 14:30:13 +02:00
irda irda: do not leak initialized list.dev to userspace 2017-08-30 10:19:21 +02:00
iucv
key af_key: do not use GFP_KERNEL in atomic contexts 2017-08-30 10:19:18 +02:00
l2tp This is the 4.4.94 stable release 2017-10-22 08:09:11 +02:00
l3mdev
lapb
llc net/llc: avoid BUG_ON() in skb_orphan() 2017-02-26 11:07:49 +01:00
mac80211 Merge android-4.4@89074de (v4.4.94) into msm-4.4 2017-10-27 10:56:12 -07:00
mac802154
mpls mpls: Send route delete notifications when router module is unloaded 2017-03-22 12:04:16 +01:00
netfilter Merge android-4.4@89074de (v4.4.94) into msm-4.4 2017-10-27 10:56:12 -07:00
netlabel
netlink Merge branch 'android-4.4@9796ea8' into branch 'msm-4.4' 2017-05-09 16:50:19 -07:00
netrom
nfc ANDROID: NFC: Fix possible memory corruption when handling SHDLC I-Frame commands 2017-08-21 08:45:10 -07:00
openvswitch openvswitch: fix potential out of bound access in parse_ct 2017-08-11 09:08:53 -07:00
packet packet: only test po->has_vnet_hdr once in packet_snd 2017-10-21 17:09:03 +02:00
phonet
rds rds: ib: add error handle 2017-10-08 10:14:19 +02:00
rfkill ANDROID: rfkill: fix unused function warning 2017-05-12 14:36:34 +02:00
rmnet_data net: rmnet_data: Support recycling frames to real device 2017-10-31 10:59:13 -06:00
rose rose: limit sk_filter trim to payload 2016-11-15 14:54:51 -07:00
rxrpc rxrpc: Fix several cases where a padded len isn't checked in ticket decode 2017-06-29 12:48:52 +02:00
sched Merge android-4.4@610af85 (v4.4.85) into msm-4.4 2017-09-04 17:20:09 -07:00
sctp sctp: fully initialize the IPv6 address in sctp_v6_to_addr() 2017-08-30 10:19:19 +02:00
sunrpc SUNRPC: fix refcounting problems with auth_gss messages. 2017-04-21 09:30:08 +02:00
switchdev
tipc tipc: use only positive error codes in messages 2017-10-21 17:09:03 +02:00
unix Merge android-4.4@64a73ff (v4.4.76) into msm-4.4 2017-07-10 03:00:34 -07:00
vmw_vsock VSOCK: Detach QP check should filter out non matching QPs. 2017-04-27 09:09:32 +02:00
wimax
wireless cfg80211: Make pre-CAC results valid only for ETSI domain 2017-11-23 00:33:51 -08:00
x25 Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
xfrm net: restore upstream changes which break routing in tunnel scenarios 2017-10-19 16:58:20 -07:00
compat.c audit: log 32-bit socketcalls 2017-10-08 10:14:18 +02:00
Kconfig
Makefile
socket.c Merge branch 'android-4.4@b834e92' into branch 'msm-4.4' 2017-04-25 12:51:55 -07:00
sysctl_net.c net: Use ns_capable_noaudit() when determining net sysctl permissions 2016-09-15 08:27:50 +02:00