prima: Change default value of gCountryCodePriority to 1

Currently, default value of gCountryCodePriority is zero. Change
this to 1.

Change-Id: I4f2115638b273ab4ac20b9ebc043fbb2496240cc
CRs-Fixed: 665630
wlan: Fix for SAP turning ON on invalid channels for a given CC

Avoid SAP turning ON on invalid channels when a particular country
code is set in hostapd.conf due to race condition between reg
notifier and nv bin based channel initializtion during driver load.

This commit ensures reg_notifier callback is called once the
channels are initialized based on nv bin, thus updating the latest
reg domain set by the notifier callback.

Change-Id: I4e8e9e9a86a58c8bf4c4ee9ebb85ba691694bd1c
CRs-Fixed: 661014
wlan: Enabling GO/SAP on UNII-1 band by default for FCC.

Currently GO/SAP are blocked on UNII-1 band in FCC domain.
With the new FCC requirment, GO/SAP can be formed on UNII-1
band.

CRs-Fixed: 660078
Change-Id: I28c191727ebae282eecb7dbb605055107dd36daf
Wlan: Revision 3.2.3.328

Revision 3.2.3.328

Change-Id: Id16edf42eba75d5adbb8b208e6dc35fe8c468190
wlan: Use correct parameter in BUG_ON api.

Currently we issue BUG_ON(0) in wpalDevicePanic
which is not effective. Changing it to BUG_ON(1)
This will issue panic correctly.

Change-Id: I9017cc028106072e9d56a368260d5c3d4242f9a1
CRs-Fixed:  663953
Wlan: Revision 3.2.3.329

Revision 3.2.3.329

Change-Id: I99581a37951879628c342066235ab55a2f189e7a
P2P: Defer IMPS for configured gDeferIMPStime value.

Defer entering into IMPS mode for the duration of configured
gDeferIMPStime if any command is processed.

To disable deferring IMPS, configure variable gDeferIMPStime
must be set to 0. By default it is 200ms and maximum value
500ms can be configured.

Change-Id: I32ed20875954b884d637f40ea9c520538c4d5cd1
CRs-Fixed: 657916
P2P : Connection failure because of Go negotiation failure.

In this issue GO negotiation response was sent by peer
almost after 500 msec afetr GO negotiation request was send.
As a part of fix , extended ROC duration for Invitation request,
GO nego req and GO neg resp so that action frames at the boundary
time is not missed.
Change-Id: I01704494f81ed28c9182bcbe2879dec7a35b1e8b
CRs-Fixed: 646514
wlan: Fix for issues reported by Static Analysis tool

In function hdd_conf_ns_offload(), uninitialized pointer
'selfIPv6Addr' will be passed to mem_free() if mem_alloc() for
'selfIPv6AddrValid' fails.
Initialize pointers 'selfIPv6Addr' & 'selfIPv6AddrValid' to NULL

Change-Id: I826b14ca2dd763d75e5384396282a83154542e98
CRs-Fixed: 668667
wlan: HDD: Fix for issues reported by Static Analysis

In wlan_hdd_cfg80211_get_key() using 'params.cipher' variable in
MTRACE before variable is initialized. So, call MTRACE after
'params.cipher' is populated.

Change-Id: I6e97fd5801c776e4b7851a37dad4d507014c0232
CRs-Fixed: 668667.
wlan: HDD: Fix for issues reported by Static Analysis.

Free dynamically allocated memory 'pHddCtx->cfg_ini'in hdd_wlan_exit()
irrespective of pAdapter value.

Change-Id: If6d98b30adbeebd9a6d54c2f369b659124dcaad9
CRs-Fixed: 668671
wlan: Fix for issue reported by Static Analysis tool

In limSendProbeRspMgmtFrame(), initialization of struct
'extractedExtCap' is inside a if condition, which would
result uninitialized access of struct if addIEpresent fails.
Moved memset of structure 'extractedExtCap' to immediately
after its declaration.

Change-Id: Ia03264bf1dcd9519955bc636e7e7c130e11a53c6
CRs-Fixed: 668666
wlan: Incorrect PMF configuration for soft AP

The PMF configuration of the soft AP is not correct
when the soft AP is configured for open security.
This is because two PMF state variables are not
set to any value in the open security case.

Change-Id: Ia331faf7b894637f9c1a0e1fd612bf1c2b587100
CRs-Fixed: 665639
wlan:Disconnect STA if channel is not supported by new cc.

If STA is connected and country is changed from user space, then
STA remains connected even when the channel is not supported by
new country code.As a part of fix , issue disconnect command when
the given channel is not supported in new CC.

Change-Id: I7fffeb3923d21ce1294e4b265de126050bc6c025
CRs-Fixed: 662915
wlan: Map deauth(reason 3) from supplicant properly in driver

Deauth with reason 3 is mapped to dissoc with reason 1 in driver.

Mapped deauth with reason 3 to deauth with reason 3 in driver.

Change-Id: I65c7a3680e7c41b4de1d0f4332179c11c2355ceb
CRs-Fixed: 667257
Wlan: Revision 3.2.3.330

Revision 3.2.3.330

Change-Id: I0c720e0a718a3dc581be8caf55dc73c29bd45c14
wlan: Interface file changes to send correct rssi value.

Add correct data-type for rssi variable to provide correct rssi
value, while populating batch scan results.

Change-Id: I771b8622f4ab8555595e63095dc146f968a0d551
CRs-fixed: 665851
wlan: send correct rssi value while sending batch scan results.

Add correct data-type for rssi variable, to provide correct rssi
value to upper layer, while populating btach scan results.

Change-Id: I824f1a41680a5458cbaa115885b17925a209a38b
CRs-fixed: 665851.
wlan: Remove the NULL SSID check from AP caps mismatch logic.

In limDetectChangeInApCapabilities if SSID is NULL DUT sends an
unicast probe request to AP and recheck the capability once
it gets the probe resp.Some APs sends NULL SSID even in Probe
resp and thus AP is disconnected.

Removed the NULL SSID check from limDetectChangeInApCapabilities.

Change-Id: Ie195b8ab9a0e24e5c6082d62090cfa7c22ee3ccc
CRs-Fixed: 669282
Multicast Address list is not configured after roaming

For router advertisement packet handling host need to configure multicast
address list after roaming.but as of now host is not pushing this list
so all RA pkt sent by AP was getting dropped at Firmware.Changes has been
made to sent multicast address list from host to firmware
in hdd_ReConfigSuspendDataClearedDuringRoaming function.

Change-Id: Ibc7f62fc846d5f441d61ada1b21b1e72be387a0f
CRs-Fixed: 667438