Commit Graph

16581 Commits

Author SHA1 Message Date
nshrivas
6f445399b9 Release 5.2.0.170Z
Release 5.2.0.170Z

Change-Id: I97f17b824a62057eac7a8366da29074bdb12173a
CRs-Fixed: 774533
2020-02-15 06:11:19 -08:00
Liangwei Dong
c1aed9f593 qcacld-3.0: Send HE 6GHZ band Capabilities IE to firmware
Send HE 6GHZ band Capabilities IE to firmware by WMI command.
Firmware will add the IE to probe request during scan.

Change-Id: I4a383a46206a50da244485f71e38ca8e4e847c10
CRs-Fixed: 2621402
2020-02-15 06:11:19 -08:00
nshrivas
1cfaf81095 Release 5.2.0.170Y
Release 5.2.0.170Y

Change-Id: I3ff70f7197bc1613ef0cf4f2fcda4b2912a8f4b6
CRs-Fixed: 774533
2020-02-15 04:42:56 -08:00
Vinay Gannevaram
521ebf80b1 qcacld-3.0: Add support to get fwr phymode for frequency
Currently, wifi-pos uses channel number to get the fwr phymode.
For adding 6g support wifi-pos need to get the phymode from
frequency instead of channel number.
As a part of fix, Add handler for getting phymode based on
frequency

CRs-Fixed: 2617906
Change-Id: Ie65b3ed98760cef152df3697805593efbad4d5a1
2020-02-15 04:42:56 -08:00
nshrivas
98d57896c3 Release 5.2.0.170X
Release 5.2.0.170X

Change-Id: I1a7819fd193e7e00be933fb181fa87303afff4bf
CRs-Fixed: 774533
2020-02-15 03:15:10 -08:00
gaurank kathpalia
869696d0b9 qcacld-3.0: Optimize log in roam and connect path
Optimize log in roam and connect path.

Change-Id: I1b9f09b7fcc0569a863f11cbd763c105fcf9d144
CRs-Fixed: 2622252
2020-02-15 03:15:10 -08:00
nshrivas
526ce5bff1 Release 5.2.0.170W
Release 5.2.0.170W

Change-Id: I6f3ca6f739f9266e119fa69da87725b8aa5a2ae9
CRs-Fixed: 774533
2020-02-15 01:58:26 -08:00
Jianmin Zhu
5b0746560d qcacld-3.0: suspend scan before scheduler thread suspended
Scan cmd still can be exist after scheduler thread is suspended
when host suspend, the scan cmd can't be removed from
serialization list by either complete or cancel any more since
both depends on scheduler thread, suspend thread blocked 30s to
wait scan cmd cleared.

Roam sync event from F/W can't be handled and Roam sync complete
can't be sent to F/W since scheduler thread suspended, then F/W
assert for roam sync cmd timeout.

After receive F/W down event, host will try SSR, but blocked by
unfinished suspend thread too.

Fix: suspend all components including scan before suspend
scheduler thread, make sure scan cmd is cleared and no new scan
is allowed any more before scheduler thread suspended.

Change-Id: I7a3badeedea018e4d92bbe8660692e42923852aa
CRs-Fixed: 2620650
2020-02-15 01:58:26 -08:00
nshrivas
15d20e9cbb Release 5.2.0.170V
Release 5.2.0.170V

Change-Id: I162f0f46d1330219a33c1578ba78bc0cd71d276b
CRs-Fixed: 774533
2020-02-15 00:31:41 -08:00
nshrivas
5504c32f16 Release 5.2.0.170U
Release 5.2.0.170U

Change-Id: I108418b7f552d36f205b4e968806b4ba04a5a6c9
CRs-Fixed: 774533
2020-02-14 23:08:54 -08:00
nshrivas
f645536c29 Release 5.2.0.170T
Release 5.2.0.170T

Change-Id: I4f6a020afa4c4961bacff4aabbd7f0752b15737a
CRs-Fixed: 774533
2020-02-14 17:52:43 -08:00
Abhishek Singh
521b203a59 qcacld-3.0: Optimize LL Stats prints
Optimize LL Stats prints.

Change-Id: Ia24ae8ca295fce64ae57ea7a5fd9381ed4458464
CRs-Fixed: 2621350
2020-02-14 17:52:43 -08:00
guangde
7501cf57a7 qcacld-3.0: Add athdiag functions for USB interface
For QCN7605 chip, FW team need athdiag tool to operate FW
information. Host driver need to pass the command and result
between athdiag tool and FW.

Change-Id: Ib3f4498ba560b2b76ec6939760535069777b972c
CRs-Fixed: 2595510
2020-02-14 17:52:29 -08:00
nshrivas
122098ee87 Release 5.2.0.170S
Release 5.2.0.170S

Change-Id: I3d0a5746c666891041da7f5b3a967b9d7896cd21
CRs-Fixed: 774533
2020-02-14 15:20:54 -08:00
Alan Chen
33628529ff qcacld-3.0: Add null check for logging PMKSA BSSID
When wlan_hdd_del_mksa_cache is not successful, it prints a failure
message with the PMKSA BSSID without checking whether it is null,
causing it to access a null pointer. Add a null check for PMKSA BSSID
using it in the log.

Change-Id: I7c2f67fe709c61d5371635950021cb8687175245
CRs-Fixed: 2621607
2020-02-14 15:20:54 -08:00
nshrivas
3aadd0315c Release 5.2.0.170R
Release 5.2.0.170R

Change-Id: I138c5a0cacc37275971a84891898209f2c71f4a8
CRs-Fixed: 774533
2020-02-14 13:34:48 -08:00
Alan Chen
a3de1a56ee qcacld-3.0: Add vdev start check before sending arp_ns stats cmd to fw
Add vdev start check such that host does not send ARP_NS stats command
to FW when vdev is already stopped.

Change-Id: I94c0b4c26db3f48c7b2de1ad3003c0f0520fa396
CRs-Fixed: 2621587
2020-02-14 13:34:48 -08:00
nshrivas
202317b2cd Release 5.2.0.170Q
Release 5.2.0.170Q

Change-Id: Ifc64ca4c0b5d3bd8ca9c86c81266b33bc4e62e58
CRs-Fixed: 774533
2020-02-14 12:09:30 -08:00
nshrivas
3c9f90ae6f Release 5.2.0.170P
Release 5.2.0.170P

Change-Id: Ia3d0a54440a46228c3cab849700453e8053e89bc
CRs-Fixed: 774533
2020-02-14 09:02:00 -08:00
Chaoli Zhou
803ea570f6 qcacld-3.0: Set pcie addr flag for IPA tx/rx ring
As for WDI2 over gsi, IPA driver adds is_txr_rn_db_pcie_addr
and is_evt_rn_db_pcie_addr in ipa_wdi_pipe_setup_info and
ipa_wdi_pipe_setup_info_smmu these two structures to check
if doorbell address is PCIe mapped address or not. So, it
need to set such flag from wlan host driver for IPA transfer
and event rings.

Change-Id: Ic71a460c6e87f5b77be737fa9a8e860ab7424e82
2020-02-14 09:02:00 -08:00
Sourav Mohapatra
eb7227cc06 qcacld-3.0: Add param to configure channel avoidance indication from FW
Currently, when WWAN channel changes, the list of WLAN channels that
needs to be avoided is given to WLAN FW. WLAN FW indicates the list
to host. Upon receiving Channel avoidance indication, host switches
the operating-channel of SAP (if any and conflicting).

When there is a frequent channel change from WWAN side, it causes
frequent SAP disconnection. To mitigate this problem, as part of
this change send the configuration to the WLAN FW which delays
the channel avoidance indication before sending it to host.

Change-Id: If67775d59b9f61d3592a5f6609d3b002899e5daf
CRs-Fixed: 2615917
2020-02-14 09:01:44 -08:00
nshrivas
de91e16e18 Release 5.2.0.170O
Release 5.2.0.170O

Change-Id: I6bee39d22adc7b826cdbbfe050ec7306a0c09e1b
CRs-Fixed: 774533
2020-02-14 04:17:45 -08:00
Ashish Kumar Dhanotiya
15d3b0d7b2 qcacld-3.0: Add support to dynamically set dwell time for 2g
Currently there is no support to dynamically set dwell time
for 2g channels.
Add support in existing command SETDWELLTIME to dynamically
configure dwell time for 2g channels.
Along with set, add support to get dwell time for 2g channels
with the existing driver command GETDWELLTIME.

Change-Id: Ifb4722ff3fdb2671e02794fc5b691b06aad98256
CRs-Fixed: 2620366
2020-02-14 04:17:45 -08:00
nshrivas
47edb229f2 Release 5.2.0.170N
Release 5.2.0.170N

Change-Id: I7850c0e5bf4d2f84203628070d4007c1b912ceda
CRs-Fixed: 774533
2020-02-13 22:08:33 -08:00
Abhishek Singh
3c56fdd796 qcacld-3.0: Optimize logs in TX assoc req and RX assoc rsp
Optimize logs while sending assoc req and assoc rsp handling
frame by dumping the assoc req frame and not printing each
params separately. Also avoid multiple dump of same frame.

Change-Id: Ibcf2d9aa8de292b9b9f4b4c6a53a0f694d69475c
CRs-Fixed: 2619553
2020-02-13 22:08:33 -08:00
nshrivas
8ee26b9493 Release 5.2.0.170M
Release 5.2.0.170M

Change-Id: Ie3f7def48f41a0528d7f4ccdc7a3c3ecabd38f15
CRs-Fixed: 774533
2020-02-13 18:32:05 -08:00
Sourav Mohapatra
dee8db155c qcacld-3.0: Cleanup logs in HDD APF path
Cleanup logging in HDD APF path.

Change-Id: Iceb78d0decbeb8d4a7c1723681fe03b9a3427b02
CRs-Fixed: 2618579
2020-02-13 18:32:05 -08:00
Yeshwanth Sriram Guntuka
b9502644d0 qcacld-3.0: Update default value of dp_proto_event_bitmap
Update default value of dp_proto_event_bitmap to track all
the supported protocol pkt types.

Change-Id: Ib6355f43fa667f80b31418320f3bdb2373fdf9e1
CRs-Fixed: 2618474
2020-02-13 18:31:41 -08:00
nshrivas
5eabe837da Release 5.2.0.170L
Release 5.2.0.170L

Change-Id: I5184648444a0c0bd4d378f92c62d4a842ffb6839
CRs-Fixed: 774533
2020-02-13 16:54:00 -08:00
Amruta Kulkarni
68f42668f1 qcacld-3.0: Fix to not set HT/VHT caps during 6ghz unicast probe req
In 6ghz, host should not set HT/VHT caps when sending unicast
probe request.

Change-Id: Ib31a08d2bda3dcba9e5f1e16107552d2ba18bcf1
CRs-Fixed: 2619300
2020-02-13 16:54:00 -08:00
nshrivas
7d4014db17 Release 5.2.0.170K
Release 5.2.0.170K

Change-Id: I085ef9145131564fffa4efcee11c1d1de82721bd
CRs-Fixed: 774533
2020-02-13 13:04:50 -08:00
Venkata Sharath Chandra Manchala
de8bea9272 qcacld-3.0: Add support to request for hardware stats
As part of the vendor extended stats, add API to
request Rx hardware stats for a given vdev id.

Change-Id: I46d73de21724c4c5ebf4a78075b7b2c1d02fe92a
CRs-Fixed: 2605729
2020-02-13 13:04:49 -08:00
nshrivas
06e6767f2b Release 5.2.0.170J
Release 5.2.0.170J

Change-Id: Ib0dd6f57671fdd8557d6636c6c3ee58fa8e41a37
CRs-Fixed: 774533
2020-02-13 08:11:31 -08:00
nshrivas
70ae77c08b Release 5.2.0.170I
Release 5.2.0.170I

Change-Id: Iadaa7575a0aec26d493ef646cdb7a6095f99fc71
CRs-Fixed: 774533
2020-02-13 05:53:34 -08:00
Yu Wang
6c9129693d qcacld-3.0: add vendor cmd support for BT coex chain mode
Add a new qca sub command QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.

This command is used to set BT coex chain mode via
WMI_COEX_CONFIG_BTCOEX_SEPARATE_CHAIN_MODE, it has 2 args:
arg1: BTC chain mode, including shared (0, default) and separated(1).
arg2: force restart flag. true means doing vdev restart after applying
      the new configurations; while false or NOT set means not.

CRs-Fixed: 2534768
Change-Id: I869096784e5089a6c90e94e76234cd13c9b1a13a
2020-02-13 05:53:34 -08:00
nshrivas
aa5ba4fedf Release 5.2.0.170H
Release 5.2.0.170H

Change-Id: Ia8ca9ea8c5f3832fb660bfbbc3a0ee6a666f4424
CRs-Fixed: 774533
2020-02-12 23:16:31 -08:00
Rajeev Kumar
e7bae1ec80 qcacld-3.0: Remove redundant wake-up reason code(int) logging
WoW wake-up reason code(string) is already logged and in some
cases wake-up reason code(int) is not populated by firmware
hence remove the redundant wake-up reason integer logging.

Change-Id: Ie8b21965bc9e56bcfe53a80893419a81bd0bed8c
CRs-fixed: 2619212
2020-02-12 23:16:31 -08:00
nshrivas
8575fab059 Release 5.2.0.170G
Release 5.2.0.170G

Change-Id: I56fd7685f19b0839b0f94effc5b03dd52206e320
CRs-Fixed: 774533
2020-02-12 20:10:52 -08:00
Karthik Kantamneni
d33455d6d4 qcacld-3.0: Call runtime pm sync resume when hif ctx is present
Currently if hif ctx is null hdd driver unload is returned without
proper cleanup where hif ctx is not required. To avoid this call
runtime pm sync resume only when hif ctx is present.

CRs-Fixed: 2619481
Change-Id: I761c96446024a175746ef377e1e31b593b93b616
2020-02-12 20:10:52 -08:00
nshrivas
89a5ec2bf2 Release 5.2.0.170F
Release 5.2.0.170F

Change-Id: Ib3024827920731a527b82cbd75b01bf2422ce269
CRs-Fixed: 774533
2020-02-12 11:57:26 -08:00
Manjunathappa Prakash
13dcee71cb qcacld-3.0: Return control after dropping NULL vdev msdus
Return control after dropping NULL vdev msdus and make sure to
NULL terminate the fisa_flow->head_skb.

Change-Id: I50e469f603b48cb578db30aaaaa9f974d469fde1
CRs-Fixed: 2613251
2020-02-12 11:57:26 -08:00
Manjunathappa Prakash
00cce59bcd qcacld-3.0: Check validity of dp_vdev while flushing
Validate vdev before delivering the packets for vdev.
Drop the packets if vdev is deleted.

Change-Id: If92d0fba04d96e3830bb4e6f04c395b4fcd54f84
CRs-Fixed: 2606760
2020-02-12 11:57:09 -08:00
Mohit Khanna
06cce797ed qcacld-3.0: Register FISA callback functions for delivery
Add FISA RX callback functions for fisa enabled case.

Change-Id: Iadd9a1b4e9763293153b1c8c2f263b0107c00c2c
CRs-Fixed: 2600268
2020-02-12 11:56:53 -08:00
Manjunathappa Prakash
db8c24946b qcacld-3.0: Aggregate the msdus of UDP flow
Aggregate the UDP flow msdu in to jumbo msdu and deliver to stack.
Stack handling of jumbo msdu saves the CPU mips.

Change-Id: I5a5d3fdbf3037d3b538f737bf4de8edc06260ab1
CRs-Fixed: 2600268
2020-02-12 11:56:17 -08:00
Manjunathappa Prakash
1fef6fba0c qcacld-3.0: Add logic to learn and program the flow in to FT
Check the HW TLVs to identify if the flow is already programmed.
If flow doesnot exist make an entry to SW and HW flow table.
Invalidate FSE cache to make fse read updated FT entry

Change-Id: I6acc539c5c7994e438ebb2af9cb3bb5ecbf6e120
CRs-Fixed: 2600268
2020-02-12 11:55:58 -08:00
Manjunathappa Prakash
77686579c1 qcacld-3.0: Allocate and initialize the FST for FISA
Add FST setup functions for allocating SW and DDR HW FT.

Change-Id: I13e7d5a40c7440f95d2308e0da5a883557b6b399
CRs-Fixed: 2600268
2020-02-12 11:55:44 -08:00
nshrivas
88492d1882 Release 5.2.0.170E
Release 5.2.0.170E

Change-Id: Ib15cc76500a7d3c31c3707b3a2a6f6e3450668b8
CRs-Fixed: 774533
2020-02-12 09:54:18 -08:00
Pragaspathi Thilagaraj
8a4ffccc02 qcacld-3.0: Replace stack alloc for struct tPmkidCacheInfo with heap alloc
Currently the strucutre tPmkidCacheInfo is allocated in stack
and used during pmksa operations. This structure takes up ~100
bytes of memory. This will cause stack corruption in low memory
devices.

Move allocations of structure tPmkidCacheInfo to heap.

Change-Id: Ibcf44bc331a9ef94499071af1899914edd75b3cf
CRs-Fixed: 2616488
2020-02-12 09:54:18 -08:00
nshrivas
a3f3606f00 Release 5.2.0.170D
Release 5.2.0.170D

Change-Id: If72b35e454ac789e1255842b8e5506a5b46c6ce2
CRs-Fixed: 774533
2020-02-12 08:01:42 -08:00
Amar Singhal
8bf9970419 qcacld-3.0: Remove DFS check after cac end notify
DFS check cannot be on atomic channel, but full channel width.

Change-Id: I6f7ea80923db6ea96c995d1d5a2faf8b4576950f
CRs-Fixed: 2615778
2020-02-12 08:01:42 -08:00
nshrivas
2768e99057 Release 5.2.0.170C
Release 5.2.0.170C

Change-Id: I0d1ca07441d0deb830dac9ea1757bce5218e8fa4
CRs-Fixed: 774533
2020-02-12 04:00:53 -08:00
Liangwei Dong
8f4c8c140c qcacld-3.0: Fix potential memory leak of stats_event
To free stats_event in the failure case of wlan_hdd_get_station_stats.

Change-Id: I679a6109ec2370f9126b0b3201b1035869cef14e
CRs-Fixed: 2618356
2020-02-12 04:00:51 -08:00
nshrivas
e48e7b4612 Release 5.2.0.170B
Release 5.2.0.170B

Change-Id: I7c7ba83b9a320d25c300a8b8df29a2f9ac9da1f6
CRs-Fixed: 774533
2020-02-11 18:43:31 -08:00
Vulupala Shashank Reddy
6e5c807513 qcacld-3.0: Add INI parameter for packet capture mode support
Add INI parameter for packet capture mode

"packet_capture_mode" - ini to set packet capture mode.

Change-Id: Ie60c142af753c65b44aa0018440e43a215e51a27
CRs-Fixed: 2614578
2020-02-11 18:43:31 -08:00
nshrivas
2e9da7605c Release 5.2.0.170A
Release 5.2.0.170A

Change-Id: I4154b81687f95766b54656837c430f41ff839391
CRs-Fixed: 774533
2020-02-11 11:04:41 -08:00
Ashish Kumar Dhanotiya
6b3041aed2 qcacld-3.0: Fix compilation issue in SAR limits file
There are compilation issues if feature FEATURE_SAR_LIMITS
is disabled.
Fix compilation issues relaterd to feature FEATURE_SAR_LIMITS.

Change-Id: Ifdb7c14ea3e973bc63560eb78edd084a53e28974
CRs-Fixed: 2619492
2020-02-11 11:04:28 -08:00
nshrivas
d14d7052b3 Release 5.2.0.170
Release 5.2.0.170

Change-Id: Ia6ca6f71f652afe27793dfd7c019548bd6cb06e2
CRs-Fixed: 774533
2020-02-11 09:16:30 -08:00
sheenam monga
e0e91c48d5 qcacld-3.0: vdev validation before sending unit test command
Currently, There is no check to validate vdev in function
wma_form_unit_test_cmd_and_send before sending command to
fw which may lead to fw crash due to invalid vdev id.

Fix is to add validation check for vdev before invoking
wmi_unified_unit_test_cmd and sme_send_unit_test_cmd.

Change-Id: I61db37417f05968365f210515c28eb6184279c77
CRs-Fixed: 2618295
2020-02-11 09:16:30 -08:00
nshrivas
d7921d0853 Release 5.2.0.169Z
Release 5.2.0.169Z

Change-Id: If51e78bc3c1364b715a6a2d58175f7bf11954a38
CRs-Fixed: 774533
2020-02-11 05:43:07 -08:00
Alan Chen
f32d8e8dcf qcacld-3.0: Add check for eHDD_DOT11_MODE_AUTO before updating umac
Currently, eHDD_DOT11_MODE_AUTO has not been checked, so if gDot11Mode
ini is set to 0, this would fail to update umac with the correct HE
capability. Add an if check for eHDD_DOT11_MODE_AUTO to check if it
has been enabled.

Change-Id: I5d26314f4bcfedcf1e913625ac946118ddb9a983
CRs-Fixed: 2619091
2020-02-11 05:43:07 -08:00
nshrivas
dff8b7357c Release 5.2.0.169Y
Release 5.2.0.169Y

Change-Id: I32cbe500f8db9bd5aedf394cd8821ef3b38a60df
CRs-Fixed: 774533
2020-02-11 04:14:21 -08:00
nshrivas
7ea4682d12 Release 5.2.0.169X
Release 5.2.0.169X

Change-Id: I9ad64bda41d364a242c075d0446faef79ada1aee
CRs-Fixed: 774533
2020-02-11 02:38:51 -08:00
nakul kachhwaha
964cd0e528 qcacld-3.0: Fix compilation issue on kernel v4.19
Removed ol_tx_hl_vdev_bundle_timer definition for
kernel v4.15 as __os_timer_shim will wrap the kernel
timer handler API prototype as per new definition for
kernel v4.15 and above.

Change-Id: I873ba706050ea8020e4af7133c86ef8aabb93d53
CRs-Fixed: 2602835
2020-02-11 02:38:51 -08:00
nshrivas
9b818b0624 Release 5.2.0.169W
Release 5.2.0.169W

Change-Id: I75adff37fc557547739a47584378a6f0fc088e9d
CRs-Fixed: 774533
2020-02-10 13:32:46 -08:00
Sourav Mohapatra
6eceafd4cb qcacld-3.0: Clean up logs in STATS path
Clean up logs in STATS request and response path.

Change-Id: I417100c021ef8b776e7bd800ab2df8eebe95d472
CRs-Fixed: 2618311
2020-02-10 13:32:46 -08:00
nshrivas
f10037c085 Release 5.2.0.169V
Release 5.2.0.169V

Change-Id: I78f70276ab2abb47da3631a6e6d7d44435a0d752
CRs-Fixed: 774533
2020-02-10 11:59:00 -08:00
Ashish Kumar Dhanotiya
b3ae646bf2 qcacld-3.0: Add support for the NAN config items
Currently there is no inis for NAN component:
1. To configure the keep alive period for the
NDI interface.
2. To enable/disable discovery of NAN cluster with
Master Preference (MP) as 0 when a new device is
enabling NAN.

Add ini support to configure above mentioned values.

Change-Id: I47b67eb89fb8849960a9f492d2909e45b96308f3
CRs-Fixed: 2617839
2020-02-10 11:58:46 -08:00
nshrivas
e5b9856f61 Release 5.2.0.169U
Release 5.2.0.169U

Change-Id: Iba1b3e13f41a5e5d03ca0b96f1cee5bc704235cd
CRs-Fixed: 774533
2020-02-10 10:14:50 -08:00
Kiran Kumar Lokere
63faa9b6b0 qcacld-3.0: Rename ioctl ldpc setting for SAP
Rename the ioctl ldpc setting for SAP to use same naming as
STA mode.

Change-Id: Iaebde9cf542637bd82dbc3812b96dec77683cc2c
CRs-Fixed: 2618149
2020-02-10 10:14:50 -08:00
Abhishek Ambure
293c2d3bf6 qcacld-3.0: Always append preferred roam scan channels
For ADDROAMSCANCHANNELS command, always append user given channels
into the existing preferred channels list in driver. If the preferred
channel list exceeds SIR_ROAM_MAX_CHANNELS i.e. 80 then overwrite
oldest entries with new channels.

Change-Id: Ifa12b1e4d75dd927bdbceea9a076ed1bcbd91f4f
CRs-Fixed: 2618318
2020-02-10 10:14:30 -08:00
nshrivas
e45298865b Release 5.2.0.169T
Release 5.2.0.169T

Change-Id: Ia6de100db07b9411edf3454831b29e7b9c7b165d
CRs-Fixed: 774533
2020-02-10 08:32:29 -08:00
Ashish Kumar Dhanotiya
f6871a8e8c qcacld-3.0: Resolve memleak in hdd_configure_sar index
In hdd configure sar index api if the FW supported version is not
SAR_VERSION_2, in that case there is a mem leak issue as the
memory is allocated for sar_command is before the fw sar version
check and in case of fw sar version check failed, memory allocated
for sar command is not freed.

To resolve above issue, move the version check before the memory
allocation for sar command.

Change-Id: I1d5e6bad63134c89ac456c3247eebad79e8f8c79
CRs-Fixed: 2618648
2020-02-10 08:32:29 -08:00
sheenam monga
65415d12d9 qcacld-3.0: Log optimization for NCHO
Currently there are unnecessary/duplicate logging. Identify and
reduce those logs that are not necessary.

Change-Id: I648b84786f9009d45e54fa67c21c834a1eae1608
CRs-Fixed: 2617648
2020-02-10 08:32:11 -08:00
nshrivas
a464d4d014 Release 5.2.0.169S
Release 5.2.0.169S

Change-Id: I3c51e82c98e9c55577c88649c8c8ec1075b96606
CRs-Fixed: 774533
2020-02-10 06:41:18 -08:00
nshrivas
c37f9e0261 Release 5.2.0.169R
Release 5.2.0.169R

Change-Id: If767eab636a6650c5b059832977383b0811d338b
CRs-Fixed: 774533
2020-02-10 04:31:34 -08:00
Surabhi Vishnoi
8333061e83 qcacld-3.0: Add pld API to get the audio timestamp
Add pld API to get audio timestamp needed in FTM wlan
timesync feature to synchronise the audio clocks of
master and slave devices

Change-Id: I6f08e33904e26728492286f516ce5a8074afd1ea
CRs-Fixed: 2616917
2020-02-10 04:31:33 -08:00
nshrivas
dcb6fb30c1 Release 5.2.0.169Q
Release 5.2.0.169Q

Change-Id: Ic1d0207ed0dd04b85181328cb2f529630441fe3f
CRs-Fixed: 774533
2020-02-10 02:31:49 -08:00
Sourav Mohapatra
5e4000bde8 qcacld-3.0: Remove validate_context check from wlan_resume
Presently, there is a very narrow race condition that causes
scheduler_thread to remain in a suspended state for undefined period of
time. The race condition occuers between idle_psoc_timeout and
wlan_hdd_cfg80211_resume_wlan.

As a part of idle_psoc_timeout, the driver calls hdd_wlan_stop_modules
that sets the flag "stop_module_in_progress" and checks if driver is in
suspended state. If yes, it resets the flag and returns. But in the case
of a race condition, before this reset and return is carried out,
wlan_hdd_cfg80211_resume_wlan is invoked. The validate_context inside
the resume function fails due to the above mentioned flag being set. As
a result, resume fails and the driver stays in suspended state. This
causes the driver to enter a infinite loop of stop_modules not being
successful.

To close this small window of contention, remove the validate_context
check. hdd_ctx is always guranteed to be valid and also DSC takes
care of synchronizing the operation, thus the check is redundant.

Change-Id: I723f78e4c33bdc531776c46eff2428dbd869493f
CRs-Fixed: 2616177
2020-02-10 02:31:49 -08:00
sheenam monga
724306fbed qcacld-3.0: Log optimization for beacon report
Currently there are unnecessary/duplicate logging. Identify and
reduce those logs that are not necessary.

Change-Id: I5473db8cf2406aa6aa2f8531cf5a0cc8b7bd2188
CRs-Fixed: 2614121
2020-02-10 02:31:35 -08:00
nshrivas
7ac4ced743 Release 5.2.0.169P
Release 5.2.0.169P

Change-Id: I41b5839be463d20244d8294c8b494e4bc4d82780
CRs-Fixed: 774533
2020-02-08 18:59:48 -08:00
Alan Chen
a507e41a87 qcacld-3.0: Add module enable check in pm_qos_notify
pm_qos_notify() should do nothing if WiFi module is not enabled.

Change-Id: I8eaf78f2ec547f33921c8337b9b3ae178c1709e1
CRs-Fixed: 2618148
2020-02-08 18:59:47 -08:00
nshrivas
426d193a9e Release 5.2.0.169O
Release 5.2.0.169O

Change-Id: Id68511f3faa7525721c890e5a986a8b127a1d7a0
CRs-Fixed: 774533
2020-02-08 02:07:04 -08:00
Amruta Kulkarni
fc875ea635 qcacld-3.0: Cleanup for function wlan_reg_is_dfs_ch()
Replace wlan_reg_is_dfs_ch() with wlan_reg_is_dfs_for_freq()

Change-Id: Ifa62248169ad7b8ff1c62cab44c92d99a8db0e45
CRs-Fixed: 2609311
2020-02-08 02:07:03 -08:00
nshrivas
db47e1d060 Release 5.2.0.169N
Release 5.2.0.169N

Change-Id: I89a85d84fb647da99f44c113cc227b786236245d
CRs-Fixed: 774533
2020-02-07 23:16:38 -08:00
Srinivas Dasari
a44ae3f2a3 qcacld-3.0: Send appropriate NDP peer mac address for remove peer
Currently, wma->peer_macaddr is passed as peer mac address for
NDP peer removal. This gets filled only when PEER_STATS_INFO is
queried from firmware. This is not the right mac address to be
sent for peer removal. Driver might attempt to remove an invalid
peer(or NULL) which leads to assertion in wma_remove_peer.
Get the peer mac address from tpDeleteStaParams which is
sent from lim and pass it to wma_remove_peer.

Change-Id: I90beb7edc1d6ad5790ed972dcb9d3ac42bc04ea7
CRs-Fixed: 2617918
2020-02-07 23:16:38 -08:00
nshrivas
7a562b0d3f Release 5.2.0.169M
Release 5.2.0.169M

Change-Id: I3f55700d58805c0d918e5ebe905248862350b4b1
CRs-Fixed: 774533
2020-02-07 17:21:37 -08:00
Ashish Kumar Dhanotiya
309af01f1d qcacld-3.0: Configure sar sleep index to FW
Currently there is no SAR index is configured to the FW
before device goes into suspend mode.
with the new requirement, configure the sleep mode index
as sar power limit to the FW before device goes into
suspend mode and configure safety mode index to the FW
on wakeup.

Change-Id: Icedbab047ec3bb252f0ed9c1b2baf04d2726a60e
CRs-Fixed: 2617102
2020-02-07 17:21:36 -08:00
nshrivas
751c9593b0 Release 5.2.0.169L
Release 5.2.0.169L

Change-Id: I2a8abb6fc8d07b03ec4c340a556b0d25d7243258
CRs-Fixed: 774533
2020-02-07 15:42:20 -08:00
gaurank kathpalia
385977d071 qcacld-3.0: Optimize log in connect path
Optimize log in connect path during phase. Remove duplicate logs
and combine scattered info.

Change-Id: I6f57405669987b35d5c0acb2f0b818e5e61bd7a9
CRs-Fixed: 2617508
2020-02-07 15:42:20 -08:00
nshrivas
fcdfa57793 Release 5.2.0.169K
Release 5.2.0.169K

Change-Id: I9302433333be5d10551841d13ce83931befcd778
CRs-Fixed: 774533
2020-02-07 14:13:03 -08:00
nshrivas
53f0eca883 Release 5.2.0.169J
Release 5.2.0.169J

Change-Id: Ib07138b8234c54a6056c759fb892e2a9229b5ca0
CRs-Fixed: 774533
2020-02-07 12:12:56 -08:00
Abhishek Singh
9e0b8cdc2e qcacld-3.0: Remove duplicate logs from sta_send_add_bss
lim_sta_send_add_bss_pre_assoc, sta_send_add_bss and
wma_send_peer_assoc have duplicate logs.

Also send_peer_assoc_cmd_tlv print all the required info with
flags and other params.

So remove the duplicate logs and keep only missing info in
sta_send_add_bss and wma_send_peer_assoc, which is not printed
anywhere.

Change-Id: Ic5aa63f1a4296553b584bcc768d8c5cb04ddddf3
CRs-Fixed: 2616910
2020-02-07 12:12:56 -08:00
Abhishek Singh
df747419bc qcacld-3.0: Optimize logging in wma peer create
Optimize logging in wma peer create

Change-Id: Iabaf73703336f3294a508f27c74a2df97b480eb7
CRs-Fixed: 2617006
2020-02-07 12:12:41 -08:00
nshrivas
62ef5a7b60 Release 5.2.0.169I
Release 5.2.0.169I

Change-Id: I25d65b07c4a4a2ea15b2954918b5156f7f1200d6
CRs-Fixed: 774533
2020-02-07 10:39:41 -08:00
Abhishek Singh
3be6fabc18 qcacld-3.0: Optimize logs while printing HT/VHT/HE MCS
Optimize logs while printing HT/VHT/HE MCS

Change-Id: Ie4953c25841b7940df101affa9cf5c4b4a9a099e
CRs-Fixed: 2616911
2020-02-07 10:39:41 -08:00
Alan Chen
c88bfc6f5a qcacld-3.0: Trigger runtime pm sync resume during driver unload
Runtime PM needs to be sync resumed during driver unload. Hence, call
runtime pm sync resume during driver unload.

Change-Id: I20423871a82f33fcbaa3a64d741022f128785075
CRs-Fixed: 2615676
2020-02-07 10:39:26 -08:00
nshrivas
1773a4618b Release 5.2.0.169H
Release 5.2.0.169H

Change-Id: If75d4d656e22fdf42869da67994e334e9565916d
CRs-Fixed: 774533
2020-02-07 09:04:10 -08:00
Ashish Kumar Dhanotiya
4f5c252a82 qcacld-3.0: Add SAR request-response event
Add support SAR request-response event. When
sar_unsolicited_timer expires driver sends
QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT event to
user space and expects user space to set sar power limits
with the vendor command
QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS.

Add a request-response event to wait for
QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command from
user space. If driver does not get
QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS command from user space
for a specified number times, driver configures the sar safety
index to the FW.

Change-Id: Ic2b9e0b7fe06093ce849fb46df7bfce5da409ef6
CRs-Fixed: 2615519
2020-02-07 09:04:10 -08:00
nshrivas
cce65fc093 Release 5.2.0.169G
Release 5.2.0.169G

Change-Id: I8fe98dc64b51eecd9af13e0a7c8aca27d1e5cc0e
CRs-Fixed: 774533
2020-02-07 07:33:21 -08:00
Ashish Kumar Dhanotiya
3d5a742d5c qcacld-3.0: Add SAR unsolicited timer
Add SAR unsolicited timer to the driver. This timer starts
on every data tx (if not already running) and stops on
command QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS.
If this timer expires, a vendor event
QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT is sent to the
user space to issue the QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
command.

Change-Id: Ic30e5ac606d2b6b0cbc9209174adcd5213eac08e
CRs-Fixed: 2615510
2020-02-07 07:33:20 -08:00