Revīziju grafs

3774 Revīzijas

Autors SHA1 Ziņojums Datums
Manjunathappa Prakash
6d2f46df2c qcacmn: Fix potential nbuf memory leak if mmap fails
Make sure free the allocated nbuf if we fail to memory map it.

Change-Id: I90606ab088fc093b390644478bccc77f08800cd5
CRs-Fixed: 2142469
2017-11-16 07:22:08 -08:00
Manjunathappa Prakash
c850ec6e18 qcacmn: Move AST handling functions under WDS compile flag
Move AST handling functions in side WDS compilation flag.

Change-Id: If8fb93e513b1a645b5d9c7fb73df0ed90770010d
CRs-Fixed: 2131812
2017-11-16 07:22:06 -08:00
Jiachao Wu
15a94747ef qcacmn: Check endpoint index range
Check endpoint range before it be used.
If endpoint is unused return with error.

Change-Id: I2888b0b66c737df677f09040133503e8ace60510
CRs-Fixed: 2138465
2017-11-16 05:32:36 -08:00
Chandru Neginahal
2a4e5d2262 qcacmn: Proxy STA fails to connect to ROOT AP in QWRAP mode
Correct the logic to send peer create command in nss
wifi offload mode.

Change-Id: If88a18798af9ee9273c9580ca1fd725a15f07eef
CRs-Fixed: 2119796
2017-11-16 02:48:42 -08:00
Naveen Rawat
bbb6bd6585 qcacmn: Do not stop at first object in get vdev by op_mode
In API wlan_objmgr_get_vdev_by_opmode_from_psoc, do not stop at first
vdev object if the vdev is in logical delete state. Continue till all
vdev are iterated or valid vdev is found.

Change-Id: I39d10d84ec9cb219d9b2f528e3415d5a4520bae5
CRs-Fixed: 2140337
2017-11-15 23:37:11 -08:00
Tallapragada Kalyan
a7010a6a6d qcacmn: additional sanity checks on reo exception ring
check if the received reo exception ring descriptor has
valid information by checking for sw cookie magic number
and check for rbm validity within the msdus of the msdu
link descriptor.

Change-Id: I44a0f47e43a334f26cfdb4d41d3eed39483d8604
2017-11-15 23:37:09 -08:00
Sandeep Puligilla
4bd7f8c513 qcacmn: Clear the scan list before destroy
cfg80211 scan list is not empty during the
scan priv deinit/list destroy because of that
qdf mem module triggered an assert.

Clear the cfg80211 scan list before
destroying the list.

Change-Id: I391d3b91869d085ec6ff405b7ddca37d7002e5ca
CRs-Fixed: 2136702
2017-11-15 23:37:06 -08:00
Dustin Brown
5d0d104798 qcacmn: Use qdf_cpuhp APIs for NAPI
Abstract NAPI's use of CPU hotplug events by using the new QDF CPU
hotplug APIs.

Change-Id: Iad590768476b4dc6bad63b3ee3b1b1bbf7698251
CRs-Fixed: 2141180
2017-11-15 15:53:37 -08:00
Linux Build Service Account
519d203401 Merge "qcacmn: Change format specifier %p to %pK" 2017-11-15 11:57:36 -08:00
Linux Build Service Account
d97eb1e531 Merge "qcacmn: Handle athkey getkey in open authmode" 2017-11-15 11:57:31 -08:00
Mahesh Kumar Kalikot Veetil
9655be589a qcacmn: Change format specifier %p to %pK
The printk format '%pK' will not leak kernel pointers to unprivileged
users. So change the format specifier from %p to %pK.

Change-Id: Ia229433dbbadc69cc1442c9e683659b8194e30b5
CRs-Fixed: 2133315
2017-11-15 11:23:22 -08:00
Nandha Kishore Easwaran
434838f5d0 qcacmn: Handle athkey getkey in open authmode
Athkey getkey should not give error message in open authmode

Change-Id: I6cd33b4fafe5a43d966ef320dae398622ce8f6fb
CRs-Fixed: 2124650
2017-11-15 09:42:39 -08:00
Pamidipati, Vijay
365a8bd240 qcacmn: Fix parameter passed in dp-target_if API
Fix a bug in DP soc init to pass correct parameter in get_dp_cfg_param
API

Change-Id: Icbb8bd593d9bc3ad198ee63d66ce6c381c9954bb
CRs-Fixed: 2142458
2017-11-15 09:42:37 -08:00
Pamidipati, Vijay
da917d573c qcacmn: Fixes for 64-bit paddr
In DP Transmit path, 32-bit variables are being used to store paddr.
This will not work for 64-bit systems.
Address this by making them 64-bit variables.

Change-Id: I4c146649773cfd9bdc636187cb35d9d776bf072f
CRs-Fixed: 2142458
2017-11-15 09:42:36 -08:00
Linux Build Service Account
311cb22379 Merge "qcacmn: Populate ppdu end timestamp" 2017-11-15 08:56:00 -08:00
Soumya Bhat
a6bdfd8b46 qcacmn: Populate ppdu end timestamp
Populate ppdu end timestamp, received from FW into cdp tx structure.

Change-Id: I114b595bf0ad98469f095267b8d3e98017897514
CRs-Fixed: 2143073
2017-11-15 07:25:11 -08:00
Linux Build Service Account
30f67a628b Merge "qcacmn: Fix transmitter MAC address" 2017-11-15 05:57:09 -08:00
Soumya Bhat
741b8fe64a qcacmn: Fix transmitter MAC address
Fix transmitter MAC address, which is being appended
to MSDU payload when tx packet capture is enabled.

Change-Id: Ic5bd3eab434125e9e4278e1e7af3ec47b7b3698f
CRs-Fixed: 2142085
2017-11-15 04:11:34 -08:00
Kabilan Kannan
7f6b374855 qcacmn: Fix memory leak issue in tdls peer delete operation
In TDLS peer delete function memory is not freed in error
handling path and it causes leak for every error
operation.
Free the memory in error handling path.

Change-Id: Idb4725ec7a4c1b9614ecad1f685ffdeb8f795e72
CRs-Fixed: 2139570
2017-11-15 02:29:56 -08:00
Pamidipati, Vijay
57a435a7e0 qcacmn: Move peer stats to PPDU indications
Move peer stats updation to PPDU indications from per-MSDU indications
to optimize CPU cycles. Add dp_rx_stats_update for receiver side PPDU stats

Change-Id: I4bdda8ac447e64cd1017e5be3949ec3f915a9d71
CRs-Fixed: 2123969
2017-11-15 12:39:08 +05:30
Linux Build Service Account
54a555a08c Merge "qcacmn: Clarify usage on Q_TARGET_ACCESS_BEGIN/END" 2017-11-14 13:28:18 -08:00
Yun Park
3fb3644e61 qcacmn: Clarify usage on Q_TARGET_ACCESS_BEGIN/END
Document where register writes are for legacy vs srng devices.
With the target access begin/end calls being associated with
the register writes and the register writes being associated to
specific HW, we avoid performing unneeded force wakes on common
code paths shared by legacy & srng based hardware.

Change-Id: Id91399d03298bfc5df56f0c5d5d14b648b665279
CRs-Fixed: 2117144
2017-11-14 12:07:30 -08:00
Linux Build Service Account
7d9c9373a7 Merge "qcacmn: Add WMI API to send beacon offload control" 2017-11-14 09:59:27 -08:00
Linux Build Service Account
9e60eb57f6 Merge "qcacmn: Add API to extract params from WMI ready event" 2017-11-14 09:59:26 -08:00
Kiran Venkatappa
084aff450b qcacmn: Add WMI API to send beacon offload control
Beacon offload control WMI command is used to control beacon tx in
beacon offload enabled mode. Add WMI API to send this command to FW.

Change-Id: I8b340b69ff508aaf80b9a80de044b0189b947a66
CRs-Fixed: 2140255
2017-11-13 21:08:54 -08:00
Kiran Venkatappa
276e8d5911 qcacmn: Add API to extract params from WMI ready event
WMI ready event provides num_dscp_tid, num_total_peers and other
information that  is used. Add API to extract these params.

Change-Id: I85ffc43f20935d84de133591020468c5e5f102de
CRs-Fixed: 2141667
2017-11-13 21:08:52 -08:00
Naveen Rawat
361892ec58 qcacmn: Add Wake timer pattern API
Add WOW_TIMER_PATTERN to enable host to set wake timer in FW when required.

Change-Id: Id37420ee8295d11fc8fe0f0fcc344d6ef31c315b
CRs-Fixed: 2134108
2017-11-13 17:27:15 -08:00
Linux Build Service Account
8a20d98c0c Merge "qcacmn: Fix a memory leak in HTC tx bundle packet allocation" 2017-11-13 11:26:46 -08:00
Linux Build Service Account
a1d51683c2 Merge "qcacmn: ADD Vendor Command to enable/disable FILS" 2017-11-13 11:26:41 -08:00
wadesong
fbf643a4fc qcacmn: Fix a memory leak in HTC tx bundle packet allocation
When HTC_PACKETs are allocated for bundle tx, netbuf and bundle
queue will also be allocated and stored in the context of
HTC_PACKET, but these two structures are not freed when the
bundle HTC_PACKETs are removed from pBundleFreeList and freed.

Retrieve the netbuf and bundle queue pointers from HTC_PACKET
context and free them when HTC_PACKET is freed.

Change-Id: I61d9eb18027b12f8b9491c696e4e16d793edf0d2
CRs-Fixed: 2127098
2017-11-13 03:42:25 -08:00
Vignesh Viswanathan
3c11bdd460 qcacmn: ADD Vendor Command to enable/disable FILS
Define new Vendor Command to enable/disable FILS.

Change-Id: I4c1a95312a28b184c36854fc2639fb2b431ff99c
CRs-Fixed: 2134802
2017-11-12 11:26:54 -08:00
Yun Park
fd269b5021 qcacmn: Remove kernel includes from datapath
To abstract kernel header inclusion, create a new QDF APIs for all IPA
APIs and redirect all IPA API calls through QDF interfaces.

Change-Id: I7bff975ad7cb32fc128320c124633594471e0a1f
CRs-Fixed: 2098907
2017-11-11 19:25:09 -08:00
Tiger Yu
d448fad508 qcacmn: Fix memory leak for SDIO RX path in the HIF layer
qcacld-2.0 to qcacmn propagation

There is a memory leak if fail to process the rx packet header in the HIF
layer. Add sanity checking to free all resources if failure hit.

Change-Id: Ifa443dcec0a31ae39356ac1ddf7cfe652d8968ce
CRs-Fixed: 2137736
2017-11-11 09:25:12 -08:00
Shashikala Prabhu
f2e0ad8d0f qcacmn: Fix 4.9GHz channel list validation failure
Problem:
For JAPAN_48 country, channel list does not show frequency 4912, 4915,
4917 and 4920. This is because FW sends low limit 5g as 4912 which is
a center frequency of 4.9GHz channel. In the current implementation,
Host finds the low 5GHz edge frequency by subtracting 10 from channel
center frequency. For example, channel center frequency is 4912 after
subtracting 10 the low 5GHz edge frequency is 4910. Since 4910 is less
than FW low limit 5GHz (4912), Host discards 4912 frequency from it's
channel list.

Solution:
FW should send low limit 5GHz as 4910 to consider 4912 as low 5GHz edge
frequency and Host should use min and max bandwidth from regulatory
channel to calculate low 5GHz edge frequency.

Change-Id: Ib712bd6ff091a385c7dc95832f9c771e34100211
CRs-Fixed: 2124135
2017-11-11 03:25:34 -08:00
Sathish Kumar
fd134e45dd qcacmn: Add support for custom aggr size cmd and rate dropdown vdev param
Add support for configuring aggregate size for A-MSDU and A-MPDU
aggregations.

Add support for rate dropdown vdev param to dropdown rates for SU, MU
and MGMT packets.

Change-Id: I033693e1c21c05d06acd7df36eac580be19fe20b
CRs-Fixed: 2138655
Acked-by: Aditya Sathish <asathish@qti.qualcomm.com>
2017-11-11 03:25:32 -08:00
Arif Hussain
f3b138c625 qcacmn: dfs: Replace instances of unadorned %p
Replace instances of unadorned %p in dfs.

Change-Id: I5a586d8e57fb0809bc1c7549ce78ac587bd0d142
CRs-Fixed: 2133316
2017-11-11 03:25:30 -08:00
Shashikala Prabhu
e858515daf qcacmn: Fix memleak issue in DFS component
Problem:
During wifi up/down, dfs_init_precac_list() is called to initialize
the precac list without de-allocating the previously allocated memory.
This leads to a memory leak.

Solution:
Deinit the allocated memory before initializing the precac list.

Change-Id: I7eee38fbc3c50f37ac0c6670b5bfe4b5a1b2d9f6
CRs-Fixed: 2140042
2017-11-11 03:25:28 -08:00
Padma, Santhosh Kumar
e98fadcd8c qcacmn: Add changes to handle WMI_ROAM_SYNCH_FRAME_EVENTID
Firmware sends beacon/probe response, reassoc request and
reassoc response using new event WMI_ROAM_SYNCH_FRAME_EVENTID
when the data that it wants to send via WMI_ROAM_SYNCH_EVENTID
exceeds max length 2k in firmware. Add common changes to handle
WMI_ROAM_SYNCH_FRAME_EVENTID in such a scenario.

Change-Id: I62755dfa3c2a4b0ff9ee48fd5f24cc2e300b374f
CRs-Fixed: 2122432
2017-11-10 21:27:19 -08:00
Om Prakash Tripathi
3e166ff7e4 qcacmn: Add support for wide band scan
Add support for 40 MHz or wider channel bandwidth scan

Change-Id: I72f3cf42e6dc957ef56842d0c333c62169cb6d68
CRs-Fixed: 2139415
2017-11-10 17:41:00 -08:00
Gerrit - the friendly Code Review server
f4618d407e Merge changes into wlan-cmn.driver.lnx.2.0 2017-11-10 17:33:53 -08:00
Linux Build Service Account
e34e0b2c7a Merge "qcacmn: Fix false radar detect" 2017-11-10 15:01:31 -08:00
Shashikala Prabhu
4ef75c1c97 qcacmn: Fix false radar detect
Changes related to false radar detection, various WIFI devices leak/send
out calibration signal that is same as radar signal. Added a
second level of check to filter them. Chirping and frequency hopping
radar are excluded from secondary check.
* Added a check for jitter in frequency (sidx) to be within certain limit.
* Added a fractional PRI check.
* Added a check to look for chirp in ETSI type 4  radar.

Change-Id: Iec6e264b0db7fafe4d01f5ded481b22993b2b2ed
CRs-Fixed: 2106960
2017-11-10 13:39:34 -08:00
Arif Hussain
01b680df04 qcacmn: tdls: Replace instances of unadorned %p
Replace instances of unadorned %p in tdls.

Change-Id: Ife7db6d669d04c7e2d8e1a6fec5b442e180a34bb
CRs-Fixed: 2133327
2017-11-10 05:58:46 -08:00
Linux Build Service Account
feb1b9c535 Merge "qcacmn: DP Tx path change for H/W alignment requirement" 2017-11-10 04:30:03 -08:00
Linux Build Service Account
56b85b3a4f Merge "qcacmn: serialization: Replace instances of unadorned %p" 2017-11-10 04:30:03 -08:00
Pamidipati, Vijay
871850e015 qcacmn: DP Tx path change for H/W alignment requirement
Transmit H/W requires that metadata sent as packet pre-header
should not be overlapping with the packet, as it might cause stalls
in the bus and might affect performance. For this reason, we are
removing align_pad bytes that we were adding by default for all
non-8-byte aligned frames and setting pkt_offset as 0 in Tx descriptor,
so that H/W does not read any metadata by default. H/W team confirmed that
8-byte alignment requirement is not there for frames which do not
have any metadata (Mesh/OCB/TDLS etc).

Change-Id: I2afdeaa49bc8306e7072cf5945762f19d6e4115f
CRs-Fixed: 2138287
2017-11-10 04:08:11 -08:00
Arif Hussain
1493b989c7 qcacmn: serialization: Replace instances of unadorned %p
Replace instances of unadorned %p in serialization.

Change-Id: I9ae7cb5dc231e689d029d77b1dc7b081a93af0c3
CRs-Fixed: 2133328
2017-11-10 04:08:08 -08:00
Dustin Brown
a145e09541 qcacmn: Free hotplug handler in qdf_cpuhp_unregister
A hotplug handler is allocated by calling qdf_cpuhp_register. However,
qdf_cpuhp_unregister does not free the previously allocated memory. Free
the hotplug handler in qdf_cpuhp_unregister.

Change-Id: I1663f5ea29a8630b42be33abd824135b0fbe4845
CRs-Fixed: 2141119
2017-11-10 02:55:36 -08:00
Linux Build Service Account
20fcc14251 Merge "qcacmn: Add Null checks in CDP Layer" 2017-11-10 01:32:49 -08:00
Linux Build Service Account
e3145500dd Merge "qcacmn: Add NULL checks within CDP Layer" 2017-11-10 01:32:48 -08:00