Commit Graph

4809 次程式碼提交

作者 SHA1 備註 提交日期
Jeff Johnson
19a4014b6b qcacmn: htc: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Ieacfc963de0aa362d695ebddcd1231ca5128f55e
CRs-Fixed: 2230684
2018-05-18 02:17:30 -07:00
Jeff Johnson
5fb2e3d5f1 qcacmn: hif: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I5d1411d241cfed4f50759960d18e9220f6c0da39
CRs-Fixed: 2230684
2018-05-18 02:17:27 -07:00
Jeff Johnson
e71b8c4019 qcacmn: dp: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Id6b2e4758232355b0c47bf8c2f1a0b2a1eacba05
CRs-Fixed: 2230684
2018-05-18 02:17:24 -07:00
Santosh Anbu
76693bcc89 qcacmn: Support HMWDS for legacy platform
HMWDS for legacy was broken during bring up of DBDC on Hawkeye
platform.
Add cmn_tx_ops to support add, delete and update of AST entries.

Change-Id: Ia2a465a1f5f3d304a35d02c33bff73c56bb010a3
CRs-Fixed: 2225830
2018-05-18 02:17:22 -07:00
chenguo
6824d8d9c9 qcacmn: Fix compiling error when enable ATH_TX_PRI_OVERRIDE
"(" character should not appear in macro parameter list. Remove
this illegal character to avoid compiling error.

CRs-Fixed: 2239574
Change-Id: Ie50feb5dacda52edb0b1a4fcdfd516e909c7bda8
2018-05-18 02:17:17 -07:00
Dustin Brown
b7871f64ad qcacmn: Add qdf_status_from_os_return()
It is sometimes useful to reverse map an errno into a QDF_STATUS. For
this purpose, introduce qdf_status_from_os_return(), the logical inverse
operation of qdf_status_to_os_return().

Change-Id: I053f43867ef603c2654eca64fe76c7bd313e14e4
CRs-Fixed: 2242664
2018-05-18 00:00:33 -07:00
Dustin Brown
a487539d7d qcacmn: Pre-allocate flex-mem segments
Pre-allocate the reduction_limit number of segments during
flex-mem-pool initialization.

Change-Id: I91581e04b94597ee4314ce8691b37a45066c5273
CRs-Fixed: 2241805
2018-05-17 21:39:12 -07:00
Wen Gong
a5dfb6d847 qcacmn: Add hdd memory dump feature flag
Add config flag to enable / disable hdd memory dump feature

CRs-Fixed: 2231694
Change-Id: I6b565bd7007223a51b67a2ea9fbafd6a737d22d9
2018-05-17 21:39:10 -07:00
Wu Gao
210778359a qcacmn: Add QDF API for ID allocation
In P2P ROC and MGMT tx cases, it use kernel address as cookie and
provides to userspace. Which has security risk. Add QDF API for ID
allocation and map ID to pointer, provides ID to userspace instead
of kernel address.

Change-Id: I4e10109988391474722df5b251fab11a87c7992b
CRs-Fixed: 2237756
2018-05-17 16:55:21 -07:00
Tallapragada Kalyan
51198fc4ee qcacmn: Add counters for IP, TCP/UDP checksum errors
Add counters for IP, TCP/UDP checksum errors reported by
hardware.

Change-Id: Iaeb9280bc1ad4a287eee409d92ad0c95dc9f2c77
2018-05-17 16:55:19 -07:00
Lin Bai
e2137870de qcacmn: print the value of register fw_indicator
For legacy PCIe chip like Rome, FW will use register 'fw_indicator'
to indicate more info, when failure occurs.

Here to print its value for debug purpose.

CRs-Fixed: 2242094
Change-Id: I9037dc29091ec5d7571414bb9e135dfaaf0f6dd9
2018-05-17 15:43:46 -07:00
Zhu Jianmin
1c6bb03362 qcacmn: Avoid timer double free when disable scheduler
A global timer is created and freed by each module, if passed as
msg to mc queues, shouldn't be freed in scheduler_cleanup_queues,
or double free issue happens

For example, a timer in tLimTimers is freed in mac_stop->pe_stop
->lim_cleanup_mlm

Change-Id: I919b13f2570e3496a1de249fd90a88f3bfeaa131
CRs-Fixed: 2220514
2018-05-17 14:26:28 -07:00
Linux Build Service Account
768d0997a3 Merge "qcacmn: Possible information leak due to uninitialized data" 2018-05-17 07:44:54 -07:00
Dundi Raviteja
dd1d8ba52a qcacmn: Possible information leak due to uninitialized data
In qdf_trace_hex_dump() API, linebuf array is not initialized where
it is used to print in the form of string in qdf_trace_msg() API,
this may cause information leak.

To address this issue, initialize the linebuf array to zero.

Change-Id: If2fe200eb16b28f7fff4413873c1d149716fb1a7
CRs-Fixed: 2232012
2018-05-17 02:38:00 -07:00
Jeff Johnson
2b2ed37d86 qcacmn: Fix typo "doesnt"
Replace typo "doesnt" with correct spelling "doesn't".

Change-Id: I10c7e288056ca296d4e69ec7ad47404482cbf6f3
CRs-Fixed: 2238309
2018-05-17 00:47:39 -07:00
Jeff Johnson
3f0dfd144a qcacmn: Fix typo "continous"
Replace typo "continous" with correct spelling "continuous".

Change-Id: If14e05ea8d30979c792e682c26da1e7ce33d7345
CRs-Fixed: 2238309
2018-05-17 00:47:36 -07:00
Jeff Johnson
c9e37ee940 qcacmn: Fix typo "initalizes"
Replace typo "initalizes" with correct spelling "initializes".

Change-Id: Ibe473a78e943c43ca50948ae95829504a8741d6b
CRs-Fixed: 2238309
2018-05-17 00:47:32 -07:00
Jeff Johnson
bd6e61f610 qcacmn: Fix typo "funtion"
Replace typo "funtion" with correct spelling "function".

Change-Id: I05db828dd5830d4b95467ed5494f319113de9252
CRs-Fixed: 2238309
2018-05-17 00:47:29 -07:00
Jeff Johnson
42dda700f6 qcacmn: Fix typo "paramter"
Replace typo "paramter" with correct spelling "parameter".

Change-Id: I3f6f090a4f5348f64241e08c87b9bcd342696e10
CRs-Fixed: 2238309
2018-05-17 00:47:26 -07:00
Jeff Johnson
2d821eb0fe qcacmn: Fix typo "recieve"
Replace typo "recieve" with correct spelling "receive".

Change-Id: I7d88e57b97fa6d217630d4a5d5c365b56e714428
CRs-Fixed: 2238309
2018-05-17 00:47:23 -07:00
Jeff Johnson
7947f90a30 qcacmn: Fix typo "retrived"
Replace typo "retrived" with correct spelling "retrieved".

Change-Id: Icde5e2480be78bdf8bf3befd1ce09b1b427074df
CRs-Fixed: 2238309
2018-05-17 00:47:20 -07:00
Jeff Johnson
7bc361fc18 qcacmn: Fix typo "comand"
Replace typo "comand" with correct spelling "command".

Change-Id: Ia56f21487ac36e687aff8ac0ba693174e1e4a202
CRs-Fixed: 2238309
2018-05-17 00:47:15 -07:00
Jeff Johnson
ab0aeed501 qcacmn: Fix typo "aquired"
Replace typo "aquired" with correct spelling "acquired".

Change-Id: Iee18669cf648971e93965bea7ea0589f942c3af2
CRs-Fixed: 2238309
2018-05-17 00:47:11 -07:00
Jeff Johnson
ba9272370e qcacmn: Fix typo "coexistance"
Replace typo "coexistance" with correct spelling "coexistence".

Change-Id: I067eef3367e16c7e29e535ef7ccf4a5311173deb
CRs-Fixed: 2238309
2018-05-17 00:47:08 -07:00
Jeff Johnson
d277f28dde qcacmn: Fix typo "occured"
Replace typo "occured" with correct spelling "occurred".

Change-Id: I1407965d96633b78e1f5d613b0eec3afb8f3b708
CRs-Fixed: 2238309
2018-05-17 00:47:05 -07:00
Jeff Johnson
dc9c55962d qcacmn: Fix typo "lenght"
Replace typo "lenght" with correct spelling "length".

Change-Id: Ieea0c547c61248e510835d16a9fa55ace486df23
CRs-Fixed: 2238309
2018-05-17 00:47:02 -07:00
Jeff Johnson
d087edef2e qcacmn: Fix typo "fuction"
Replace typo "fuction" with correct spelling "function".

Change-Id: I32a3ec69c161e16b694a856db86448103900c759
CRs-Fixed: 2238309
2018-05-17 00:46:59 -07:00
Jeff Johnson
97a1cc5caf qcacmn: Fix typo "paramters"
Replace typo "paramters" with correct spelling "parameters".

Change-Id: I7b82a1c3fda1e826840152fb1a23102f3c23fdb8
CRs-Fixed: 2238309
2018-05-17 00:46:57 -07:00
Jeff Johnson
4cee5cf7cc qcacmn: Fix typo "seperate"
Replace typo "seperate" with correct spelling "separate".

Change-Id: I742473a16b79c5b91722c3642c983a7fa6dfd252
CRs-Fixed: 2238309
2018-05-17 00:46:54 -07:00
Jeff Johnson
cc793da52b qcacmn: Fix typo "adapater"
Replace typo "adapater" with correct spelling "adapter".

Change-Id: I53a98385a38df6e26fc3a4a5448566e89c6710ea
CRs-Fixed: 2238309
2018-05-17 00:46:52 -07:00
Jeff Johnson
2f29abc243 qcacmn: Fix typo in "P2P_EVENT_PROPOGATE_TIME"
Macro P2P_EVENT_PROPOGATE_TIME contains a misspelling of PROPAGATE so
fix the misspelling in both places it occurs.

CRs-Fixed: 2238309
Change-Id: Ic5c4a31820f8b51a5117241c6c6fa01025f4ae84
2018-05-17 00:46:49 -07:00
Jeff Johnson
3a1832e598 qcacmn: Fix typo "capabilites"
Replace typo "capabilites" with correct spelling "capabilities"

Change-Id: I8efa1d974ecabb1466bdf27ec305fd9960da0616
CRs-Fixed: 2238309
2018-05-17 00:46:46 -07:00
Jeff Johnson
ae1b3de378 qcacmn: Fix typo "sucess"
Replace typo "sucess" with correct spelling "success"

Change-Id: Ieacb299890210d67848268a389a57168e2a2badd
CRs-Fixed: 2238309
2018-05-17 00:46:44 -07:00
Jeff Johnson
9f2d54f039 qcacmn: Fix typo "accross"
Replace typo "accross" with correct spelling "across"

Change-Id: Ifec1b81cbc6c808784d86afe055468ff42674a57
CRs-Fixed: 2238309
2018-05-17 00:46:41 -07:00
Jeff Johnson
23dbde8dd9 qcacmn: Fix typo "choosen"
Replace typo "choosen" with correct spelling "chosen"

Change-Id: I0a4cfca422d395d3c0da911b358744e351f9b8ec
CRs-Fixed: 2238309
2018-05-17 00:46:38 -07:00
Naveen Rawat
97a913abb7 qcacmn: Add target_if/wmi implementation of get_stations_stats
Add changes to support get station stats from within the cp stats
component.

Change-Id: I936ea8e18e519f257ae2d57b384a5a39f4582aed
CRs-Fixed: 2210313
2018-05-16 23:20:19 -07:00
Naveen Rawat
c223147287 qcacmn: Add osif implementation of get_stations_stats
Add changes to support get station stats from within the cp stats
component.

Change-Id: I17235bf66931b2221a5ddd24aa5f761d5db7eab7
CRs-Fixed: 2210313
2018-05-16 23:20:14 -07:00
Naveen Rawat
3d57f51826 qcacmn: Add umac implementation of get_stations_stats
Add changes to support get station stats from within the cp stats
component.

Change-Id: I3063125fe8c747f21f00b6f027da38010a2bdc61
CRs-Fixed: 2210313
2018-05-16 23:20:10 -07:00
psimha
4d9c3f9806 qcacmn: Add sanity checks before retrieving rx_desc
Add sanity checks for pool id & index extracted
from the SW cookie field within buf_addr_info.

Change-Id: Icf21b94fa05f6f8887b8c7a17896348f25436dda
CRs-Fixed: 2220030
2018-05-16 19:48:38 -07:00
Linux Build Service Account
453a7c9510 Merge "qcacmn: Add mgmt cipher in rsn ie" 2018-05-16 12:37:49 -07:00
Surabhi Vishnoi
6f7a99c4f4 qcacmn: Fix memory leak in WMI
In case of invalid MIMO PS config in wmi cmd, wmi cmd
is not sent and we return. This leads to memory leak as wmi
net buf allocated is not freed before returning.

Fix the memory leak by freeing the wmi net buf in such case
before return.

Change-Id: I7f353f0b4d84a663801482a9c28296371bea3b89
CRs-fixed: 2230346
2018-05-16 12:13:30 -07:00
Nirav Shah
77250fa1d7 qcacmn: Changes to compile out fastpath feature
Changes to compile out fastpath feature cleanly and
also disable unused code when Fastpath is enabled.

Change-Id: If6dc9d5c4d4441d5edded582747c783a10f8c8d4
CRs-Fixed: 2226921
2018-05-16 08:36:16 -07:00
Aditya Sathish
7131fc8147 qcacmn: Fix for TX Unicast Packet Count Statistic
Fix for obtaining the correct value for the total unicast packets
transmitted.

Change-Id: I06071846f1dc3610cb8de1e73d7abcd869f2b172
CRs-Fixed: 2237301
2018-05-16 03:57:51 -07:00
Keyur Parekh
49cdc74b40 qcacmn: Modify SGI value in case of VHT SIG TLV
In VHT case, for some packets SGI value is 3, which
represent 3.2us value. Which is not applicable for VHT.
So if value 3 received from HW for SGI, than convert that
to default value, which is 0.4us.

Change-Id: I92716f8041f0db20b60dcd5e5d6681fa1bfa708f
2018-05-16 03:57:43 -07:00
Linux Build Service Account
5b9f08253e Merge "qcacmn: Fix possible OOB access while sending NAN msg to firmware" 2018-05-16 00:39:39 -07:00
Anish Nataraj
7b6d21f763 qcacmn: Populate Rx Raw, Tx Nawds multicast counters
Aggregate vdev level tx nawds multicast counter and rx raw
unicast packet counters from peer level

Change-Id: Iee466587d67286e5bf8f87e8ce516ce8e00e6f68
CRs-Fixed: 2233242
2018-05-16 00:28:33 -07:00
Chaithanya Garrepalli
9b3988c245 qcacmn: Populate rx raw stats at peer level
Add rx raw unicast packet counters from peer level

Change-Id: I13f9aaf5c62be86f5ba3cc750d5ee1ec698f424f
CRs-Fixed: 2233242
2018-05-16 00:28:28 -07:00
Vivek
adbfaa7c8d qcacmn: Account for temporary peers created in object manager
The wlan_max_peer count in the object manager currently
includes the count of temporary peers and actual peers
created on the target, and this could be used to limit the
actual numbers of peers created.

The result is that, for a given number of
peers configured the object manager limits
counting temporary peer also and not actual peers alone.

Indicate the count of actual peers and temporary peers
separately, to appropriately limit actual peers created.

Change-Id: Ia1593d702949853ad26756f167988ec70279eb87
CRs-Fixed: 2228250
2018-05-16 00:28:23 -07:00
Ashok Ponnaiah
adfce988a9 qcacmn: Add mgmt cipher in rsn ie
Mgmt cipher is not set when igtk key is set.

Set mgmt cipher for igtk set key in crypto params
and add mgmt cipher in RSN IE.

Change-Id: I9e18972b7dd614a3692c107e2d92ac2fc6110458
Crs-Fixed: 2239608
2018-05-16 00:28:18 -07:00
Naveen Rawat
92eefadac7 qcacmn: Fix possible OOB access while sending NAN msg to firmware
Fix possible OOB access while sending NAN msg to firmware, by checking
data len calculation against integer overflow and making sure data len
to be less than max wmi msg size.

Change-Id: I98f42b9924a1810282ae3bca031cd5a1e3dd4047
CRs-Fixed: 2205722
2018-05-15 19:05:59 -07:00