Граф коммитов

4800 Коммитов

Автор SHA1 Сообщение Дата
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
Linux Build Service Account
e6353c654e Merge "qcacmn: Release peer ref if mem malloc fails and reset system" 2018-05-15 16:37:17 -07:00
Om Prakash Tripathi
de062d80ca qcacmn: Release peer ref if mem malloc fails and reset system
Logically deleted peers are used by umac for host/fw
synchronization. Any failure to return logically
deleted peers is catastrophic and will end up in random
behavior/fw assert.
This change makes below changes:
1. Release peer reference on malloc failure
2. Reset system if malloc fails
3. Move print log level to FATAL

Change-Id: I229f0e83a97b44b4436b4f9945265dcaf85901fd
CRs-Fixed: 2240560
2018-05-15 15:38:21 -07:00
Linux Build Service Account
8ea70525aa Merge "qcacmn: add null checks in cdp_get_dp_htt_stats" 2018-05-15 12:39:05 -07:00
Chaithanya Garrepalli
396bbc8f6f qcacmn: add null checks in cdp_get_dp_htt_stats
Add null checks in cdp_get_dp_htt_stats for soc

Change-Id: Ifb158a33c1daddfb4aafa3fe4a88efbd57e70d48
CRs-Fixed: 2240121
2018-05-15 05:57:00 -07:00
Abhijit Pradhan
b847c69bf1 qcacmn: Do not process bangradar command in NON-DFS channel
FW, on receiving the bangradar command from host, suspends the
scheduler/tx-traffic and resumes only after the channel is switched.

For a bangradar in non-DFS channel, host does not send the channel
switch command. Hence, the tx_traffic are not  resumed.

When the user issues a bangradar, forward it to FW only if the current
channel is a DFS channel.

Change-Id: Id1f969dd7654e540a1c637632122cf2c6b543123
CRs-Fixed: 2225953
2018-05-15 04:34:01 -07:00
Tallapragada Kalyan
ee40c5657f qcacmn: handle mcast pkts in DBDC QWRAP mode
drop mcast pkts in DBDC QWRAP mode if its looped
back on a different pdev

Change-Id: Ia8a23d56e409c85f9c3be523da2041ab622dcb42
2018-05-15 04:33:58 -07:00
Venkata Sharath Chandra Manchala
4face24247 qcacmn: Generate pdev mask based on mac number
Set pdev mask in the HTT Stats request based on
mac id number provided from the user.

Change-Id: Ie8f1208fd3598efd2ea3736719c8b444ef86881a
CRs-Fixed: 2237467
2018-05-15 00:36:28 -07:00
Tushnim Bhattacharyya
54c0385480 qcacmn: Use channel and vdev_id array for get_mode_specific_conn_info
Use channel and vdev_id array while calling
policy_mgr_get_mode_specific_conn_info.

Change-Id: I64579e2b1af0eca47af5292d456367d059a461f5
CRs-Fixed: 2238386
2018-05-15 00:36:24 -07:00
Kai Chen
783e038223 qcacmn: Add monitor mode ppdu and mpdu stats
Add monitor mode status ring ppdu stats and destination
ring ppdu/mpdu stats

Change-Id: I702172f40ffc0915b630dd3781a697199bdd20fd
2018-05-14 21:54:53 -07:00