Commit graph

8,459 commits

Author SHA1 Message Date
Tiger Yu
62ef4fb08d qcacld-3.0: Fix potential buffer overflow in ol_rx_flush_handler
qcacld-2.0 to qcacld-3.0 propagation

Check for the validity of tid when received the htt message of
HTT_T2H_MSG_TYPE_RX_FLUSH & HTT_T2H_MSG_TYPE_RX_PN_IND from firmware
to ensure the buffer overflow does not happen.

And correct the sequence number type from signed int to unsigned.

Change-Id: Ibff86e891c335bfe8c2f9db82410545036463ed3
CRs-Fixed: 2149399
2017-12-10 22:16:17 -08:00
Tiger Yu
a007b9a256 qcacld-3.0: Fix potential buffer overflow for TX_COMPL_IND
qcacld-2.0 to qcacld-3.0 propagation

Check for the validity of num_msdus when received the htt message of
HTT_T2H_MSG_TYPE_TX_COMPL_IND or HTT_T2H_MSG_TYPE_TX_INSPECT_IND from
firmware to ensure the buffer overflow does not happen.

Change-Id: Ic6ce75f34c5e2705d174eda014350e6ef0391388
CRs-Fixed: 2146869
2017-12-10 22:16:13 -08:00
snandini
99ec257084 Release 5.2.0.57A
Release 5.2.0.57A

Change-Id: If5f9c1055c259b100111da509351e055801b6836
CRs-Fixed: 774533
2017-12-10 21:26:56 -08:00
Tiger Yu
c35fbb1e72 qcacld-3.0: Fix potential integer overflow when TX_CREDIT_UPDATE
qcacld-2.0 to qcacld-3.0 propagation

Check for the validity of credits when received the htt message of
HTT_T2H_MSG_TYPE_TX_CREDIT_UPDATE_IND or HTT_T2H_MSG_TYPE_TX_COMPL_IND
from firmware to ensure the integer overflow does not happen if these
messages invoked many times.

Change-Id: I01386b88f1b677153f3e51e055b7fbac073cd6b3
CRs-Fixed: 2147127
2017-12-10 21:26:54 -08:00
snandini
8159423fff Release 5.2.0.57
Release 5.2.0.57

Change-Id: Ida6ab2930cbd104aca1fd57b17d0017eb26a35eb
CRs-Fixed: 774533
2017-12-09 23:27:10 -08:00
Venkata Sharath Chandra Manchala
1240fc7c98 qcacld-3.0: Enable Packetlog for Napier
Add ATH_PKTLOG_LITE_T2H and ATH_PKTLOG_LITE_RX
support for Napier.

Change-Id: I6e2833e2f7e1a4c68c51f7ae83d0ae76f63c9b0f
CRs-Fixed: 2133558
2017-12-09 23:27:07 -08:00
CNSS_WLAN Service
c4d5f251d0 Merge "Release 5.2.0.56Z" into wlan-cld3.driver.lnx.2.0 2017-12-09 21:13:29 -08:00
CNSS_WLAN Service
da52068904 Merge "Revert "qcacld-3.0: Set PF_WAKE_UP_IDLE flag in the IPA Rx exception callback"" into wlan-cld3.driver.lnx.2.0 2017-12-09 21:13:28 -08:00
CNSS_WLAN Service
a7737fba22 Merge "Release 5.2.0.56Y" into wlan-cld3.driver.lnx.2.0 2017-12-09 21:13:26 -08:00
CNSS_WLAN Service
043eca59ff Merge "qcacld-3.0: Check regulatory domain before assuming ETSI channels" into wlan-cld3.driver.lnx.2.0 2017-12-09 21:13:25 -08:00
CNSS_WLAN Service
174be443e0 Merge "Release 5.2.0.56X" into wlan-cld3.driver.lnx.2.0 2017-12-09 21:13:24 -08:00
CNSS_WLAN Service
7753b89ff4 Merge "qcacld-3.0: Fix memleak in wlan_hdd_cfg80211_do_acs" into wlan-cld3.driver.lnx.2.0 2017-12-09 21:13:22 -08:00
CNSS_WLAN Service
7fb0864ac2 Merge "Release 5.2.0.56W" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:28 -08:00
CNSS_WLAN Service
033346946d Merge "qcacld-3.0: Validate Country IE length before copying country code" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:27 -08:00
CNSS_WLAN Service
53b0557f91 Merge "qcacld-3.0: Fix active cmd timeout issue" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:25 -08:00
CNSS_WLAN Service
9252c07495 Merge "Release 5.2.0.56V" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:24 -08:00
CNSS_WLAN Service
c7132a627f Merge "qcacld-3.0: cleanup scan queue in case of SSR" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:22 -08:00
CNSS_WLAN Service
b1f8f4ebd2 Merge "Release 5.2.0.56U" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:21 -08:00
CNSS_WLAN Service
c81f3cb238 Merge "qcacld-3.0: Fix implicit enum conversion in csr_fetch_valid_ch_lst" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:19 -08:00
CNSS_WLAN Service
91e38af93c Merge "qcacld-3.0: Fix implicit conversion in lim_process_sme_req_messages.c" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:18 -08:00
CNSS_WLAN Service
0b62b7cc01 Merge "qcacld-3.0: Add regpair for country AR and CL" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:16 -08:00
CNSS_WLAN Service
108353ce5a Merge "Release 5.2.0.56T" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:15 -08:00
CNSS_WLAN Service
18390a6274 Merge "qcacld-3.0: Fix potential integer underflow in lim_parse_kde_elements" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:13 -08:00
CNSS_WLAN Service
0a822a3c4d Merge "qcacld-3.0: Check for non zero length for FILS info" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:12 -08:00
CNSS_WLAN Service
8876e7dceb Merge "Release 5.2.0.56S" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:09 -08:00
CNSS_WLAN Service
a3c14f4ade Merge "qcacld-3.0: Avoid pkt drop in DFS CAC for SAP dual band mode" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:07 -08:00
CNSS_WLAN Service
3bf6e9b0a9 Merge "qcacld-3.0: Pass roam_info for SSID scan failure if FILS connection" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:05 -08:00
CNSS_WLAN Service
6291735e0e Merge "qcacld-3.0: Set PF_WAKE_UP_IDLE flag in the IPA Rx exception callback" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:04 -08:00
CNSS_WLAN Service
6b7b7dcc9b Merge "qcacld-3.0: Fix QDF_TRACE() in ol_txrx_peer_remove_obj_map_entries" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:02 -08:00
CNSS_WLAN Service
c26582b4a1 Merge "Release 5.2.0.56R" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:54:00 -08:00
CNSS_WLAN Service
f8238da07d Merge "qcacld-3.0: Statically allocate DPH hash table" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:58 -08:00
CNSS_WLAN Service
51f2f0dde3 Merge "Release 5.2.0.56Q" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:56 -08:00
CNSS_WLAN Service
92b3539c7b Merge "qcacld-3.0: Destroy pdev as part of module stop" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:54 -08:00
CNSS_WLAN Service
f9dfd24882 Merge "qcacld-3.0: Call new dispatcher enable/disable APIs" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:53 -08:00
CNSS_WLAN Service
f55dce8cb5 Merge "Release 5.2.0.56P" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:51 -08:00
CNSS_WLAN Service
6c00dc4d5c Merge "qcacld-3.0: Rename pmo_ucfg_* APIs to ucfg_pmo_* APIs" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:49 -08:00
CNSS_WLAN Service
ae0bb339b3 Merge "Release 5.2.0.56O" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:48 -08:00
CNSS_WLAN Service
aaeb285e06 Merge "qcacld-3.0: Fix clang errors in dot11f_get_packed_iersn" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:47 -08:00
CNSS_WLAN Service
4314e8735f Merge "Release 5.2.0.56N" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:45 -08:00
CNSS_WLAN Service
395c894784 Merge "qcacld-3.0: Kbuild changes to add new scan files" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:43 -08:00
CNSS_WLAN Service
48d2116dde Merge "qcacld-3.0: Detach OL TXRX vdev when WMI vdev delete fails" into wlan-cld3.driver.lnx.2.0 2017-12-09 06:53:41 -08:00
snandini
405a01afd0 Release 5.2.0.56Z
Release 5.2.0.56Z

Change-Id: I3ba9cd3d8900ffbc8e8b397af0c389d428fdc87b
CRs-Fixed: 774533
2017-12-08 18:07:03 -08:00
Yun Park
5a5efd9586 Revert "qcacld-3.0: Set PF_WAKE_UP_IDLE flag in the IPA Rx exception callback"
This reverts Change-Id: Ifd5b917c46fff39febd7e98f4761c9e80000ea35

Change-Id: Id85f7cdb75437335d1b6687af22b45bb0ce51d9f
CRs-Fixed: 2156302
2017-12-08 17:28:19 -08:00
snandini
0f0761b936 Release 5.2.0.56Y
Release 5.2.0.56Y

Change-Id: Ib2fbd82ff501b6adcc31261ea3b4b0d0e03f6f7d
CRs-Fixed: 774533
2017-12-08 13:28:28 -08:00
Naveen Rawat
9ec27ecbf2 qcacld-3.0: Check regulatory domain before assuming ETSI channels
In function add missing check for regulatory domain before assuming
channel 120-130 to be ETSI weather channel.

Change-Id: Ief9761b5ac06a511a4132f71c0a63c796741149d
CRs-Fixed: 2150264
2017-12-08 13:28:27 -08:00
snandini
1c2a0ffe47 Release 5.2.0.56X
Release 5.2.0.56X

Change-Id: I962a9fe7f96480a42954c1feb780d07244bdc7c3
CRs-Fixed: 774533
2017-12-08 06:22:23 -08:00
Zhu Jianmin
069a61d7a5 qcacld-3.0: Fix memleak in wlan_hdd_cfg80211_do_acs
__wlan_hdd_cfg80211_do_acs mallocs memory of
adapter->session.ap.sap_config.acs_cfg.ch_list
without checking and free original memory.
If hostapd is killed by -9, and interface wlan0 keep on.
wlan_hdd_cfg80211_stop_ap and wlan_hdd_undo_acs isn't called,
acs_cfg.ch_list memory isn't freed.
if hostapd is started again, __wlan_hdd_cfg80211_do_acs is called again,
malloc memory of acs_cfg.ch_list again, last malloced memory is leaked

Change-Id: Ia45615aa75841381b13a2f779cb5d355526d78a2
CRs-Fixed: 2150040
2017-12-08 06:22:23 -08:00
snandini
e5e02df5df Release 5.2.0.56W
Release 5.2.0.56W

Change-Id: Ia06cb4332df294ebf8cc3c982b1fc7d3878807bc
CRs-Fixed: 774533
2017-12-08 03:38:42 -08:00
Nachiket Kukade
e24c4925aa qcacld-3.0: Validate Country IE length before copying country code
During starting of SAP, after extracting the pointer to the country IE,
country code is copied without proper IE length validation. A smaller
than accceptible IE length can cause out of bound memory access.

Validate length with with the minimum acceptible length before copying.

Change-Id: Ie2115bdbd22badd51ea40d028331ef1a74b02281
CRs-Fixed: 2150285
2017-12-08 03:38:42 -08:00
Padma, Santhosh Kumar
510f60ceec qcacld-3.0: Fix active cmd timeout issue
qcacld-2.0 to qcacld-3.0 propagation

There can be a possible race in updation of roam substate
between csrRoamWaitForKeyTimeOutHandler and upper layer
disconnect in csrRoamIssueDeauth. Race can be as follows.

Driver roam substate is eCSR_ROAM_SUBSTATE_WAIT_FOR_KEY by
the time csrRoamWaitForKeyTimeOutHandler is invoked. This
can allow check CSR_IS_WAIT_FOR_KEY to pass. If MC thread
gets preempted and if driver processes upper layer disconnect,
then driver changes roam substate to eCSR_ROAM_SUBSTATE_DEAUTH_REQ
in csrRoamIssueDeauth. When MC thread resumes processing of
csrRoamWaitForKeyTimeOutHandler, then driver changes roam
substate to eCSR_ROAM_SUBSTATE_NONE. This can result in
unhandling of eWNI_SME_DEAUTH_RSP as roam substate is not in
eCSR_ROAM_SUBSTATE_DEAUTH_REQ and can result in active command
timeout. Hence, update roam substate atomically in same context
if CSR_IS_WAIT_FOR_KEY passes in csrRoamWaitForKeyTimeOutHandler.

Change-Id: I05cfc8de54fe4196df941c2fd48db8bedc7df779
CRs-Fixed: 2155141
2017-12-08 03:38:39 -08:00