wlan: Store avoid channel list

Store avoid channel list into recoverable location.
If Softap mode detects current channel is not safe to use,
WLAN kernel module will be restarted.
Then WLAN kernel module internal storage will lost
unsafe channel information.
To avoid start softap with unsafe channel, channel information
should be stored in static location.

Change-Id: I5a6d7ab7314936d7bbaaf7a005e58179a4dc0613
CRs-fixed: 576020
Signed-off-by: Leo Chang <leochang@codeaurora.org>
wlan: update country code for 11d

Update the country code while new 11d information found, only if
we are not connected to an AP which is already advertising some
country code

CRs-Fixed: 564552
Change-Id: I88217b90a106c62fc0ff63e9ef115ee49e475ccb
Merge "Merge "wlan:Revision 3.2.7.31""
Merge "Merge "msm: ipc: Possible memory corruption due to Sign Conversion""
Merge "Merge "Merge "wlan:Revision 3.2.7.31"""
Merge "Merge "Merge "msm: ipc: Possible memory corruption due to Sign Conversion"""
Merge "Merge "wlan:Revision 3.2.7.31""
Merge "Merge "msm: ipc: Possible memory corruption due to Sign Conversion""
Merge "Merge "Merge "wlan:Revision 3.2.7.31"""
Merge "Merge "Merge "msm: ipc: Possible memory corruption due to Sign Conversion"""
Merge "Merge "Merge "wlan:Revision 3.2.7.31"""
Merge "Merge "Merge "msm: ipc: Possible memory corruption due to Sign Conversion"""
wlan: Stopping SAP leads to firmware crash.

While stopping SAP, deauth is triggered from host for all
stations and trigger is set to eLIM_HOST_DEAUTH. Same time
inactivity timer might also trigger the disassoc for the
station and it would change the trigger from
eLIM_HOST_DEAUTH to eLIM_LINK_MONITORING_DISASSOC.
In this scenareo if deauth ack is recieved, it continues
Processing ahead with trigger as eLIM_LINK_MONITORING_DISASSOC
and thus end up calling the wrong callback. Thus the original
command is never removed from roamCmdPendingList leading to
stalling of the queue.

If deauth is sent to a station, set the mlme state to
eLIM_MLM_WT_DEL_STA_RSP_STATE to avoid disassoc to the same
station and thus prevent the change in the trigger value.

The vice versa(avoid deauth if disassoc is already sent for the
station) is already taken care.

Change-Id: I71653ee4702b43d37b3fe1c6302be08b0a5edd3a
CRs-Fixed: 592827
wlan:Revision 3.2.7.33

Revision 3.2.7.33

Change-Id: I702ab510c8aa7a2fb52edd3cc9f50268067a497d
Merge "wlan:Revision 3.2.7.33"
Merge "wlan: update country code for 11d"
Merge "wlan: Stopping SAP leads to firmware crash."
Merge "Merge "wlan: Stopping SAP leads to firmware crash.""
Merge "wlan: Store avoid channel list"
Merge "Merge "Merge "wlan: Stopping SAP leads to firmware crash."""