Commit Graph

10532 Commits

Author SHA1 Message Date
nshrivas
fee4f18e6f Release 5.2.0.92R
Release 5.2.0.92R

Change-Id: Ib0540d396eca2b7c2e71b94c356875a524c4a509
CRs-Fixed: 774533
2018-08-16 19:39:43 -07:00
Jeff Johnson
549bcc7b34 qcacld-3.0: Remove struct ani_scan_req
struct ani_scan_req is obsolete and no longer used, so remove it.

Change-Id: Ia21ddef67412d86295ab76deb2ed02a91d2c917f
CRs-Fixed: 2296765
2018-08-16 19:39:43 -07:00
nshrivas
c82e6177af Release 5.2.0.92Q
Release 5.2.0.92Q

Change-Id: I12aff955d2778ec3be261280743c54d1d7341ae4
CRs-Fixed: 774533
2018-08-16 00:47:53 -07:00
Qiwei Cai
16b98589f9 qcacld-3.0: Allocate csr_roam_roam_session dynamically
Allocate csr_roam_roam_session dynamically to reduce build size.

Change-Id: Ic11cc40ca47077ac18f944bd0e62b40e520b9b74
CRs-Fixed: 2290519
2018-08-16 00:47:53 -07:00
nshrivas
7b89326509 Release 5.2.0.92P
Release 5.2.0.92P

Change-Id: I22857ce828ad2a84896399055e9184a947d76747
CRs-Fixed: 774533
2018-08-15 19:40:50 -07:00
Liangwei Dong
98e8cf68ed qcacld-3.0: Ignore Radar event for non-dfs SAP
For SAP (2.4G) + SAP (5g dfs chan), the radar event
will be posted to all vdevs. 2.4 SAP will run into
failure in random chan selection.
Fix by ignoring radar event for Non dfs channel SAP.

Change-Id: I739f2a84f17941e501dfe52c9cd12afc6a42425f
CRs-Fixed: 2294077
2018-08-15 19:40:49 -07:00
nshrivas
871c6abaa4 Release 5.2.0.92O
Release 5.2.0.92O

Change-Id: I13bc22d25e6e3245df5b3b7daa8e124e345bc398
CRs-Fixed: 774533
2018-08-15 12:37:51 -07:00
Pragaspathi Thilagaraj
934275cc0a qcacld-3.0: Enhance SAP beacon template updation during DFS CSA
The hosts sends the beacon template to firmware through the
command WMI_BCN_TMPL_CMDID. The firmware sends a TX complete
indication via the WMI_OFFLOAD_BCN_TX_STATUS_EVENT and upon
receiving this host decrements the CSA count.
The hosts waits until the csa count becomes zero and then sends
vdev restart to firmware. There are some issues with this
implementation when 10 beacons with CSA are taking more time
than 1 sec. This is because in STA+SAP case sometime the
WMI_OFFLOAD_BCN_TX_STATUS_EVENT is received after in 200-300ms.
If the host doesn't receive the channel change event, it gets
struck in the channel change.

To avoid this scenario, send the beacon template to the firmware
for every beacon interval without waiting for the beacon TX
complete indication from FW except for the first beacon template
updation. Introduced a new timer (ap_ecsa_timer) to update the
firmware with the beacon template.

Change-Id: I377768b87c96fd5064aa04d1ed5434a475e656ef
CRs-Fixed: 2294661
2018-08-15 07:44:41 -07:00
nshrivas
6cc2224d2e Release 5.2.0.92N
Release 5.2.0.92N

Change-Id: I71aa432883c4858e030a2977b7f346c0788ccbc7
CRs-Fixed: 774533
2018-08-15 01:17:48 -07:00
Dustin Brown
e5fa197b07 Revert "qcacld-3.0: Collect F/W dump when host F/W out of sync"
Revert I457c20f6ba908cac32cfc9b27fbaf980f1ec174d, which removes the
check to ensure recovery has been enabled via configuration before
starting the recovery process. This is a critical feature for internal
debugging. The check was moved into cds_trigger_recovery() to prevent
callers from bypassing this configuration and unconditionally asserting
the target firmware. Restore that check now.

Change-Id: Ieb347cfcd0eecd24f005d374c0fead07c34f3705
CRs-Fixed: 2296038
2018-08-15 01:17:47 -07:00
Dustin Brown
83044c26d3 qcacld-3.0: Remove redundant recovery-enabled checks
cds_trigger_recovery() already checks for various conditions before
actually triggering recovery. One of these checks ensures that recovery
is enabled, but some callers are checking to see if recovery is enabled
before calling cds_trigger_recovery() as well. Because of this, some
important checks are skipped, and crashes can occur when they should
not. Remove the redundant checks at the call sites for
cds_trigger_recovery() so that all of the recovery conditions are
properly handled, and the wlan driver avoids crashing when it should
not.

Change-Id: I8c26a002b66496a1eb06263f3f8b91ead739e3ac
CRs-Fixed: 2296008
2018-08-15 01:17:42 -07:00
Qiwei Cai
50a2108ab3 qcacld-3.0: Allocate g_dph_node_array dynamically
Allocate g_dph_node_array dynamically to reduce build size.

Change-Id: Iffd9c2e205f9ee6b5365ab2e326198677fa57de2
CRs-Fixed: 2290501
2018-08-15 01:17:38 -07:00
nshrivas
0b7542a2b7 Release 5.2.0.92M
Release 5.2.0.92M

Change-Id: Ia126fd98ff4a073777e7a9666276dc8d592cc98f
CRs-Fixed: 774533
2018-08-14 23:32:53 -07:00
Qiwei Cai
7b9f9e5fe2 qcacld-3.0: Allocate sme_qos_cb dynamically
Allocate sme_qos_cb dynamically to reduce build size.

Change-Id: Ia51b9b6b96fb239198fcab256b955cd4a4b4da5f
CRs-Fixed: 2290541
2018-08-14 23:32:52 -07:00
Dustin Brown
6a8d39b6ed qcacld-3.0: Reduce excessive logging
Reduce or removed several excessive log in order to avoid spamming
dmesg.

Change-Id: I818c8f88f66ad11a3c3bc5d5a12799e83c02e5ff
CRs-Fixed: 2296680
2018-08-14 23:32:49 -07:00
Qiwei Cai
880fd27972 qcacld-3.0: Allocate cfgIniTable dynamically
Allocate cfgIniTable dynamically to reduce build size.

Change-Id: I6cc3ea8c20978abfd89829279ed3694301aeed56
CRs-Fixed: 2292494
2018-08-14 23:32:45 -07:00
nshrivas
c094ad02ac Release 5.2.0.92L
Release 5.2.0.92L

Change-Id: I603f4f067de0d36fddbd9470fbc84b3dbbb675a3
CRs-Fixed: 774533
2018-08-14 21:44:10 -07:00
hqu
b6441f2c72 qcacld-3.0: Initialize weight_copy when weight is SAP_ACS_WEIGHT_MAX
When channel 4 is unsafe channel in 2.4g LTE coex ACS case,
the weight for channel 4 will be calculated as 0 by function
sap_sort_chl_weight_ht40_24_g, it's wrong because weight_copy
doesn't be initialized in this case, so acs channel select
may choose wrong channel to start sap.

Fix is to add initialization for weight_copy when weight is
SAP_ACS_WEIGHT_MAX.

Change-Id: I4aa0fb133774d9980146a9ceae9b91154bd15bbc
CRs-Fixed: 2282371
2018-08-14 21:44:07 -07:00
nshrivas
bcc8b3abe3 Release 5.2.0.92K
Release 5.2.0.92K

Change-Id: Ib8cb15602da48b3659eef9c219bf5a8d3c09e480
CRs-Fixed: 774533
2018-08-14 20:02:23 -07:00
Dustin Brown
380cb4592f qcacld-3.0: Reject sched scan requests on non-STA ifaces
Scheduled scan (a.k.a Preferred Network Offload, PNO) is intended to be
used only for station interfaces. However, it has been observed that
userspace will send scheduled scan requests for non-station interfaces.
Reject requests to start or stop a scheduled scan on non-station
interfaces.

Change-Id: If5abd242f134518ac4e3d942c1513c66b5c50ff3
CRs-Fixed: 2295101
2018-08-14 20:02:22 -07:00
Tushnim Bhattacharyya
332b74c364 qcacld-3.0: Change the level of info level logs in PE
Change the level of info level logs in PE to avoid clutter on console log.

Change-Id: I185cc52f3deffe7cb7826d6d8375899a35ce459b
CRs-Fixed: 2294985
2018-08-14 20:02:18 -07:00
Abhinav Kumar
0a8461343d qcacld-3.0: Possible mem leak while handling WMA_DEL_STA_SELF_REQ
In wma_vdev_resp_timer(), while handling WMA_DEL_STA_SELF_REQ if
wma_crash_on_fw_timeout() is true, then wma_vdev_resp_timer initiate
SSR and memset iface structure without freeing iface->del_staself_req.
This results mem leak in wma_vdev_resp_timer().

Free all the dynamic memory from iface structure in wma_vdev_deinit()
instead of handling them separately.

Change-Id: I7b16ddc9dfb70638c6f895bd97cd9c106bfad595
CRs-Fixed: 2293099
2018-08-14 20:02:15 -07:00
nshrivas
70ef8f4a4d Release 5.2.0.92J
Release 5.2.0.92J

Change-Id: Ib082c46cc17ef755e28783743c03e404035255fe
CRs-Fixed: 774533
2018-08-14 16:50:05 -07:00
Qiwei Cai
c778c0853c qcacld-3.0: Allocate global_mac_context dynamically
Allocate global_mac_context dynamically to reduce build size.

Change-Id: I67e9f20f55d2289d9b97756adaea0666f64d6afc
CRs-Fixed: 2290537
2018-08-14 13:22:20 -07:00
Jeff Johnson
0c7b09020b qcacld-3.0: Clean up the WMA Context
Clean up the WMA context structure which currently has the following
issues:
1) Fields are defined that are unused
2) Fields are defined that are missing documentation
3) Fields are defined with documentation inline rather than in the
   documentation block
4) Documentation exists for fields that are no longer present

Change-Id: Ia9fb52c3967818c0a12ade7a15f0c353494f56de
CRs-Fixed: 2296105
2018-08-14 13:22:17 -07:00
nshrivas
a159c99595 Release 5.2.0.92I
Release 5.2.0.92I

Change-Id: I99485147d931557ffb779822a63fba3e9e6af3fb
CRs-Fixed: 774533
2018-08-14 02:15:43 -07:00
Rajasekaran Kalidoss
ef058525b9 qcacld-3.0: Add vdevId in tAggrAddTsParams
pe session_id should not be used as vdev_id.
Add a vdevId field to tAggrAddTsParams struct
and fill smeSessionId as vdevId and pass this
down.

Change-Id: Id021dda35a32f7870277d405c85a0878d7baa3f3
CRs-fixed: 2272126
2018-08-14 02:15:43 -07:00
Nirav Shah
e6194ac8ad qcacld-3.0: Update data path statistics log level
Do not required to print function and line number
for data path statistics function which is invoked
by ioctl.
Change data path statistics to info print so
that it can be printed in dmesg as well.

Change-Id: I4b5ea4202255ace71dbb6f9a4bbff6f93e496425
CRs-Fixed: 2278885
2018-08-14 02:15:39 -07:00
nshrivas
6482d612f6 Release 5.2.0.92H
Release 5.2.0.92H

Change-Id: Ib7e748ef77921e864c83a0013da33b72d9f109de
CRs-Fixed: 774533
2018-08-13 23:15:18 -07:00
Qiwei Cai
e689a26cd8 qcacld-3.0: Featurize some vendor commands
Featurize some vendor commands to compile out when not needed.

Change-Id: I6757b5764930efbd9cd1c7ab74e5990e96267421
CRs-Fixed: 2270461
2018-08-13 23:15:17 -07:00
nshrivas
2bc86209b8 Release 5.2.0.92G
Release 5.2.0.92G

Change-Id: I01ec99530f89863b24097f6a979a0d0a7662f1b0
CRs-Fixed: 774533
2018-08-13 21:37:32 -07:00
Pragaspathi Thilagaraj
210362a1c2 qcacld-3.0: Fix memory corruption in pe_free_nested_messages
When peer creation fails in wma_set_link_state, wma sends the
WMA_SET_LINK_STATE_RSP msg to LIM and Lim frees the msg->bodyptr
But there is a situation occurs where after this wma_peer_create
fails, mc thread stop sys event also occurs where the mac_stop
is invoked which calls the pe_free_msg -> pe_free_nested_messages
In pe_free_nested_messages, if the msg type is
WMA_SET_LINK_STATE_RSP, we free the msg->bodyptr->callbackArg.
This callbackArg points to the PE session. Trying to free the
PE session results in memory corruption.

Just pass the session id as callback argument when the callback
is lim_post_join_set_link_state_callback.

Change-Id: I27f9127685ac7ef8d215b135f1625e8e2f225fc0
CRs-Fixed: 2287827
2018-08-13 21:37:31 -07:00
nshrivas
534cd0868d Release 5.2.0.92F
Release 5.2.0.92F

Change-Id: I6954f59554d9e87d9e63b159910f02960fed6eb2
CRs-Fixed: 774533
2018-08-13 18:12:40 -07:00
Sandeep Puligilla
c3588e5f57 qcacld-3.0: Handle peer assoc failure
Peer assoc command expects a response from firmware so peer
assoc timer is started at wma once command sent to firmware.
In the failure scenario peer assoc command is dropped at wma due to
unavilable 11b rates but timer was not stopped. So at later point of
time timer got expired and it triggered timeout error handling.

Dont start the timer in failure scenario and send failure response to LIM
if the peer assoc command failed to send command to firmware.

Change-Id: Iaa644fbe7940502fc07b5110787c2dc5b58f4612
CRs-Fixed: 2292610
2018-08-13 18:12:40 -07:00
Jianmin Zhu
54cfab35b7 qcacld-3.0: Do concurrency check when change SAP channel by iwprv
After bring up SAP(2G)+SAP(5G) DBS mode, initiate CSA on SAP2
from 5G to 2G (DBS mode to SCC mode) with cmd:
	iwpriv wlan1 setChanChange X
assert will happen.

Fix: SAP+SAP on same band on Helium is not PORed case yet,
Do concurrency check for path: iwpriv wlan0 setChanChange X.

Change-Id: Iacd6f2b4c49f4bb52739f602e7ba1e8cd9be04bc
CRs-Fixed: 2289366
2018-08-13 18:12:36 -07:00
nshrivas
47c66ef668 Release 5.2.0.92E
Release 5.2.0.92E

Change-Id: I28e78c61f560989d736a71a4e47f38e61169e094
CRs-Fixed: 774533
2018-08-13 16:28:44 -07:00
Rajeev Kumar Sirasanagandla
301aacb4e3 qcacld-3.0: Avoid camel case notation for SAP FSM states
Kernel checkpatch is throwing style issues due to use of camel case
notation for SAP FSM states.

To fix this, rename states according to kernel coding guidelines.

Change-Id: Ia09cccb7c51a61436d067710a763bed7f2437820
CRs-Fixed: 2295580
2018-08-13 16:28:43 -07:00
nshrivas
49e73071b2 Release 5.2.0.92D
Release 5.2.0.92D

Change-Id: I5e020caf884baebecf830dfa6952535574c2d17b
CRs-Fixed: 774533
2018-08-13 14:41:55 -07:00
Varun Reddy Yeturu
a47f08f3dc qcacld-3.0: Do not attempt to delete peer when it is not created
In preassoc state, if the set link state has failed to create the
peer, then send back a failure status to the upper layers and
ensure that the set link state for failure is not called again
because this will eventually call vdev stop and lead to a vdev
stop response and then lead to a peer delete attempt which is
really not needed since the peer has not been created at all.

Change-Id: I265726000204bab51c429a2d00cdd599d8064170
CRs-Fixed: 2286684
2018-08-13 14:41:54 -07:00
Pragaspathi Thilagaraj
766c76f8db qcacld-3.0: Send DISCONNECT_DONE_IND from lim_send_sme_disassoc_ntf
When a station connected to one of the sap interface reassociates
to the other sap interface, the driver triggers internal
disconnect for that station with disassocTrigger =
eLIM_DUPLICATE_ENTRY. Once this station is deleted from firmware
we send add sta for the station lim_send_sme_disassoc_ntf on the
sap interface to which the station is to be connected. But the
first SAP interface doesn't send eWNI_SME_DISCONNECT_DONE_IND to
remove eSmeCommandWmStatusChange.

send eWNI_SME_DISCONNECT_DONE_IND from lim_send_sme_disassoc_ntf
in case eLIM_DUPLICATE_ENTRY.

Change-Id: Ibc3cc8121928fe83cc1d8cf3e98419bf5f7f7d1c
CRs-Fixed: 2286783
2018-08-13 14:41:50 -07:00
nshrivas
fba9ff69ed Release 5.2.0.92C
Release 5.2.0.92C

Change-Id: Ife5742efe7c1b90706514d706c56e5cd00382118
CRs-Fixed: 774533
2018-08-13 12:57:50 -07:00
Dustin Brown
3f0d7103fb qcacld-3.0: Fix misleading indent
hdd_parse_disable_chan_cmd() misleadingly indents code after a for loop
without brackets in such a way that it is easy to assume the code is
inside the for loop, but it is not. Not only does this cause build
failure for some configurations, but is dangerously confusing for future
readers. Remove the misleading indentation in
hdd_parse_disable_chan_cmd().

Change-Id: I4af2bd4b05719354db730ef39a3b6ec18d6f842b
CRs-Fixed: 2290196
2018-08-13 12:57:49 -07:00
Jeff Johnson
89cd1ff6aa qcacld-3.0: Remove scan_id_counter from WMA context
The scan_id_counter in the WMA context is initialized but never
incremented or read. Since it is not actually used, remove it.

Change-Id: Id159ba6ff36ae2a3977978f8799cf16aeee5300d
CRs-Fixed: 2294150
2018-08-13 12:57:46 -07:00
Jeff Johnson
b1a6806814 qcacld-3.0: Remove driver_type from WMA context
The driver_type field in the WMA context is written but never
read. Since it is not actually used, remove it.

Change-Id: I646fea6fc5f08bf090980de755055b58f6fec0cd
CRs-Fixed: 2294149
2018-08-13 12:57:42 -07:00
Jeff Johnson
0cbd0a7fd8 qcacld-3.0: Remove struct hw_mode_idx_to_mac_cap_idx
Change "qcacmn: Remove struct extended_caps" (Change-Id
I96fd072b7d6b58a9c237165fcba7ed8c8da0eae3) in the
qca-wifi-host-cmn project removed the only reference to
struct hw_mode_idx_to_mac_cap_idx. Since this struct is
now obsolete, remove it.

Change-Id: I1b57c09d18ec52574e34487122fe526b10b9f51f
CRs-Fixed: 2294148
2018-08-13 12:57:38 -07:00
nshrivas
5c6e604e10 Release 5.2.0.92B
Release 5.2.0.92B

Change-Id: I87a7e295490f8ec20c2c4fafde9ff8984a729034
CRs-Fixed: 774533
2018-08-11 06:18:08 -07:00
Abhishek Singh
809c41a5f6 qcacld-3.0: Reset wait for key before sending close session
If wait for key is set during close session, the request is dropped
in CSR and thus during SSR the BSS peer and SELF peer are not
deleted resulting in peer leakage.

Fix this by resetting wait for key before sending close session.

Change-Id: I139640ad5ad473372bce24413f7ace1cef32fbc3
CRs-Fixed: 2294417
2018-08-11 06:18:07 -07:00
nshrivas
d89e09f4e4 Release 5.2.0.92A
Release 5.2.0.92A

Change-Id: Ib546082cb1adbd7dd499cfd268ec9ac8811c2566
CRs-Fixed: 774533
2018-08-11 00:29:26 -07:00
Kiran Kumar Lokere
8d685d199d qcacld-3.0: Add support to override HE MU EDCA params
Add support to override HE MU EDCA params to defaults.

Change-Id: I43c51fe1022612ee7e2c6e8177727fa6cebe958c
CRs-Fixed: 2284457
2018-08-11 00:29:25 -07:00
nshrivas
4143c3937b Release 5.2.0.92
Release 5.2.0.92

Change-Id: Iad36107b8d1fa074a91af294695fe100ed28b448
CRs-Fixed: 774533
2018-08-10 20:45:17 -07:00