wlan: Avoid unsafe channel with softap mode and P2PGO mode
If FW sends unsafe channel detect indication,
Softap mode and P2PGO mode, should avoid to stay unsafe channels.
Make indication path from FW.
Store into module context.
Store into static module storage incase of re-load driver.
Channel selection should avoid unsafe channel
CRs-fixed: 576020
diff --git a/Kbuild b/Kbuild
index f2e6740..ca2f403 100644
--- a/Kbuild
+++ b/Kbuild
@@ -643,6 +643,8 @@
CDEFINES += -DCONFIG_ENABLE_LINUX_REG
endif
+CDEFINES += -DFEATURE_WLAN_CH_AVOID
+
# Fix build for GCC 4.7
EXTRA_CFLAGS += -Wno-maybe-uninitialized -Wno-unused-function