wlan: Dynamic selection of CBmode based on primary channel.

According to the Spec.
1) The valid channels set for 40MHZ are
36+40, 44+48, 52+56, 60+64 and etc.
2) The valid channels set for 80MHZ are
36+40+44+48, 52+56+60+64 and etc.
3) The invalid channels set for 40MHZ are
40+44, 48+52, 56+60, 64+68 and etc.
4) The invalid channels set for 80MHZ are
40+44+48+52, 56+60+64+68 and etc

The problem is for SoftAP and P2P-GO
the driver always follows cb mode
configured in the WCNSS_qcom_cfg.ini
file defined as gChannelBondingMode5GHz.
If the user configures the invalid value
in the gChannelBondingMode5GHz then the
driver blindly follows that which is
causing the problem.

With the dynamic channel bonding selection
the driver looks for the primary channel and
configures the correct cb mode.

Change-Id: I604b1f710915c3f236a1784aa33243b0b5e3251d
CRs-Fixed: 423496, 421901
1 file changed
tree: 0a0062f78074ad64844dd8b54362c7592db163f4
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Kconfig
  5. Makefile