Commit Graph

9019 Commits

Author SHA1 Message Date
bings
38b3d4f66c qcacld-3.0: Stop sap if there is no available channel
When radar is found, the current channel is put in NOL list and the state
is set as CHANNEL_STATE_DISABLE.

So change the channel state check from wlan_reg_is_dfs_ch to
wlan_reg_is_passive_or_disable_ch

Change-Id: If0595682100746cb12ddb8a1c3ca0106ccd1af21
CRs-Fixed: 2178842
2018-01-25 23:39:19 -08:00
snandini
a40580951c Release 5.2.0.63D
Release 5.2.0.63D

Change-Id: I3cf237936478eec30e94cc634f9b4df0ad405bbc
CRs-Fixed: 774533
2018-01-25 21:40:58 -08:00
Dustin Brown
11638b7c0b qcacld-3.0: Allocate and free memory for chan_info correctly
Memory for chan_info is allocated in hdd_wlan_startup() and
freed in hdd_wlan_exit(). When device boots up, memory gets
allocated for chan_info but if interface timer expires, all
the modules are closed and memory is checked for any leaks.
As memory for chan_info is freed in hdd_wlan_exit() so memory
for chan_info is still present and hence assert in
qdf_mem_check_for_leaks().

Allocate memory for chan_info in hdd_features_init() and free
it in hdd_features_deinit().

Change-Id: Ia8944da16a776d4de4fdfbb10b605ebd2b60f0b6
CRs-Fixed: 2178435
2018-01-25 21:40:58 -08:00
jiad
b17a297e40 qcacld-3.0: Fix sar_limit_event frame-larger-than build error
In wma_sar_event_handler, compiler with -Werror=frame-larger-than=
throws frame size larger than 1024 bytes build error.

Fix is to use heap memory for struct sar_limit_event.

Change-Id: Idd122b24a7e00b10404864e045eaa9df01852fd8
CRs-Fixed: 2177791
2018-01-25 21:40:55 -08:00
bings
819bdead9e qcacld-3.0: Do not switch channel in DFS testing mode
If gDisableDFSChSwitch is configured as 1, channel should not be
switched even radar is found.

Set usenol as 0 when gDisableDFSChSwitch is configured as 1.

Change-Id: I05c4afea3eb9af9c541b2324a2d50ea59c05f7d7
CRs-Fixed: 2178652
2018-01-25 21:40:52 -08:00
bings
1f55b66040 qcacld-3.0: update sap_ctx->ch_params after channel is selected
Old ch_width is set as invalid after radar detection, and can't be
used anymore. Update sap_ctx->ch_params after channel is selected.

Change-Id: I9e068785312d7072eeaeaa4b1aae4bd82d62d36f
CRs-Fixed: 2178586
2018-01-25 21:40:49 -08:00
snandini
1ffeac8b37 Release 5.2.0.63C
Release 5.2.0.63C

Change-Id: Iaa2a249716863b977bc92dde68662547c481abba
CRs-Fixed: 774533
2018-01-25 19:40:30 -08:00
Naveen Rawat
819158d0fb qcacld-3.0: Fix HE PPET parsing/packing for OTA frames
HE PPET is an optional field within HE Capability IE, however
current frame parser code was treating it as optiona IE and
inserting EID, length for it causing in-correct PPET values.
Fix frame parser code by treating PPET as just another data
field instead of IE.

Change-Id: I1903d99daf5eb00e47f42485886532551e061982
CRs-Fixed: 2172820
2018-01-25 13:54:28 -08:00
snandini
c6537acbdb Release 5.2.0.63B
Release 5.2.0.63B

Change-Id: Ia61a07eec5d10232c10f314531ceb7cdd82fd43d
CRs-Fixed: 774533
2018-01-25 11:27:34 -08:00
Min Liu
2fef579fc1 qcacld-3.0: Fix safe channel switch failure
For the AP+AP SCC LTE-Coex case, when channel avoidance event
is reported, the channel switch request for SAP will be blocked
by policy manager if the target channel is different with the
operating channel of the existing SAP due to the SCC policy.

Need to update the logic to give higher priority to the channel
avoidance request.

Another change is to move the dfs_radar_found ref counter from
hdd_ctx to hdd_adapter so that the channel switch request of
the 2nd SAP will not be blocked when the 1st one is still in
progress since it might take some time to get VDEV restart
response from FW.

Change-Id: I8594b35b70276f7ed3884697caf69a99ee91b952
CRs-Fixed: 2171958
2018-01-25 11:27:33 -08:00
snandini
6486d437a0 Release 5.2.0.63A
Release 5.2.0.63A

Change-Id: Ib6ee852bf75f3b5f70cdf286407ad09aea2c9d5e
CRs-Fixed: 774533
2018-01-25 07:41:17 -08:00
Zhang Qian
b94edcee44 qcacld-3.0: Add target interfaces for OCB component
Add target interfaces and core APIs for OCB component.

CRs-Fixed: 2177578
Change-Id: I76a1afa4d6f3876b0b5df89ffe4080af77cd13c4
2018-01-25 07:41:16 -08:00
snandini
15f4d581d1 Release 5.2.0.63
Release 5.2.0.63

Change-Id: I24ed80ebdf76ebbcb7d727c9fa650234d9311628
CRs-Fixed: 774533
2018-01-25 01:41:37 -08:00
Abhinav Kumar
5670d365dc qcacld-3.0: Fix to reduce QXDM Log Size
Currently in SAP cases, logging is huge and hence failure
logs are getting overwritten very fast within 2mins itself.
Fix it to delete the some irrelevant log prints.

Change-Id: I90a77ba9348b84eb7e5c3518391f7c98a04bb39f
CRs-Fixed: 2169101
2018-01-25 01:41:36 -08:00
snandini
11a0fb3dfd Release 5.2.0.62Z
Release 5.2.0.62Z

Change-Id: Ie4b18481b23dad0994ecc3ff0264f1e65f72773d
CRs-Fixed: 774533
2018-01-24 23:46:55 -08:00
Sourav Mohapatra
02fbc093ed qcacld-3.0: Initialize uninitialized variable staId
In function hdd_hostapd_sap_event_cb the variable staId is not
initialized and used as an index element.

Initialize the variable staId

Change-Id: Ifef98b8c8cfa2ea63c31a5fc54986a4d016ee70a
CRs-Fixed: 2162255
2018-01-24 23:46:55 -08:00
Sourav Mohapatra
ab088faa4a qcacld-3.0: Fix potential buffer overflow
In the function sap_clear_session_param, sapctx->sessionId can have
value more than max value allowed for the array
mac_ctx->sap.sapCtxList.

Add sanity check for the variable sapctx->sessionId

Change-Id: I846a8a1435de63d0a2e34f23bc407e0a8fa53eb2
CRs-Fixed: 2162255
2018-01-24 23:46:52 -08:00
Jiachao Wu
17d37b34b3 qcacld-3.0: Initialize rsn_ie before use it
Initialize rsn_ie before use it.

Change-Id: I4c4916af7a9ad4e543f51323e1424a57d83f2321
CRs-Fixed: 2177730
2018-01-24 23:46:49 -08:00
Sourav Mohapatra
5febc939e0 qcacld-3.0: Add NULL check for hdd_ctx
In function hdd_update_dp_vdev_flags, hdd_ctx is not being
validated before dereference.

Add NULL check for hdd_ctx.

Change-Id: Id907e273ec3d135c0e140d3b8b9aa6346af2d9a3
CRs-Fixed: 2162252
2018-01-24 23:46:47 -08:00
snandini
562c3118e2 Release 5.2.0.62Y
Release 5.2.0.62Y

Change-Id: Ifd32214f94e1491e7fdfebb1538aa2cf55268b44
CRs-Fixed: 774533
2018-01-24 21:43:28 -08:00
Alok Kumar
4bc43ac68a qcacld-3.0: Fix buffer overflow in htt_t2h_rx_in_order_indication_handler
Currently variable "tid" is from message, which is used directly
as array size which causes buffer over-write.

To address this issue add check for the array size.

Change-Id: I9b9d028ddb9566938f93ff8155284876c1ef9c03
CRs-Fixed: 2146949
2018-01-24 21:43:27 -08:00
Alok Kumar
88f50c14f7 qcacld-3.0: Fix buffer overflow in ol_tx_inspect_handler
Currently variable "tx_desc_id" is from message and it
is used without check.This may cause buffer over-write.

To address this issue add check for valid "tx_desc_id"

Change-Id: Ifcdbf60ce1e0f81be77308185ab51b59746c21af
CRs-Fixed: 2146878
2018-01-24 21:43:24 -08:00
Naveen Rawat
1af0939d2e qcacld-3.0: Set RTT responder role for SAP as per ini
Set RTT responder role for SAP as indicated by ini parameter

Change-Id: Ica0fcf027d8235654dda5d2e2065a90202621e6a
CRs-Fixed: 2167760
2018-01-24 21:43:21 -08:00
Alok Kumar
4278b69a04 qcacld-3.0: Fix potential buffer overflow htt_t2h_msg_handler
Currently variable "tid" is from message, which is used
directly as array size which causes buffer over-write.

To address this issue add check for the array size.

Change-Id: I9fae424d19ce5e886d385071863cbfca9633dd84
CRs-Fixed: 2148184
2018-01-24 21:43:18 -08:00
snandini
ab6612705d Release 5.2.0.62X
Release 5.2.0.62X

Change-Id: I7926bbf764261ced63a4189b956bca0a62739c18
CRs-Fixed: 774533
2018-01-24 19:44:54 -08:00
Rajeev Kumar
104660100c qcacld-3.0: Avoid panic during HDD resume failure if FW is down
During resume process FW may assert hence to avoid kernel panic
and let subsystem restart to gracefully recover the system avoid
kernel panic if FW is down during HDD resume failure.

Change-Id: I8c53b7251e35dd40b9700f15c0c4897ef80209f8
CRs-Fixed: 2178302
2018-01-24 19:44:54 -08:00
Zhang Qian
e0cb936d1f qcacld-3.0: Fix memory leak at BMI initializing
Free buffered file name when failed at BMI initializing.

CRs-Fixed: 2173026
Change-Id: I5fb1e9c76ba88711a0b0a6395a1ec7ae93ec4415
2018-01-24 19:44:52 -08:00
snandini
83c86b1b52 Release 5.2.0.62W
Release 5.2.0.62W

Change-Id: I1b99531d9ad7531712563b0b5a6538fbd16827c2
CRs-Fixed: 774533
2018-01-24 17:33:52 -08:00
Yuanyuan Liu
057fc4cf80 qcacld-3.0: Set target ready only after hif_enable
Target register is safe to access only after FW ack the wlan
enable request, which is done in hif_enable. Hence set FW ready
state after that.

Change-Id: Ieeb7dd3e1a2400c7b2568869ac27cf7f745c20d5
CRs-Fixed: 2167736
2018-01-24 17:33:51 -08:00
snandini
b4c2753270 Release 5.2.0.62V
Release 5.2.0.62V

Change-Id: I410e7325585d8bbeda3de4334f59424fa14cebd5
CRs-Fixed: 774533
2018-01-24 13:19:30 -08:00
Hanumanth Reddy Pothula
f6e3db3394 qcacld-3.0: Validate wpa ie length before extracting ie
During initializing ibss security settings there is a possibility
of integer underflow while extracting wpa ie because of ie length
check miss.

Add wpa ie length boundary check before extracting wpa ie.

Change-Id: I37d8ee5ea1e1ba12277128a1407783f5647251b6
CRs-Fixed: 2151241
2018-01-24 13:19:30 -08:00
Sourav Mohapatra
89c85d1d18 qcacld-3.0: Converge on wmi service/ext service is enable
Converge on wmi service/ext service is enable.

Change-Id: Ieed7a18f88806ed1e5b7fb012619ea67015cce2d
CRs-Fixed: 2152849
2018-01-24 13:19:26 -08:00
snandini
003c83d9ae Release 5.2.0.62U
Release 5.2.0.62U

Change-Id: I946d30e1c8eee654794d02312aa578d47828af9e
CRs-Fixed: 774533
2018-01-24 12:29:32 -08:00
Arif Hussain
91fa322580 qcacld-3.0: Fix current obss offload detection overwrite
With bitmask used currently to save current obss detections
for different mode is overwritten by next detection bitmask,
which will failed to reconfigure continue absent detection.

Fix the same by saving detection mode only for the detected
mode and keeping other detection mode unchanged.

Change-Id: Ib9e0ba809589e33b3c8abb29939aea8d8ed0de5a
CRs-Fixed: 2177414
2018-01-24 12:29:32 -08:00
Abhinav Kumar
b0f9956700 qcacld-3.0: Avoid possible buffer over-read in wma_wow_wakeup_host_event
Check for the minimum allowed data that can be written into
the buffer param_buf->num_wow_packet_buffer in the functions
wma_wake_event_packet and wma_wake_event_piggybacked.

Change-Id: I8b83bc973fd6f0d7ad9e421a387ce3f03d6b6939
CRs-Fixed: 2161027
2018-01-24 12:29:29 -08:00
snandini
80c3019520 Release 5.2.0.62T
Release 5.2.0.62T

Change-Id: Iade069e19f8c9040ec439ac5d6204160f988e1a9
CRs-Fixed: 774533
2018-01-24 08:27:18 -08:00
Jeff Johnson
4933c3a290 qcacld-3.0: Utilize wlan_is_ie_valid()
In change "qcacld-3.0: Validate Scan Default IEs" in the qcacld-3.0
project (Change-Id: Ifd8739c96a9990f01ff159eb59a7e904f7b8c592) the
utility API hdd_is_ie_valid() was introduced. One review comments was
that this should be a converged API.

Subsequently change "qcacmn: Introduce wlan_is_ie_valid()" in the
qcacmn project (Change-Id: I8d2a520ea70645ab54b450de83452c0035653485)
created the converged API wlan_is_ie_valid(), so now remove
hdd_is_ie_valid() and instead use wlan_is_ie_valid().

Change-Id: I60fcba09e9c962b7891315cea0e273db88a3d49d
CRs-Fixed: 2170493
2018-01-24 08:27:18 -08:00
Jingxiang Ge
929c793dc1 qcacld-3.0: hdd_ctx is missing in hdd_connect_result
hdd_ctx in hdd_connect_result is missed when changing
Iaa1934594d5ffcf3b90dd2ad41bba4eb62f71119.

Change-Id: Ic07976f45e5b51a998b0f4cdd99f98c92a799475
CRs-Fixed: 2177707
2018-01-24 08:27:14 -08:00
bings
19bf84d3c8 qcacld-3.0: Configure IEEE80211_CHAN_DFS for DFS channel
Configure IEEE80211_CHAN_DFS for DFS channel, otherwise channel changes
does not happen.

Change-Id: I0cfbff43d0fff79ae17f1e96b764d4c213ae2ea1
CRs-Fixed: 2155839
2018-01-24 08:27:12 -08:00
Ashish Kumar Dhanotiya
6e27060b37 qcacld-3.0: Add host support to send MAC address to Supplicant
Currently remote OUI is not getting updated when get station info
is done in STA case.

Add support to send AP MAC address to upper layer, upper layer can
use this MAC to derive OUI information of the AP.

Change-Id: I2091f47c2f0d605969c047663e266992e631484b
CRs-Fixed: 2174523
2018-01-24 08:27:09 -08:00
snandini
b21fee160f Release 5.2.0.62S
Release 5.2.0.62S

Change-Id: If5e9bd77923cfb38bb4150bdfb4b651ec1b9794f
CRs-Fixed: 774533
2018-01-24 01:43:23 -08:00
Ashish Kumar Dhanotiya
cb14b11324 qcacld-3.0: Add host support to configure GCMP
Add an ini parameter for GCMP support. Send an indication
to FW with the ini value.

Change-Id: Ib24747ddb35593373ecc83d6c7f89866571c2421
CRs-Fixed: 2175104
2018-01-24 01:43:22 -08:00
snandini
00f8753685 Release 5.2.0.62R
Release 5.2.0.62R

Change-Id: If3418f37a1facfcf1af5ff62c178e0f481c706c5
CRs-Fixed: 774533
2018-01-23 22:29:09 -08:00
Amar Singhal
410675ca8b qcacld-3.0: Add call to pdev open and close APIs
Pdev open and close APIs are needed so that reference counting
can be separated from handler for pdev create APIs. Reference
counting cannot be done in the handlers for pdev create callbacks.
Therefore add call to pdev open and close APIs.

Change-Id: I5f1ed6a470bbedaa2772d4ad95953ae3894b2c9c
CRs-Fixed: 2170257
2018-01-23 22:29:08 -08:00
snandini
1d341ead29 Release 5.2.0.62Q
Release 5.2.0.62Q

Change-Id: I8be3dbf22adf94b88750c58dce19e6e9925e5e23
CRs-Fixed: 774533
2018-01-23 13:40:07 -08:00
Naveen Rawat
de83a13cff qcacld-3.0: Release vdev reference after use
Release acquired vdev reference in functions lim_process_ndi_del_sta_rsp
and lim_send_sme_ndp_add_sta_rsp after vdev have been used.

Change-Id: Ibc5b884ca5a26095364950df47acecc0c35646a3
CRs-Fixed: 2170929
2018-01-23 13:40:07 -08:00
snandini
80d794ba65 Release 5.2.0.62P
Release 5.2.0.62P

Change-Id: Ia687c7dca3ae34a0add5779db3c5fb8f99232bef
CRs-Fixed: 774533
2018-01-23 12:30:17 -08:00
Jeff Johnson
8c83f13e45 qcacld-3.0: HDD: Add support to retrieve SAR power limits
Recently change "qcacld-3.0: Add SAR power limit configuration"
(Change-Id: I137ce9bde2fa05e363d5af17e155dc739d862c5f) added the
ability to dynamically configure Specific Absorption Rate (SAR) power
limits. Now update the HDD layer to add the ability to retrieve the
current active power limits via a cfg80211 vendor command

Change-Id: I8d48ecfc84094f8704ef048ed4d21f63dba8c1e0
CRs-Fixed: 2161449
2018-01-23 12:30:17 -08:00
Jeff Johnson
f0e54b019b qcacld-3.0: UMAC: Add support to retrieve SAR power limits
Recently change "qcacld-3.0: Add SAR power limit configuration"
(Change-Id: I137ce9bde2fa05e363d5af17e155dc739d862c5f) added the
ability to dynamically configure Specific Absorption Rate (SAR) power
limits. Now update the UMAC layer to add the ability to retrieve the
current active power limits.

Change-Id: Ifdf1d8b2e4d507348f013f1bcac1045bf13caa65
CRs-Fixed: 2161448
2018-01-23 12:30:13 -08:00
Jiachao Wu
c279f9741b qcacld-3.0: Fix a memory leak in SAP when SSR
Fix a memory leak in SAP when SSR.

Change-Id: I1ceaa9e31f64c7fe4c70eab5d0daf2fc60063ef2
CRs-Fixed: 2176124
2018-01-23 12:30:11 -08:00