İşleme Grafiği

66 İşleme

Yazar SHA1 Mesaj Tarih
Nirav Shah
1b9674e21e qcacmn: umac: Add logging macros without function/line info
Add per module logging macros without function/line info
to avoid adding function/line info where it is not required.

Change-Id: I34ba6f6485f9b506264daf4e116052d2858bed40
CRs-Fixed: 2278876
2018-08-14 21:44:21 -07:00
Wu Gao
2ff1174914 qcacmn: Update TDLS feature flag when hanling FW ready event
It doesn't update TDLS feature flag when handling FW ready event, and
cause feature mismatch between FW and host. So update TDLS feature
feature flag when updating tdls configures.

Change-Id: Ib5978063581cac0f4c0ebc90f8981a5b68aed1da
CRs-Fixed: 2291311
2018-08-07 10:33:29 -07:00
Wu Gao
81c80a016f qcacmn: Define configures about TDLS
Based on converged cfg component, define TDLS configures and APIs to
get or set these configures.

Change-Id: I86f61246b810c7f25a74c814df20d0e2c810b292
CRs-Fixed: 2277559
2018-07-24 16:58:37 -07:00
Jingxiang Ge
2b64e4d5ff qcacmn: Fix use after free for vdev in tdls
When disconnect happens, TDLS_NOTIFY_STA_DISCONNECTION will be
send to scheduler_thread, in bad case, it is processed after
3s later, and the vdev passed in notify msg has been freed in
the period, invalid vdev causes invalid memory access.

change as below:
 1.1 Get vdev ref before send msg
 1.2 register callback for release ref
 1.3 send msg to scheduler_thread
 1.4 process tdls notify msg and call callback function.

Change-Id: I2b03db8b30db623796f2e8299f14ee31e28efb91
CRs-Fixed: 2275019
2018-07-23 09:41:55 -07:00
Nirav Shah
a175314c51 qcacmn: Map all module logs to per-level log APIs
Map all module level log APIs to per-level log APIs
to compile out specific log level if required.

Change-Id: I4072b6740cb43200fd95c40943b66e1d5f8f1847
CRs-Fixed: 2266719
2018-07-13 10:36:22 -07:00
Kiran Kumar Lokere
b49263bc0b qcacmn: Add support for SRD channels in ETSI domain
Add support for Short Range Devices 25 mW max power
channels in ETSI regulatory domain.

Add Short Range Devices 25 mW max power channels only
if DSRC feature is disabled.
Provide service apis to check SRD and DSRC channels.

Change-Id: Ib2a1d7cf191d07319cb29038ad60130f5cbe7f16
CRs-Fixed: 2264790
2018-07-05 20:49:34 -07:00
Bala Venkatesh
9bf4f33852 qcacmn: Avoid possible buffer overflow
In function tdls_ct_sampling_tx_rx, memcpy of
unknown length buffer is done into fixed size
struct array. Mem copying without checking
length can lead to buffer overflow.

Change-Id: I0608bd69d71ff1901f82b44d045963e9d383e6ce
CRs-Fixed: 2269276
2018-07-05 06:42:15 -07:00
Frank Liu
1a3151ed20 qcacmn: Post tdls connet/disconnect event to target_if queue
TDLS will update tdls firmware state according to STA connection status,
the change is to post tdls connect/disconnect event to target_if queue,
otherwise these events will be scheduled too late which would be out of
sync, cause unexpected results.

Change-Id: I76d70339f236b580bfb98fb1b8f5121784cb3465
CRs-Fixed: 2269978
2018-07-04 17:30:42 -07:00
Frank Liu
1113c5b649 qcacmn: Initialize tdls peer sta_id
TDLS sta_id check logic has changed, the value zero is valid, so
initialize the tdls peer sta_id as 0xff, otherwise add tdls peer
won't happen.

Change-Id: I805e4abdec8806f649d15da4f02980de9ffdc0ea
CRs-Fixed: 2263523
2018-07-02 13:52:48 -07:00
Kabilan Kannan
9248a4c4e2 qcacmn: Do not stop TDLS timers before restart
MC timer implementation has changed recently, and
it requires TDLS timers shouldn't be stopped before
restart.

Change-Id: I718972bd0f7c66b04145ee38c58440f6240a8de2
CRs-Fixed: 2223777
2018-06-21 15:27:04 -07:00
Bala Venkatesh
96bdde1b07 qcacmn: Fix TDLS tear down issue on initiator
The tdls peer sta id is allocated as part of wma_create_peer.
In HDD, as part of change interface,
wlan_hdd_tdls_disable_offchan_and_teardown_links API is called.
Here driver checks for valid TDLS peers based on staid.
Here HDD assumes staid zero as invalid and non zero values as
valid ID. This is not correct as staid zero also is a valid
staid. Due to this teardown status is not informed to upper layers.

Use 0xFF as invalid sta id for tdls peer to fix this issue.

Change-Id: I3827df9a63081952b2d443c175ef5a59eab85e43
CRs-Fixed: 2258171
2018-06-15 14:49:17 -07:00
Kabilan Kannan
cf124491c7 qcacmn: Remove unused data structures in TDLS component
Remove the unused data structures in TDLS component
to avoid incorrect usage

Change-Id: Id3997d5895dba8e3cb3f60fe102ca846cb009607
CRs-Fixed: 2232726
2018-06-14 02:56:47 -07:00
Frank Liu
f433b0787c qcacmn: Reject tdls_vdev create/destroy when disabled in INI
Reject tdls_vdev creation and destroy, when TDLS is disabled in INI.

Change-Id: Ie85e8ed231e14dc413e4bfdcff205c47115c84dd
CRs-Fixed: 2229872
2018-06-13 14:11:05 -07:00
Tushnim Bhattacharyya
0dd6eb531b qcacmn: Reduce log level to debug for tdls
Reduce the log level for tdls related logs from info to debug.

Change-Id: I0de4d0b4ae78a5b1c72c975d4d928cee7c21970f
CRs-Fixed: 2252980
2018-06-04 15:03:55 -07:00
Jeff Johnson
090ee9206c qcacmn: umac: Fix misspellings
Address the following issues in the umac folder:
CHECK: 'defintions' may be misspelled - perhaps 'definitions'?
CHECK: 'destory' may be misspelled - perhaps 'destroy'?
CHECK: 'faild' may be misspelled - perhaps 'failed'?
CHECK: 'initilization' may be misspelled - perhaps 'initialization'?
CHECK: 'managment' may be misspelled - perhaps 'management'?
CHECK: 'muticast' may be misspelled - perhaps 'multicast'?
CHECK: 'ouput' may be misspelled - perhaps 'output'?
CHECK: 'segement' may be misspelled - perhaps 'segment'?
CHECK: 'successfull' may be misspelled - perhaps 'successful'?
CHECK: 'untill' may be misspelled - perhaps 'until'?

Change-Id: If60c276c134ef10ce6be26cd5a4036d53d5724b6
CRs-Fixed: 2241586
2018-05-19 19:40:48 -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
Abhinav Kumar
daf261b2a9 qcacmn: Add break for few cases in tdls_process_mgmt_req
Currently break statement is missing for some cases in
tdls_process_mgmt_req.
Add break statement as fallthrough is not required for
these cases.

Change-Id: I9ef290cdea8980f1b550cfebfb80ee81c5a694c0
CRs-Fixed: 2233184
2018-05-14 17:59:56 -07:00
Kabilan Kannan
bb4f65bfb6 qcacmn: Serialize TDLS set state cmd to firmware
Serialize TDLS set command to firmware to avoid out
of sequence WMI commands.

Change-Id: Ia5d493b329dfa687e532797a5b47f3b82a0b3f76
CRs-Fixed: 2214605
2018-04-17 15:10:38 -07:00
Kabilan Kannan
0cc3fc4ad8 qcacmn: Fix compilation warnings in TDLS
Fix the warning issue in TDLS, which popped up with newer
compiler options.

Change-Id: I1516a47ec01faa9315d2045ebcfe49097680e80d
CRs-Fixed: 2215517
2018-04-02 16:41:55 -07:00
Tushnim Bhattacharyya
bf1e4f3f28 qcacmn: Use correct enum type in function call
Use correct enum type in tdls_determine_channel_opclass,
tdls_process_antenna_switch & tdls_process_send_mgmt_rsp.

Change-Id: Idd4e7ac47196e3e11971fe3013805b6a8551c8de
CRs-Fixed: 2214003
2018-04-02 16:41:47 -07:00
Jeff Johnson
3a7fda4ab0 qcacmn: Remove DPU signatures from TDLS Add STA Response
The ucast_sig and bcast_sig fields in struct tdls_add_sta_rsp date
back to a previous version of the driver that used these signatures to
synchronize the data plane with the control plane. However the current
version of the driver does not use these parameters, so remove them as
the final stage of the plan to completely remove these signatures from
throughout the driver.

Since the converged struct tdls_add_sta_rsp must exactly match the
legacy tSirTdlsAddStaRsp data structure, this change is co-dependent
with the qcacld-3.0 change:
  qcacld-3.0: Remove DPU signatures from TDLS Add STA Response
  Change-Id: I765b090fc5dbe9bdaf83b05a72223c0a12f71a18

Change-Id: I7750fac9e4870d75358606bea427a5dbab97c665
CRs-Fixed: 2200973
2018-03-13 18:41:57 -07:00
Jeff Johnson
6d906fa7ab qcacmn: Remove obsolete TDLS signature
Change "qcacmn: Remove obsolete TDLS peer callback interface"
(Change-Id I32bb1f633b1dd1514aa6e4c3fdea044b3bca0009) removed the
obsolete logic that utilized the TDLS signature field, so remove all
remaining traces of it.

Change-Id: I731c81a0b1f7e5d885cfa18a551ad0d3af3cecbe
CRs-Fixed: 2200972
2018-03-12 15:57:45 -07:00
Jeff Johnson
0e2f7657a2 qcacmn: Remove obsolete TDLS peer callback interface
Change "qcacmn: Introduce new versions of TDLS peer callbacks"
(Change-Id Id4ea23266b0f3e1480b645c5afce6c17585ccb46) introduced a new
interface which removed an unused parameter and changed obsolete
naming.

Subsequently change "qcacld-3.0: Use new TDLS peer callback interface"
(Change-Id: I5c4684ac0a62f314da26f92ece2c9a9874d63634 in project
qcacld-3.0) updated the only registrant to use the new interface. Now
that the old interface is no longer being used, remove it.

Change-Id: I32bb1f633b1dd1514aa6e4c3fdea044b3bca0009
CRs-Fixed: 2200971
2018-03-12 15:57:43 -07:00
Jeff Johnson
3051831c3e qcacmn: Introduce new versions of TDLS peer callbacks
The parameters to function typedef tdls_register_tl_peer_callback()
currently includes ucastsig.  This "unicast signature" parameter dates
back to a previous version of the driver that used signatures to
synchronize the data plane with the control plane. However the current
version of the driver does not use this mechanism, so there is a
desire to remove this parameter from the callback.

In addition both typedef tdls_register_tl_peer_callback() and typedef
tdls_deregister_tl_peer_callback() suffer from poor naming since the
"_tl_" in the names refers to a datapath component that was present in
an older version of the driver but which is no longer present.

Therefore introduce a new version of these typedefs with better naming
and which removes the ucastsig parameter.

Use temporary conditional compilation to allow support for both the
old and new interfaces until such time as all registrants have
converted to the new interfaces. This is part of the plan to
completely remove the obsolete unicast and broadcast signatures from
throughout the driver.

Change-Id: Id4ea23266b0f3e1480b645c5afce6c17585ccb46
CRs-Fixed: 2200931
2018-03-12 09:35:32 -07:00
Kabilan Kannan
0e95ca191b qcacmn: Fix memory leak in TDLS rx mgmt callback
TDLS RX management callback needs to be registered
only during driver load time.
Remove the redundant callback registration.

Change-Id: Iee0e781ade2a4dafaaf372e8a9078347493418df
CRs-Fixed: 2185908
2018-02-23 12:54:43 -08:00
Dustin Brown
490d818d1d qcacmn: Replace QDF_MAC_ADDRESS_STR
QDF_MAC_ADDRESS_STR has been depreciated in favor of
QDF_MAC_ADDR_STR. Replace all usages with the new macro.

Change-Id: I534923783a32288f7861caf9ae52ca3aac965809
CRs-Fixed: 2179126
2018-01-25 23:39:30 -08:00
Arif Hussain
23a5265cc3 qcacmn: tdls: Fix instances of unadorned %p
Fix instances of unadorned %p in tdls.

Change-Id: I5faad47ad7bdcc6f079466c277a88b5a21719e2c
CRs-Fixed: 2170907
2018-01-24 17:33:57 -08:00
Zhu Jianmin
1d325746a4 qcacmn: Avoid using tdls_soc_obj after it has been freed
Object tdls_soc_obj is being used ever after it has been freed
which creates stability issue.

Fix it by returning up on releasing the memory.

Change-Id: I0b3faf2435396f2e3cd92bc18afc263f3280eae3
CRs-Fixed: 2164332
2018-01-23 13:40:14 -08:00
Kabilan Kannan
08ed905713 qcacmn: Fix TDLS wpa2 teardown failures
TDLS teardown request from the DUT is dropped
in the peer, due to invalid MIC in the
teardown frame.
TDLS responder value is not set correctly in TDLS
teardown frame, and it causes MIC failures in the
peer device.
Set the correct responder value in TDLS
teardown frame.

Change-Id: Ibe056c89f644c094a10f7a5eb51b6d90a13a4a01
CRs-Fixed: 2155555
2018-01-19 05:24:52 -08:00
Frank Liu
37243d354a qcacmn: Fix tdls KW issues
Fix static code analysis issues in tdls component:

NULL pointer dereference
    - tdls_process_antenna_switch
    - tdls_antenna_switch_flush_callback
    - tdls_indicate_teardown
    - ucfg_tdls_notify_sta_connect
    - ucfg_tdls_notify_sta_disconnect
    - ucfg_tdls_set_operating_mode

Change-Id: I3bb72658dcd3116f6f64da15a7039f49157a0f3f
CRs-Fixed: 2169736
2018-01-17 23:38:05 -08:00
Kiran Kumar Lokere
91ad019921 qcacmn: Correct the log level for debug messages
Correct the log level for debug messages

Change-Id: I847d606ea28b382c1dd449221f72822cf37f2be8
CRs-Fixed: 2160779
2017-12-19 14:15:07 -08:00
Kabilan Kannan
529d3e8a7c qcacmn: Fix the TDLS command process map
TDLS command processing incorrectly fall through
to the wrong command, and it causes the crash
in the system.
Fix the mapping in TDLS process command
function

Change-Id: I296e10f92e283a813259e1f33143d09bcf3ab39b
CRs-Fixed: 2159351
2017-12-18 17:37:14 -08:00
Yun Park
11d46e0476 qcacmn: Optimize data path logging
Remove or lower log level to reduce log from data path which affects
to TPUT.

Change-Id: I7d4344c80cefb4a9539644ef50ff2074d80d6548
CRs-Fixed: 2143250
2017-12-07 22:34:10 -08:00
Frank Liu
283a2f4221 qcacmn: Dynamic antenna switch in TDLS operation
Support dynamic antenna switch in TDLS:
1. If TDLS NSS is configured to be 1x1, TDLS connections not teardown;
2. When antenna mode switched from 2x2 to 1x1, TDLS connections teared
down and EAGAIN returned; When antenna mode switched from 1x1 to 2x2,
TDLS connections is still teardown, but success in one trial.

Change-Id: I1877002122a96dc8f40c796f8a1b938199d3b67a
CRs-Fixed: 2080461
2017-12-04 23:39:02 -08:00
Kabilan Kannan
70113f22aa qcacmn: Add TDLS user command getTDLSPeers
Add TDLS user command getTDLSPeers for TDLS functional verification

Change-Id: Ia02461a364ca604672d728f7dad7c3537e78f067
CRs-Fixed: 2146626
2017-11-20 16:27:00 -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
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
Jeff Johnson
a4262320ce qcacmn: Use enum QDF_OPMODE
Change "qcacmn: Rename enum tQDF_ADAPTER_MODE" (qca-wifi-host-cmn
Change-Id I20f1b6d1a0ab4b8fe6a85cefdff96a49e2f4652c) renamed enum
tQDF_ADAPTER_MODE to QDF_OPMODE. Update all references to use the
new name.

Change-Id: Ic6f663dac11a100f168b2626c7c0fbcaccbfca4f
CRs-Fixed: 2141061
2017-11-09 23:42:58 -08:00
Kabilan Kannan
1caffee64c qcacmn: Fix the invalid memory access issue in TDLS
Additional IE's in the TDLS management request is not
populated correctly and it causes invalid memory
access and system crash.
Populate the additional TDLS IE's in correct
order.

Change-Id: I1c65f04c3b0e134dc4854e3f16022c887e8ce7c0
CRs-Fixed: 2136739
2017-11-09 10:46:52 -08:00
Frank Liu
f54299ee6f qcacmn: Send TDLS frames with lower AC
If ACM enabled and access is not granted for AC_VI, then send
TDLS frames with lower access category instead of dropping them.

Change-Id: I2201536dc4475764f33eebce1faa0a7df0b2c454
CRs-Fixed: 2119433
2017-10-24 15:38:24 -07:00
Kabilan Kannan
52a3a3ad05 qcacmn: Fix TDLS set state cmd sequence in concurrent TDLS connections
TDLS set state cmd to firmware is going out of sequence, if STA
is disconnected, when concurrent TDLS connections are active.
This out of sequence causes crash in the firmware.
Fix the out of sequence issue, by grouping all the TDLS delete
peer commands into one single command.

Change-Id: Idd315d544c46bcf063881bff5be70cb5d9ad0ea2
CRs-Fixed: 2123838
2017-10-23 08:06:24 -07:00
Kabilan Kannan
60e3b3062d qcacmn: Add host data path functions for TDLS
Add and enable host data path functions for Napier
TDLS.

Change-Id: I228c2dcf4e8d797d173007a3306d112aca5ba52f
CRs-Fixed: 2114813
2017-10-05 19:59:55 -07:00
Jeff Johnson
878533e29b qcacmn: umac: Replace instances of unadorned %p
Replace instances of unadorned %p in umac.

Change-Id: I7ae33c51405b31df24670dee3c98b6b4f1da9ab4
CRs-Fixed: 2111274
2017-10-03 16:02:30 -07:00
Kabilan Kannan
ce76a35340 qcacmn: Fix TDLS peer capability initialization
In tdls_set_peer_caps(), is_buffer_sta and is_off_channel_supported are declared,
but are not initialized. This will create unpredictable problem in TDLS
operations.
Initialize all the variables with default values in peer capability.

Change-Id: I469d7a56e1222944f3cd76efb76544aba7d8dff6
CRs-Fixed: 2092034
2017-09-22 03:57:41 -07:00
Varun Reddy Yeturu
eea59a38ac qcacmn: Add vdev as argument to wlan_serialization_comp_info_cb
Add an additional argument to wlan_serialization_comp_info_cb to pass
the vdev information while filling the information required to apply the
rules.

Change-Id: I44dadc01108e746fd2ce6353a90cdf9401dd6d06
CRs-Fixed: 2090987
2017-08-13 16:16:06 -07:00
Kabilan Kannan
298329e692 qcacmn: Restructure TDLS function to fix the compilation issue
When TDLS disabled at the build level, it triggers
build failures in some of the projects, which does
not support TDLS feature.
Restructure the TDLS function to avoid build
failures, when TDLS is not enabled.

Change-Id: I3b63546f22d0187fb42d400fd7e15ff7a3d64653
CRs-Fixed: 2056022
2017-08-08 16:05:06 -07:00
Vivek
b02a649f89 qcacmn: Remove vdev/peer locks for trivial APIs
Remove vdev/peer locks from trivial API's. This follows the changes from
which the lock requirement from few simple APIs are removed.

Change-Id: I9972d51dfd1a42bdedbfd0fd4e67af03d030a1f5
CRs-Fixed: 2060880
2017-06-26 23:32:22 -07:00
Vivek
5ec0bd3636 qcacmn: Remove psoc/pdev locks for trivial APIs
Remove psoc/pdev locks from trivial API's. This follows the changes from
which the lock requirement from few simple APIs are removed.

Change-Id: Ib5769c2234c8d57f485c0eef5a4e3c61fa170508
CRs-Fixed: 2060880
2017-06-26 23:32:19 -07:00
Kabilan Kannan
ac7731fc62 qcacmn: Fix TDLS set state cmd sequence for roaming
Firmware expects TDLS set state cmd before vdev stop, but
the cmd is going out of sequence during roaming and induce
crash in the system.
Send the TDLS set state cmd with correct sequence.

Change-Id: Ie106b8a8cebaa7f107c9eff67dda924b231162da
CRs-Fixed: 2048036
2017-05-17 21:07:33 -07:00
Kabilan Kannan
56bfd8fdb3 qcacmn: Update address search flags for TDLS
Add support to set address search flags in WLAN Tx Descriptor
for TDLS operation

Change-Id: Iafb15fb1efd84a4bef436062368401a5496e4468
CRs-Fixed: 2041759
2017-05-05 00:27:20 -07:00