wlan: Control chan avoidance indication through ini and ioctl

Provide mechanism to user to enable or disable channel avoidance
indication through ioctl and also control this mechanism using
"gOptimizeCAevent" ini parameter.

By default "gOPtimizeCAevent" ini parameter is disabled. Ini param
controls the CA events based on the mode. If ini is enabled(1) then
firmware will send CA events only in SAP/GO mode and it will not send
any CA events in STA mode. If ini is disabled CA events are sent to
host in all the modes.

a. gOptimizeCAevent = 1
   - When host sends ioctl(enable), FW will send "ONE" CA indication
     to host(though it is duplicate).
   - When host sends ioctl(disable), FW doesnot perform any action.
   - Whenever any change in CA and WLAN is SAP/P2P-GO mode, FW will
     send CA ind to host regardless of the ioctl status.
b. gOptimizeCAevent = 0
   - FW will ignore ioctl request if received.
   - CxM behavior will be as per the current implementation.

Change-Id: Ie453f35f3316da8a010fd4b7107feb585eabd3a6
CRs-Fixed: 903249
15 files changed
tree: a2892c21dce39ff1202a6b71f6825788034de7a0
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile