Commit Graph

8932 Commits

Author SHA1 Message Date
Ashish Kumar Dhanotiya
69e72bd66a qcacld-3.0: Remove CSR dot11f IE RSN max len
Max len of CSR_DOT11F_IE_RSN is 114 which is les than the
DOT11F_IE_RSN_MAX_LEN (130) which may result in array overflow
while parsing cckm ie.

TO address this replace CSR_DOT11F_IE_RSN_MAX_LEN to with
DOT11F_IE_RSN_MAX_LEN and remove CSR_DOT11F_IE_RSN_MAX_LEN
as it is not getting used anywhere else.

Change-Id: I58f93f37bd17653db2840720ab106c01f10d535e
CRs-Fixed: 2209355
2018-04-06 14:47:05 -07:00
Kiran Kumar Lokere
0e255175b6 qcacld-3.0: Add configuration support for VHT20 MCS9
Add user configuration to enable/disable the MCS9 in VHT20
operation.

Change-Id: I1bf1156dbeb51a7850ef5a5b66295ecc0d007542
CRs-Fixed: 2217038
2018-04-06 14:47:03 -07:00
Ravi Joshi
9788fcd47d qcacld-3.0: Enhance logging levels for some SAP ACS messages
Enhance logging levels for some auto channel selection messages useful for
debugging.

CRs-Fixed: 2189466
Change-Id: I05c0f8a7c96c8e33f997b00c3d9a9d1714f283e0
2018-04-06 14:47:00 -07:00
nshrivas
685851ede2 Release 5.2.0.72Y
Release 5.2.0.72Y

Change-Id: I1c88922504cfb29786362bb89394c2777e468881
CRs-Fixed: 774533
2018-04-06 13:25:23 -07:00
jiad
bb47e130a0 qcacld-3.0: fix ipa mcc scc event notification
Issue is under AP-AP MCC config, mcc event is not sent from wlan
to IPA driver. mcc mode is decided with the help of connection
table. But for AP mode, mcc mode is checked and updated before
connection table is updated by adding the SAP vdev entry.

Fix is to make ipa mcc mode check and notification when connection
table is updated. Since block is not allowed when conn table is
updated, a new work_struct mcc_work is introduced.

Change-Id: I935222e26bb3f6b31685f52b75084b034daccad2
CRs-Fixed: 2075876
2018-04-06 13:25:23 -07:00
nshrivas
3656261689 Release 5.2.0.72X
Release 5.2.0.72X

Change-Id: I5fe0a5603893d39b734e8edb0c881bbb8027e188
CRs-Fixed: 774533
2018-04-06 01:59:02 -07:00
Srinivas Girigowda
49b48b2eae qcacld-3.0: Fix function return type for ndo_start_xmit
Fix function return type for ndo_start_xmit.
Currently .ndo_start_xmit callback functions returns int, but
the correct return type should be netdev_tx_t.

Change-Id: I36d3cc886bfa0fd74a264f2791f09a251baab2ef
CRs-Fixed: 2202134
2018-04-06 01:59:01 -07:00
jitiphil
5fdc34704f qcacld-3.0: Prevent access to rx thread after thread shutdown
During unload/SSR, the ol_rx_thread is shutdown and then the
cpu hotplug notifier is unregistered. In other context
cpu hotplug notifier could be accessing the freed contents
of rxthread resulting in use after free.

To avoid this race condition, reject the cpu hot plug
notificaiton in case of a driver SSR in addition to
load/unload.

Change-Id: Iafadff92d5660b979c6cf20a70eef42d22a9e51a
CRs-Fixed: 2219011
2018-04-06 01:58:53 -07:00
Jeff Johnson
abcce17d32 qcacld-3.0: Relocate hdd_set_peer_rate()
Currently hdd_set_peer_rate() is implemented in wlan_hdd_wext.c with a
prototype defined in wlan_hdd_wext.h. But the only client is located
in wlan_hdd_hostapd.c, and since that is where the "master mode"
ioctls are handled, relocate hdd_set_peer_rate() to wlan_hdd_hostapd.c
and make it static.

Change-Id: I5ec9c43b29fafc75cb35f1ee465c86acbc6b3b2c
CRs-Fixed: 2219456
2018-04-06 01:58:50 -07:00
Sourav Mohapatra
21b3c988b4 qcacld-3.0: Return -EGAIAN and not -ENODEV if FW is down
When wlan_hdd_validate_context returns ENODEV in the case
of FW down or when driver is in bad state, wificond will
reset and try to unload the driver while SSR/PDR may be
in progress.

Return -EGAIAN and not -ENODEV in the above case.

Change-Id: I9b2314c2d4367b5373d1202b682d2c629a5a3e9f
CRs-Fixed: 2217006
2018-04-06 01:58:47 -07:00
nshrivas
a4f4f9f766 Release 5.2.0.72W
Release 5.2.0.72W

Change-Id: Ia1b0fc473af2b1c5373d96d816bddeb5f989c215
CRs-Fixed: 774533
2018-04-05 01:29:51 -07:00
Pragaspathi Thilagaraj
0008879d13 qcacld-3.0: Fix OOB write in wma_unified_debug_print_event_handler
The routine wma_unified_debug_print_event_handler logs the data from debug
print event handler. The param event data from firmware is copied to a
destination buffer .If the maximum size of the data exceeds or equals
BIG_ENDIAN_MAX_DEBUG_BUF for big endian hosts then possible OOB write will
occur in wma_unified_debug_print_event_handler. For other hosts, OOB read
could occur if datalen exceeds maximum firmware message size
WMI_SVC_MAX_SIZE.

Add check to validate datalen doesnot exceed the maximum firmware msg size
WMI_SVC_MAX_SIZE. Return failure if it exceeds.
Add check to ensure datalen doesnot exceed or equal the maximum buffer
length value for big endian hosts BIG_ENDIAN_MAX_DEBUG_BUF.
Invoke strlcpy instead of memcpy to ensure the string is null terminated
before printed.

Change-Id: I45943ae76d8fcf7b53e1f064c462d01cd6d00dcf
CRs-Fixed: 2211133
2018-04-05 01:29:46 -07:00
Jeff Johnson
c57c13aec7 qcacld-3.0: Refactor the Green AP configuration
Refactor the Green AP configuration so that it can be easily excluded
when the feature is not enabled, and to support transition to the
converged configuration model that is under development.

Change-Id: I275833f4c60c315937a6fba3f403eb54925e151c
CRs-Fixed: 2218656
2018-04-05 01:29:43 -07:00
nshrivas
9227b6c935 Release 5.2.0.72V
Release 5.2.0.72V

Change-Id: I5513c933478f79d866cdba54a1071842d2ea473a
CRs-Fixed: 774533
2018-04-04 19:43:31 -07:00
Jeff Johnson
53fe40a9bf qcacld-3.0: Rename field enableGreenAP in struct hdd_config
Since camelCase is frowned upon in the Linux coding style, rename
field enableGreenAP in struct hdd_config.

Change-Id: Ie541289f79b2bfe9f2bf490bbcde7e0649e0395d
CRs-Fixed: 2218692
2018-04-04 19:43:31 -07:00
nshrivas
bd769ad27a Release 5.2.0.72U
Release 5.2.0.72U

Change-Id: I69017b8dfcb4805f4b0ac54886f6172ef9b4b320
CRs-Fixed: 774533
2018-04-04 17:47:16 -07:00
Manjunathappa Prakash
7a4ecb2281 qcacld-3.0: Fix argument type for ol_txrx_stats_callback
ol_txrx_stats_callback is not implemented as it is not required, fix
the calling function argument type to match the prototype.

Change-Id: I8a976737af8f226a1774950170f445c93ebf683b
CRs-Fixed: 2216859
2018-04-04 17:47:15 -07:00
nshrivas
4a7bcc1020 Release 5.2.0.72T
Release 5.2.0.72T

Change-Id: I15f71af9243607ba13007e0f160aa934b9c87174
CRs-Fixed: 774533
2018-04-04 16:39:58 -07:00
Sandeep Puligilla
db6de35f36 qcacld-3.0: PDR recovery is taking longer time
PDR recovery is taking longer time because vdev
delete is waiting for peer delete completion.

Modified vdev delete handler to get the status
of firmware. If firmware state is detected as down
then vdev delete handler will not wait for peer delete
completion.

Change-Id: I1014df239a1abecaccbe5097769a10c625597e12
CRs-Fixed: 2207795
2018-04-04 16:39:58 -07:00
Srinivas Girigowda
1e0456c9aa qcacld-3.0: Fix function types passed to qdf_trace_register
Fix function types passed to qdf_trace_register.

Change-Id: I6d22c05a866f78113c95bd21c83bb0a28a630385
CRs-Fixed: 2208843
2018-04-04 16:39:55 -07:00
Srinivas Girigowda
de28a9df54 qcacld-3.0: Fix return type mismatch in start_xmit functions
Function declaration and definition has return type mismatch.
Hence fix this.

Change-Id: Icf5f6c435811b7d0801da10bb6f1dfb322cc8dc8
CRs-Fixed: 2208843
2018-04-04 16:39:53 -07:00
nshrivas
229b5fb8a9 Release 5.2.0.72S
Release 5.2.0.72S

Change-Id: Ieefcb633d9606b0ba2047990bfc33cc4aa39c6b2
CRs-Fixed: 774533
2018-04-04 14:12:31 -07:00
Amar Singhal
5f78313578 qcacld-3.0: Reset is_acs_allowed variable when chan count is 0
When world mode is set (ACS chan list is empty) and ACS request comes to
driver, is_acs_allowed variable is not reset. Due to this, in subsequent
ACS requests, is_acs_allowed variable would become 1, leading to ACS
failure in a loop. Fix that.

Change-Id: I97689571e147505ea2c21f271c103e3c8cc74b80
CRs-Fixed: 2215385
2018-04-04 14:12:31 -07:00
nshrivas
6e5c40a16e Release 5.2.0.72R
Release 5.2.0.72R

Change-Id: I2e536044a6f1eda8ec60de44e299950579b138cd
CRs-Fixed: 774533
2018-04-04 11:07:22 -07:00
Jeff Johnson
8bb6111e1f qcacld-3.0: hdd: Refactor the Green AP feature
Refactor the hdd portion of the Green AP feature so that it can be
easily excluded when the feature is not enabled.

Change-Id: I986c5ab7640b3182a12bef93748affefba067251
CRs-Fixed: 2216247
2018-04-04 11:07:19 -07:00
nshrivas
419347a4ac Release 5.2.0.72Q
Release 5.2.0.72Q

Change-Id: I9a404987d8803e0bb982efb445c0fc12f626c8f7
CRs-Fixed: 774533
2018-04-04 04:01:57 -07:00
Jinwei Chen
19846e5a61 qcacld-3.0: Fix issue in connection to WAPI AP
Recent change in hdd_is_tx_allowed function causes failure in Tx of WAPI
Auth frames. Add check in this function to allow Tx of WAPI auth frames
so that device can connect to a WAPI AP.

Change-Id: Id5d4d31385309381383dec432698a8ac625845ad
CRs-Fixed: 2217090
2018-04-04 04:01:57 -07:00
Manjunathappa Prakash
5e12b8c46e qcacld-3.0: Remove redefinition of wmi_unified_t
typedef wmi_unified_t is redefined in
qcacld-3.0/core/dp/ol/inc/ol_defines.h previous definition is here
qca-wifi-host-cmn/wmi/inc/wmi_unified_param.h, remove redefinition.

Change-Id: I2c2af59d8b24360cd09efeb12ea19c0340771bb8
CRs-Fixed: 2216859
2018-04-04 04:01:54 -07:00
Manjunathappa Prakash
92a860057d qcacld-3.0: Use dma_sync_single_for_cpu instead of dmac_inv_range
dmac_inv_range() is obsolete, use dma_sync_single_for_cpu instead.
https://www.kernel.org/doc/Documentation/DMA-API-HOWTO.txt.

Change-Id: I8add3c905d3cf190ef91ec023c88a7a645ae92e6
CRs-Fixed: 2216859
2018-04-04 04:01:50 -07:00
nshrivas
380c42b4db Release 5.2.0.72P
Release 5.2.0.72P

Change-Id: I7e86054006dffadf9e510bed796966a5f3ee293e
CRs-Fixed: 774533
2018-04-03 23:46:26 -07:00
Min Liu
5359ab1240 qcacld-3.0: Add string length validation
qcacld-2.0 to qcacld-3.0 propagation

In hdd_parse_get_ibss_peer_info(), issue is reported by external
researcher that lack of string length validation might lead to
out-of-bounds read.
Related string length validation is added accordingly.

Change-Id: I32304404b2bab9011fa67316b77f6d37bb39df2d
CRs-Fixed: 2214899
2018-04-03 23:46:26 -07:00
nshrivas
008c90eb8e Release 5.2.0.72O
Release 5.2.0.72O

Change-Id: Ide08109ca38c1d8fc3b79c18bd0cfcd479cd48d1
CRs-Fixed: 774533
2018-04-03 19:45:57 -07:00
Yun Park
0ac1282747 qcacld-3.0: Remove extraneous parentheses around the comparison
Fix LLVM compilation error caused by equality comparison with
extraneous parentheses.

Change-Id: Ia2b7dea8751a8016524459d55c41894fb552f273
CRs-Fixed: 2216820
2018-04-03 19:45:56 -07:00
psimha
1dc65bdf61 qcacld-3.0: Change security type data structure in API call
Change htt_sec_type to cdp_sec_type since the CDP API expects a
cdp_sec_type as it's argument. Required for compilation using LLVM.

Change-Id: I8dbf59dd80bd0fce221a23544c69764508377ae0
CRs-Fixed: 2216859
2018-04-03 19:45:53 -07:00
Ashish Kumar Dhanotiya
04f09dd8d3 qcacld-3.0: Change the default value of CFG_TX_SCH_DELAY_MIN
Change the MIN, MAX and Default values of the ini
CFG_TX_SCH_DELAY_MIN to 0, 5 and 2 respectively.

Change-Id: I27d6110d69ba885535933e31dcca4e08865a7dc8
CRs-Fixed: 2216634
2018-04-03 19:45:51 -07:00
Ashish Kumar Dhanotiya
48dac7d63b qcacld-3.0: Add host support to configure TX delay
There is 1ms TX delay enabled in TX sch module if
frames queued in FW SW queue are less than 32.
This results in Tx delay in FW, and causes response time higher.

Add ini configuration to enable/disable Tx delay.

Change-Id: Ic180431ed2d0848df3dbb144f6b2bd70db61e5f4
CRs-Fixed: 2214307
2018-04-03 19:45:48 -07:00
nshrivas
f78cbb57a9 Release 5.2.0.72N
Release 5.2.0.72N

Change-Id: I95b646d9be2dbad1bbf7866e208cc1624d588f38
CRs-Fixed: 774533
2018-04-03 16:50:10 -07:00
nshrivas
7f5bdedd7b Release 5.2.0.72M
Release 5.2.0.72M

Change-Id: I4c524d47715a27a4cac173caa33a15fb15237672
CRs-Fixed: 774533
2018-04-03 11:11:22 -07:00
nshrivas
feefccba40 Release 5.2.0.72L
Release 5.2.0.72L

Change-Id: Id510c55acd50ddf154928dda74e92a782da038df
CRs-Fixed: 774533
2018-04-03 01:42:51 -07:00
jitiphil
8ad8a6f9b2 qcacld-3.0: Fix invalid use of %p in ol_txrx_peer_release_ref
Currently %p is used in ol_txrx_peer_release_ref function in
ol_txrx.c which violates security guidelines

To address this issue change %p to %pK.

Change-Id: I06fd9eb260d1c53e4de235b710cd0ea05125b976
CRs-Fixed: 2170905
2018-04-03 01:42:50 -07:00
nshrivas
28c982a64f Release 5.2.0.72K
Release 5.2.0.72K

Change-Id: Ia6234fc833b1c08cf98f56fe1360762a9c2e2ee5
CRs-Fixed: 774533
2018-04-02 20:41:43 -07:00
chenguo
861751bafa qcacld-3.0: Add target credit info in TX_QUEUE_STATS
When debug traffic stall issues, target credit number is also one
key point to trace beside status of TX queues. So add such info
in TX_QUEUE_STATS.

Change-Id: I2615545c1e041af920a4d0d6d0a8e3990768b762
CRs-Fixed: 2060945
2018-04-02 20:41:43 -07:00
nshrivas
c9a644db05 Release 5.2.0.72J
Release 5.2.0.72J

Change-Id: I11f6015cefab02cd34d1c489d7e1e4621e08d0f7
CRs-Fixed: 774533
2018-04-02 19:39:34 -07:00
Naveen Rawat
b4ea70f96e qcacld-3.0: Fail channel sap channel change request for channel 0
In function wlansap_channel_change_request validate channel requested
before processing the request.

Change-Id: I1cc8c978b15fe6ee043ce6bf712a109994dce50b
CRs-Fixed: 2212078
2018-04-02 19:39:34 -07:00
Yun Park
302bdcce10 qcacld-3.0: Remove redundant typedef 'ipa_uc_op_cb_type'
Remove a redundant typedef 'ipa_uc_op_cb_type' from ol_txrx_type.h.

Change-Id: Id3cd82b846e85a0aed39a530c0510faa5572ca61
CRs-Fixed: 2213103
2018-04-02 19:39:31 -07:00
Abhishek Singh
388d090180 qcacld-3.0: Change OCE WAN score ini for roaming and initial connection
Change the OCE WAN weightage to 2% of the scoring weightage and change
the slot size to 15 and fill the values for each slot in INI.

Change-Id: Ic67cde29a9dfdfaf6022bab106432ef2950e2340
CRs-Fixed: 2208283
2018-04-02 19:39:28 -07:00
Srinivas Girigowda
e1282d4fbf qcacld-3.0: Fix clang compilation warnings
Fix clang compilation warnings.

Change-Id: I8c766c9062672608db60c583a46af2bc86bbba8c
CRs-Fixed: 2055487
2018-04-02 19:39:26 -07:00
nshrivas
5cd9be3a5c Release 5.2.0.72I
Release 5.2.0.72I

Change-Id: I2c6c8473675a1b29253a96e16b61fe26757f91c4
CRs-Fixed: 774533
2018-04-02 16:41:39 -07:00
Jeff Johnson
e8846abed9 qcacld-3.0: Rename HDD Green AP APIs
Currently the HDD Green APIs do not have a consistent prefix. In
preparation for refactoring this feature, rename the HDD Green AP APIs
to have a consistent prefix.

Change-Id: Ib4d9a6db6ffacd9e19277d95f4976805d0bb6fa3
CRs-Fixed: 2216246
2018-04-02 16:41:38 -07:00
Jeff Johnson
6ec742cbed qcacld-3.0: wma: Featurize Green AP service event handling
Currently wma_update_hdd_cfg() has unconditional code to check for
firmware support of the WMI_SERVICE_EGAP service and to register an
event handler when it is present. However this code doesn't build
correctly when the Green AP feature is disabled in the build.
Therefore featurize the Green AP service event handling.

Change-Id: Ic5f8fcc960c4b1b6ebc3b9b78acd84f583c24b9f
CRs-Fixed: 2216245
2018-04-02 16:41:35 -07:00