Commit Graph

14173 Commits

Author SHA1 Message Date
Sourav Mohapatra
d204a81b4b qcacld-3.0: Populate proper rates received by FW
Due to unknown legacy reason, the rates received by the driver from the
firmware are currently divided by 500 to convert it into units of
500kbps. This division by 500 is later compensated by a multiplication
with 5 to maintain units of 100kbps before being sent to the upper
layer. This division and then subsequent multiplication results in the
loss of precision (in the case the rate is not divisible by 5).
Consequently, the rate being sent to the upper layer becomes inaccurate.
Also the calculation of the MCS rate flags is affected.

Do not carry out the unnecessary division and multiplication by 5.
Instead just convert the rates into units of 100kbps (which is as
mandated by the kernel) when driver receives the rate from the firmware.

Change-Id: I05e67816651754e3b3e27b13dabc1d55b29251dd
CRs-Fixed: 2378166
2019-01-11 18:07:58 -08:00
nshrivas
3d27ab89c2 Release 5.2.0.115N
Release 5.2.0.115N

Change-Id: I27355a758f7f2ad8777a2dc06a4b7a9d195d6564
CRs-Fixed: 774533
2019-01-11 15:58:16 -08:00
Sandeep Puligilla
43b6d1ac88 qcacld-3.0: Refactor MTRACE CFG item
Refactor MTRACE CFG item
CONFIG_MTRACE_ENABLE

Change-Id: Id1b624d243126495990b8b693ad93df36599e11a
CRs-Fixed: 2362662
2019-01-11 15:58:16 -08:00
Yeshwanth Sriram Guntuka
fd265b2213 qcacld-3.0: Remove slub debug factor for WMA timeouts
In the scenario where vdev response is not received for
SAP start, HDD timer of 10secs expires ahead of vdev
response timer, which is of 12secs due to slub debug
factor. This can result in change interface to be
triggered by supplicant before fw down indication is
received. Vdev is logically deleted and peer removal
in objmgr fails due to vdev get_ref failure resulting
in peer leak on wlan shutdown.

Fix is to remove slub debug factor for vdev response
timeouts.

Change-Id: Id0741226ccaebbabb817853246c7b116bd447128
CRs-Fixed: 2376610
2019-01-11 15:58:12 -08:00
wadesong
eb865bb051 qcacld-3.0: Add a missing increment for fw module id
When host driver is setting the fw log level, there is a chance
for the loop to be unable to exit when a certain fw module's
log level is incorrectly set.

Add an additional increment to the fw module id when a certain
fw module's log level is incorrectly set.

Change-Id: Id5a0268536a4d6b74732515dac43f583174c9e51
CRs-Fixed: 2378208
2019-01-11 15:58:09 -08:00
Liangwei Dong
c79ddc1bff qcacld-3.0: remove unused get config API
Remove below unused policy mgr get config api:
ucfg_policy_mgr_get_dbs_selection_plcy
ucfg_policy_mgr_get_max_conc_cxns
ucfg_policy_mgr_get_vdev_priority_list

Change-Id: Idd5ad140f3739ece1d7c0fe5ae1db1dbe9154c4f
CRs-Fixed: 2373646
2019-01-11 15:58:05 -08:00
nshrivas
0f6b67a042 Release 5.2.0.115M
Release 5.2.0.115M

Change-Id: I8fa637f283beb72573d3d070f6a13440d7cbf339
CRs-Fixed: 774533
2019-01-11 13:37:25 -08:00
Jeff Johnson
5c6e19a5b4 qcacld-3.0: Remove HAL_NUM_BSSID
Macro HAL_NUM_BSSID is unused, so remove it.

Change-Id: I27af9b314c83af59fa961bdc2c6c759e5838430f
CRs-Fixed: 2378333
2019-01-11 13:37:25 -08:00
Jeff Johnson
91f32b1a2b qcacld-3.0: Remove HAL_MAX_SUPP_CHANNELS/OPER_CLASSES
Change I2a28564ccb5ad85d65a62a5e9f0ac6c500a80c2d ("qcacld-3.0: Remove
struct sTdlsLinkEstablishParams") removed the only usage of macros
HAL_MAX_SUPP_CHANNELS and HAL_MAX_SUPP_OPER_CLASSES. Since these are
obsolete, remove them.

Change-Id: Ib31ef84d69b48ba095bf587c51003911a2a3b85e
CRs-Fixed: 2378332
2019-01-11 13:37:21 -08:00
Jeff Johnson
2295019a9b qcacld-3.0: Remove HALMSG_NUMBYTES_STATION_BITMAP
Change I77617df14093806f19c0d587e953f63ae86f8ffe ("qcacld-3.0: Cleanup
the unused quiet timers and TX control API") removed the only usage of
macro HALMSG_NUMBYTES_STATION_BITMAP. Since it is obsolete, remove it.

Change-Id: I5a232962a9a85f7af9b82261d70cd8a3e56413b8
CRs-Fixed: 2378331
2019-01-11 13:37:16 -08:00
Jeff Johnson
66d9fad9d4 qcacld-3.0: Revamp tBeaconGenParams
Currently all but one of the fields in tBeaconGenParams are unused. In
addition the one field that is used, as well as the struct itself, do
not conform to the Linux coding style. Therefore replace the typedef
with a properly named struct which contains a properly named field.

Change-Id: I246f45831854db07d5ff6835a1df222e771a5146
CRs-Fixed: 2378330
2019-01-11 13:37:12 -08:00
Jeff Johnson
54e533d073 qcacld-3.0: Remove umac_ota_ack_cb[] from t_wma_handle
Change I414269abb5a5c616cc890dab450a7782e6829d0e ("qcacld-3.0:
Management MGMT TXRX component over HTT") removed all usage of the
legacy umac_ota_ack_cb[] array in t_wma_handle. However it left behind
the actual unused array, so remove it.

Change-Id: Ia909360edefeb413025e8d437199a3f21c808030
CRs-Fixed: 2378329
2019-01-11 13:37:08 -08:00
Jeff Johnson
42246bdd77 qcacld-3.0: Remove sme_set_prefer_80MHz_over_160MHz() prototype
Support for 80 MHz preference was relocated to the MLME
component. Change Ia5989a29378bf33e3c9550a0ae26338aeb966592
("qcacld-3.0: Apply mlme sta configuraions") removed the now
obsolete implementation of sme_set_prefer_80MHz_over_160MHz(),
but failed to remove the prototype, so remove it now.

Change-Id: Id32a1feb5ac55492ae0b76d4dc75867bbe834b4a
CRs-Fixed: 2378328
2019-01-11 13:37:04 -08:00
Jeff Johnson
2d4ec97ad0 qcacld-3.0: Remove rate_set fields from struct sap_context
Change I3226438b908a96f1b1bd3c2968a0c20eef81a799 ("qcacld-3.0:
Populate correct supported rates from hostapd.conf file") removed
the logic which previously utilized the supp_rate_set and
extended_rate_set fields in struct sap_context. Since these fields
are now obsolete, remove them.

Change-Id: Id433659da18d61217b45a839aaddcfbae329143d
CRs-Fixed: 2378327
2019-01-11 13:37:00 -08:00
Jeff Johnson
a2a04c7b4c qcacld-3.0: Remove sap_roc_ind from tSap_Event
Change I83a704d3f03e9cb9e6a7420f32d609a323799a12 ("qcacld-3.0: Remove
legacy P2P codes in SAP") removed the usage of the sap_roc_ind field
in tSap_Event. Since it is obsolete, remove the field along with the
underlying struct sap_roc_ready_ind_s.

Change-Id: I6101ec7874825b8e4e2e891c3f8ae084486eef87
CRs-Fixed: 2378326
2019-01-11 13:36:57 -08:00
Jeff Johnson
380e21f99b qcacld-3.0: Remove typedef tSetLinkCbackParams
Typedef tSetLinkCbackParams is obsolete, so remove it.

Change-Id: I5843d65eb0d11a89f34696f12f67ea0cff9b62e4
CRs-Fixed: 2378325
2019-01-11 13:36:53 -08:00
Jeff Johnson
bcb64bcc12 qcacld-3.0: Remove lim_send_addts_rsp_action_frame() prototype
The driver has a lim_send_addts_rsp_action_frame() prototype, but not
an implementation. Since the prototype is obsolete, remove it.

Change-Id: Ib4e8a6d1d33c1e5d39e9801a883486a12f030f17
CRs-Fixed: 2378324
2019-01-11 13:36:50 -08:00
Jeff Johnson
c855bbd736 qcacld-3.0: Remove psstate from tPowersaveoffloadInfo
The psstate field in tPowersaveoffloadInfo is unused, so remove it,
along with the underlying tPowersaveState typedef.

Change-Id: I0328bcce9362d4fb0786b36644b3152f979eef30
CRs-Fixed: 2378322
2019-01-11 13:36:46 -08:00
Jeff Johnson
a642b582c7 qcacld-3.0: Remove tLimMlmOemDataReq & tLimMlmOemDataRsp
Changes I151fa771544e9f74b1b69b18d689176752760621 ("qcacld-3.0: Remove
oem data request passing over multiple layers") and
I95078c985c5034d9d530ad542ace129309d79886 ("qcacld-3.0: Remove global
oem data request/response buffer") removed all usage of typedefs
tLimMlmOemDataReq & tLimMlmOemDataRsp. Since they are obsolete, remove
them.

Change-Id: If387f77177cfececc04f4c8ccc64efbc80505431
CRs-Fixed: 2378321
2019-01-11 13:36:43 -08:00
Jeff Johnson
d8ae59ef38 qcacld-3.0: Remove tLimQuietTxMode & tLimControlTx
Change I77617df14093806f19c0d587e953f63ae86f8ffe ("qcacld-3.0: Cleanup
the unused quiet timers and TX control API") removed the usage of
typedefs tLimQuietTxMode & tLimControlTx. Since they are obsolete,
remove them.

Change-Id: I503b6c63d8440fe9aa80d8d38c19d49654621cc3
CRs-Fixed: 2378320
2019-01-11 13:36:40 -08:00
Jeff Johnson
026e6af795 qcacld-3.0: Remove obsolete message & event IDs
A large number of the legacy message & event IDs are obsolete, so
remove them.

Change-Id: Icd73b1a67cbf8b6815881fe5829bb1702114fe6e
CRs-Fixed: 2378323
2019-01-11 13:36:36 -08:00
Jeff Johnson
1679c93d78 qcacld-3.0: Remove unused legacy SIR Module IDs
Most of the SIR_*_MODULE_ID values are unused, so remove the ones that
are obsolete.

Change-Id: I97f40b37bda9639be359a3a3dbdcf26d06c6c73d
CRs-Fixed: 2378318
2019-01-11 13:36:32 -08:00
Jeff Johnson
a2f8e8fe2c qcacld-3.0: Harmonize legacy PMM and SME definitions
The PMM module and message definitions are not used by the current
version of the driver. However the message ID number space overlaps
with the SME message IDs. In order to harmonize the code:
- Remove the legacy PMM Module & Message ID definitions
- Consolidate the SME Module & Message ID definitions
- Update the dispatch logic to correctly indicate it is SME and not
  PMM messages which are being dispatched

Change-Id: Idcf66633c2060e52e930addaa8cecb3faf89bc90
CRs-Fixed: 2378317
2019-01-11 13:36:28 -08:00
Jeff Johnson
942d6326f9 qcacld-3.0: Remove legacy MNT definitions
The MNT module and message definitions are not used by the current
version of the driver, so remove them

Change-Id: I2840996caffdf24e4ddbe7a3a0b7d7c7f70f509a
CRs-Fixed: 2378316
2019-01-11 13:36:25 -08:00
Jeff Johnson
bdcf63d52a qcacld-3.0: Remove wlan_hdd_request_station_stats() prototype
Change Id685e9d94f185ee562f21d12d118e94a737a6a7e ("qcacld-3.0: Add
implementation of get_station_stats") added a prototype for function
wlan_hdd_request_station_stats() but did not add an implementation. As
a result the prototype is pointless, so remove it.

Change-Id: Idc9228bc75a8b1fae9681a1ecf290fa5f37c74f3
CRs-Fixed: 2378315
2019-01-11 13:36:21 -08:00
Jeff Johnson
1ba9d44e02 qcacld-3.0: Remove MIN_TIME_REQUIRED_FOR_NEXT_BUG_REPORT
Change Ia8b85548ff64ad77b5066fe03229e2b0b2f7fae3 ("qcacld-3.0: Remove
legacy scan complete callback") removed the usage of macro
MIN_TIME_REQUIRED_FOR_NEXT_BUG_REPORT. Since it is obsolete, remove
it.

Change-Id: I7b3a79bdd9945e6fae8406d2bc038b0105139faa
CRs-Fixed: 2378314
2019-01-11 13:36:18 -08:00
Jeff Johnson
619a877fdc qcacld-3.0: Remove macro MAX_RATES
Change I05ccc13d1b658e62b19a389e6a480707b5c446b9 ("qcacld-3.0:
Remove wext support for scan commands") removed the usage of
macro MAX_RATES. Since it is unused, remove it.

Change-Id: I3c15363a7ac8f82354bafefb82b14eb83ff6666d
CRs-Fixed: 2378313
2019-01-11 13:36:14 -08:00
nshrivas
10fec793ee Release 5.2.0.115L
Release 5.2.0.115L

Change-Id: I7b1ef8695c2df598ab97f018a8b996c47430116e
CRs-Fixed: 774533
2019-01-10 19:42:11 -08:00
Dustin Brown
26ef417482 qcacld-3.0: Fix race in DSC threaded unit test
Very occasionally, the driver transition thread for the DSC race
condition unit test can be preempted before queuing the driver
transition. This leads to the transitions de-queuing in an unexpected
order, causing the test to fail. In order to close the race window, a
thread would have to set its event _after_ blocking on a pending
transition, which is impossible. So, rather than using events to
synchronize the different threads in this test case, use polling to
ensure the different transitions are queued in the appropriate order.
If the given condition is not met, call schedule() to give the other
threads a greater chance to run.

Change-Id: I05edfa9200ca7831926153f3ff0ec9dbbbab3fed
CRs-Fixed: 2378469
2019-01-10 19:42:10 -08:00
gaurank kathpalia
1dea75b34d qcacld-3.0: Fix channel numbers in SAP ACS 80MHZ channel bonding
currently the driver just ignore the channel numbers greater
than 165 for 80MHZ channel bonding, which results in best
channel selected as 169, 173 in 20MHZ bandwidth as the
respective channels does not support 80, or even 40 MHZ
channel bandwidth.

Fix is to assign the maximum weight to channel numbers greater
than 165, so that they do not get selected as best channel
for 80MHZ bandwidth operation.

Change-Id: I44c5073a806f39d98103681267faa317a6b6d73b
CRs-Fixed: 2375375
2019-01-10 19:42:06 -08:00
Wu Gao
a796d7153a qcacld-3.0: Refactor one WNI cfg and two INI cfg about PMO
Based on new cfg framework, refactor below WNI and INI cfg items:
 - WNI_CFG_PS_WOW_DATA_INACTIVITY_TIMEOUT
 - g_wow_data_inactivity_timeout
 - gDisablePacketFilter

Change-Id: I9a975263021ba4fd5ccea19ed1147a661f73317f
CRs-Fixed: 2375866
2019-01-10 19:42:02 -08:00
nshrivas
66c189742e Release 5.2.0.115K
Release 5.2.0.115K

Change-Id: Ifcc5641600b94ab07caba4a6cec5b76306340b00
CRs-Fixed: 774533
2019-01-10 14:34:02 -08:00
Sravan Kumar Kairam
8433f90213 qcacld-3.0: Fix cdp api cdp_tx_desc_thresh_reached
The CDP api cdp_tx_desc_thresh_reached should return true
if the available data path tx desc reaches threshold. But
this api returns wrong value in case of helium targets. Fix
this by returning correct value.

Change-Id: I571841ab1e4a4b24242fadc21bd13a85ef8da781
CRs-Fixed: 2378898
2019-01-10 10:33:29 -08:00
nshrivas
e188f79176 Release 5.2.0.115J
Release 5.2.0.115J

Change-Id: Icd9b42159e7677eee33e6d856b6b40d43029581b
CRs-Fixed: 774533
2019-01-10 07:37:17 -08:00
Sandeep Puligilla
387709f197 qcacld-3.0: Remove CFG item WNI_CFG_STA_ID
Remove unused CFG item WNI_CFG_STA_ID

Change-Id: I51da5888f718cdfb5eb0b77146726f0b6b19360d
CRs-Fixed: 2376089
2019-01-10 07:37:16 -08:00
nshrivas
d37b34f177 Release 5.2.0.115I
Release 5.2.0.115I

Change-Id: I1c835380cc409df782b1ed0b436172eb5b10fca0
CRs-Fixed: 774533
2019-01-09 13:25:58 -08:00
Yeshwanth Sriram Guntuka
3c1399ae64 qcacld-3.0: Remove unused fields in sCsr11rAssocNeighborInfo
numBssFromNeighborReport and neighboReportBssInfo
fields in sCsr11rAssocNeighborInfo structure are
set to 0 in multiple places but are not referenced
or overwritten.

Fix is to remove the unused fields in sCsr11rAssocNeighborInfo.

Change-Id: I1aa0e58fd8407d1f96f0bb30a122e1626051d4c3
CRs-Fixed: 2376398
2019-01-09 13:25:57 -08:00
nshrivas
6c0f84c3f6 Release 5.2.0.115H
Release 5.2.0.115H

Change-Id: I0ac869d9d1cc6717151b6ac8edd1ccd7f1fe0b48
CRs-Fixed: 774533
2019-01-09 10:34:56 -08:00
Yeshwanth Sriram Guntuka
261ac4d56e qcacld-3.0: Remove redundant logic in csr_is_valid_channel
sapDfsChannelNolList and numCurrentRegDomainDfsChannels
fields in sap dfs info is not populated and is used in
csr_is_valid_channel.

Fix is to remove the redundant logic in csr_is_valid_channel.

Change-Id: Ib98423ba910a1947a908f4a74762f82183aa89d5
CRs-Fixed: 2374080
2019-01-09 10:34:56 -08:00
Yeshwanth Sriram Guntuka
cba75498f2 qcacld-3.0: Send failure code in start_ap return path on failure
Start_ap failure due to no vdev start response is indicated
to supplicant using wext event instead of sending the
proper error code in return path of start_ap API. This
results in supplicant ending up in ap-enabled state since
wext events are not handled by supplicant.

Fix is to send the error code in return path of start_ap API
instead of sending wext event to indicate start AP failure.

Change-Id: I1c65aa65641c0ab718c734bd815ef790b1dfa636
CRs-Fixed: 2369681
2019-01-09 10:34:51 -08:00
nshrivas
ae34624a68 Release 5.2.0.115G
Release 5.2.0.115G

Change-Id: I1be1b26e221c5208ee9438fe18aec5a319e3ba0d
CRs-Fixed: 774533
2019-01-09 08:23:02 -08:00
Pragaspathi Thilagaraj
e6f37e066e qcacld-3.0: Disconnect the other sta vdev before vdev destroy
During vdev destroy, if any STA is in connecting state the
roam command will be in active queue and thus vdev destroy is
queued in pending queue. In case STA tries to connect to
multiple BSSID and fails to connect, due to auth/assoc
timeouts it may take more than vdev destroy time to get
completed. If vdev destroy timeout vdev is moved to logically
deleted state. Once connection is completed, vdev destroy is
activated and to release the self-peer ref count it try to
get the ref of the vdev, which fails as vdev is logically
deleted and this leads to peer ref leak.

So before vdev destroy is queued abort any STA ongoing connection
to avoid vdev destroy timeout.

Change-Id: Ibd1ea555616ba22179f3663a082f5281220ab918
CRs-Fixed: 2375712
2019-01-09 08:23:02 -08:00
Jianmin Zhu
4bcf8378c0 qcacld-3.0: Check and update hw mode after key compelete
If Connect candidate has two or more APs in different band,
switch to DBS firstly. After associated 5G AP, will check and
try to switch to single MAC mode.  But during DUT STA-AP key
negotiation, set hw mode cmd is refused to avoid EAPOL fail.

Fix: Check and change hw mode in hdd roam set key complete
handler, after EAPOL handshake finished

Change-Id: I63a2fb9eb49a4e209c68d5305bcf82fa26d3ea65
CRs-Fixed: 2377066
2019-01-09 08:22:58 -08:00
nshrivas
e1285d6f5d Release 5.2.0.115F
Release 5.2.0.115F

Change-Id: I1eac5c7e2964aecbb98785c646f41cc1f480653e
CRs-Fixed: 774533
2019-01-09 06:11:32 -08:00
Yue Ma
a66ccb8e2a qcacld-3.0: Do not directly call QDF_BUG in PMO
Use qdf_trigger_self_recovery instead of QDF_BUG for runtime PM
resume failure case as qdf_trigger_self_recovery can handle more
scenarios gracefully.

Change-Id: Iff0348fafb1be82f46400099e3cd551c079eea74
CRs-fixed: 2377677
2019-01-09 06:11:32 -08:00
nshrivas
090fd179f6 Release 5.2.0.115E
Release 5.2.0.115E

Change-Id: I23a671233c34b075a23ff91c3a36d1afa06d5f9d
CRs-Fixed: 774533
2019-01-09 03:39:52 -08:00
Jeff Johnson
f6ce1624d6 qcacld-3.0: Remove macro HDD_WAKE_LOCK_SCAN_DURATION
Change Ic160dfafcfa015eb42a226304260b1be3dddc6f0 ("qcacld-3.0: cleanup
legacy scan request processing") removed the usage of macro
HDD_WAKE_LOCK_SCAN_DURATION. Since the macros is unused, remove it.

Change-Id: I5f34f09f144115fa217d8c2d3c67268c28f69ecc
CRs-Fixed: 2376945
2019-01-09 03:39:51 -08:00
Jeff Johnson
fd9a554500 qcacld-3.0: Replace lingering reference to tHddChannelInfo
As part of change Ic280113327e24a8934b0895c12b39ed7b4f73df6
("qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_oemdata.h")
references to typedef tHddChannelInfo were replaced with references to
struct hdd_channel_info. However one reference was missed, so replace
that one as well.

Change-Id: Ib31aa3cbe6cc14fbdeb0e17a51aba92b7c2bdd20
CRs-Fixed: 2376944
2019-01-09 03:39:44 -08:00
Jeff Johnson
f187969fab qcacld-3.0: Fix typo "neighbor_scan_max_chan_timee"
Change Id39629e33e87ffe6ed58f375609a55e324618693 ("qcacld-3.0: Apply
second part of LFR INIs changes in HDD layer") contains a typo
"neighbor_scan_max_chan_timee". Fix the typo so that the code will
build if DSRC is enabled.

Change-Id: I2a8d8f7f619f825d16fc892913fd409ee8a04c97
CRs-Fixed: 2376943
2019-01-09 03:39:36 -08:00
Jeff Johnson
dd9e61afa4 qcacld-3.0: Remove IS_UP() and IS_UP_AUTO()
Macros IS_UP() and IS_UP_AUTO() are unused, so remove them.

Change-Id: Iff45b84b30ee71ffd41e0033ed80be2f9fba966d
CRs-Fixed: 2376942
2019-01-09 03:39:28 -08:00