wlan: Use proper enum to set VHT channel width

Enums used to set VHT channel width are not proper.

Adds proper enums to set the VHT channel width.

Change-Id: Ief286a2adec94c7c1f57c719a7ed5b4a3a6326c3
CRs-Fixed: 644603
wlan: Fix for device crash with p2p_no_group_iface=0 in config file

Since ula_complete variable is used in wait call without initializing
the same leads to device crash, avoid the same by initializing the
ula_completion completion variable in P2P GO/SAP context.

Change-Id: Iac1b0fff881512b6a3bc6263d2e79b21f218aea2
CRs-Fixed: 652376
wlan: Disable CCX for WPA2-Enterprise (802.1X) or WPA2-PSK

Currently our CCX-enabled driver configures an assocaition as CCX
if it is made with a CCX-capable AP.  This change insures that we only
configure for CCX if the supplicant indicates an AKM of CCKM. (Or
if the association is "open" with a "CCX capable" AP.)

Change-Id: I3139c2e48a00f6a0387845c823d4153da3b3aaa0
CRs-Fixed: 651515
wlan: Change the cc given by userspace when 11d is disabled.

Currently, when STA is connected and gCountryCodePriority=0 then
country code is not set as per given by userspace.
Changes are done to set the country code as follows
1) If 11d is disabled, then change the country code given by user
space
2) If 11d is enabled and gCountryCodePriority is set then change
the country code given by userspace.

CRs-Fixed: 654536
Change-Id: I0a32a1fdff38d851ad2c8f90ef8ae165d7e234d8
wlan : ArrayIndexOutOfBoundsException in sme_Qos.

In function, sme_QosInternalSetupReq, following
pACInfo->requested_QoSInfo[tmask-1] = Tspec_Info
and pACInfo->num_flows[tmask - 1]++
may take -1 index when tmask is 0.
Added a check to avoid this case.

Change-Id: I900c8b35ee6623a8cda8ee837ed3dcfc00cd5bae
CRs-Fixed: 642523
wlan : Array 'csrWapiOui' of size 3 may use index value(s) 0..5

Array out of bound error was reported in csrMatchWapiOUIIndex.
As a part of fix added array size condition so that out of
bound error is not observed.

Change-Id: Id93755c829f6303bb8defdb869c1f11c08c5f8ab
CRs-Fixed: 642523
wlan : Static issue reported in csrNeighborRoam file.

In csrNeighborRoamPrepareNonOccupiedChannelList
function check has been added to make sure that
channels added in non-occupied channel list are
from valid channel list only.

Change-Id: Ieba069cbd625dcc557d236df20c74cac2e91f98b
CRs-Fixed: 642523
Wlan: Revision 3.2.3.310

Revision  3.2.3.310

Change-Id: I6ce772cf9ab5f3a3e86e4a19929ad3d5a992cae9