Commit Graph

14152 Commits

Author SHA1 Message Date
gaurank kathpalia
97c070b5da qcacld-3.0: Enable/disable first DFS channel scan through ini
Currently the driver includes all the DFS channels as part of scan
in the scan list, and thus not exclude the DFS channels in the first
scan for faster scan.

Fix is to check the ini, for first DFS channel scan, and then remove
the DFS channels from the scan list if the ini is enabled.

Change-Id: Iff3361f3c1a577fd8e2b541a0673af431db65a5e
CRs-Fixed: 2378801
2019-01-14 21:47:16 -08:00
nshrivas
894345887b Release 5.2.0.115W
Release 5.2.0.115W

Change-Id: I33c03dcfa1f251de56a83ffa2fab98492a362bab
CRs-Fixed: 774533
2019-01-14 12:58:51 -08:00
Ajit Pal Singh
5e618aa8c4 qcacld-3.0: Add support to save and get interface device
A bus can have multiple sub interfaces or pipes.
USB bus for example has endpoints grouped into interfaces.
WLAN uses one of these interfaces.
Each interface has its own "struct device". Add support to save
and retrieve this "struct device".
Also pass interface dev to pld_usb_wlan_enable() as CNSS expects
interface device.

Change-Id: I5800bde107157c35efed848a23b95696bd7f793a
CRs-Fixed: 2371440
2019-01-14 12:58:51 -08:00
Jeff Johnson
844da097fc qcacld-3.0: Remove nlo fields from struct pmo_vdev_priv_obj
Fields nlo_in_progress and nlo_match_received in struct
pmo_vdev_priv_obj are unused, so remove them.

Change-Id: I4152e55e407628bbcc32118aa702770a401cfe3b
CRs-Fixed: 2379076
2019-01-14 12:58:47 -08:00
lifeng
caa45efa73 qcacld-3.0: Fix implicit declaration building error
Fix implicit declaration building error when kenel version is
not great than 4.4.

Change-Id: I1155641911de9dce3e758d753183fc1a0e161cc4
CRs-Fixed: 2380299
2019-01-14 12:58:43 -08:00
nshrivas
e3b027f5a1 Release 5.2.0.115V
Release 5.2.0.115V

Change-Id: Ie0a511e5984620105243e6bce229ea5404d1cccf
CRs-Fixed: 774533
2019-01-14 08:38:07 -08:00
Jeff Johnson
18dd808afa qcacld-3.0: Harmonize PMO packet filter APIs
Update the PMO packet filter APIs to make sure the parameter names
in the prototypes match the ones in the implementations and in the
documentation.

Change-Id: I7fd924d17edb54c690e8ef5b85d4829a4a165edc
CRs-Fixed: 2379075
2019-01-14 08:38:06 -08:00
hangtian
127c953c7f qcacld-3.0: Use qdf_mem_zero for zero initialization
Use qdf_mem_zero for zero initialization.

Change-Id: Ic2b8d907623cf67a4569aaf01398c1b3a2bff707
CRs-Fixed: 2376644
2019-01-14 08:38:03 -08:00
nshrivas
b0efa7019d Release 5.2.0.115U
Release 5.2.0.115U

Change-Id: I69d8f379a2c2538bee6d02283ef525a1e31f33d2
CRs-Fixed: 774533
2019-01-14 01:45:24 -08:00
Wu Gao
2255ea2817 qcacld-3.0: Defines five WNI cfg and one INI cfg
Based on new cfg framework, defines below five WNI cfg items and one
INI cfg:
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - gTxPowerCap

Change-Id: I5546ea7a4efd142b546ad10a40712d40d2d3ea0d
CRs-Fixed: 2375857
2019-01-14 01:45:23 -08:00
Wu Gao
5f764087a9 qcacld-3.0: Refactor five WNI cfg and one INI cfg
Based on new cfg framework, refactors below five WNI cfg items and one
INI cfg:
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - gTxPowerCap

Change-Id: I5307fe73ad931eaec2e9471ddd36cd6d00061c76
CRs-Fixed: 2375860
2019-01-14 01:45:18 -08:00
Wu Gao
abdbbd0ccf qcacld-3.0: Cleanup legacy codes for six WNI cfg and three INI cfg
Since have refactored below configures, cleanup legacy codes.
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - WNI_CFG_PS_WOW_DATA_INACTIVITY_TIMEOUT
 - g_wow_data_inactivity_timeout
 - gTxPowerCap
 - gDisablePacketFilter

Change-Id: I40410d0d9fe0e3f90206f07e3f437359f2a8d1e4
CRs-Fixed: 2375869
2019-01-14 01:45:14 -08:00
Ashish Kumar Dhanotiya
0148519463 qcacld-3.0: Check for the duplicate MAC during open adapter
Currently for STA mode in open adapter, locally administered
bit is getting reset, there is a possibility that after
resetting this locally administered bit this new MAC matches
to an existing MAC address which may result in multiple interfaces
to be up with same MAC address.

To avoid this issue, add a check for duplicate MAC address after
resetting locally administered bit.

Change-Id: I3ff8091df2c422bd89944ca39849c9961941e8c3
CRs-fixed: 2370349
2019-01-14 01:45:10 -08:00
nshrivas
d6d4082a7c Release 5.2.0.115T
Release 5.2.0.115T

Change-Id: I3c3667435ae0af323db6d90e9a4916a0d6e4a147
CRs-Fixed: 774533
2019-01-13 18:45:56 -08:00
Wu Gao
0821b0dd4c qcacld-3.0: Change WNI_VALID_CHANNEL_LIST_LEN to VALID_CHANNEL_LIST_LEN
All WNI configurations will be cleanup based on new cfg framework, so
change Change WNI_VALID_CHANNEL_LIST_LEN to VALID_CHANNEL_LIST_LEN.

Change-Id: I805be88ecdcca90cf3a19d1784bf8f8c261b6ca4
CRs-Fixed: 2379748
2019-01-13 18:45:55 -08:00
Wu Gao
9d117fbfc2 qcacld-3.0: Refactor three INI in PMO
Based on cfg framework, refactor below INI:
 - CFG_RA_RATE_LIMIT_INTERVAL_NAME
 - CFG_ACTIVE_UC_APF_MODE_NAME
 - CFG_ACTIVE_MC_BC_APF_MODE_NAME

Change-Id: I3b1ee6254de158ad6408dc8c61e83be571e180af
CRs-Fixed: 2379743
2019-01-13 18:45:51 -08:00
Mohit Khanna
c9649650d2 qcacld-3.0: Support to dump DP RX Thread stats
Add DP RX Thread Stats support. Stats can be retrieved using iwpriv
dumpStats command.
Remove print from hdd_gro_rx_dp_thread function. This condition is
expected when gro is disabled on low throughput. Print is not needed.

CRs-Fixed: 2346997
Change-Id: I3619844b66e845184a4b8c77763bf9f2d2ea0a38
2019-01-13 18:45:47 -08:00
nshrivas
a42c591730 Release 5.2.0.115S
Release 5.2.0.115S

Change-Id: I4511b6320eb700ea5ab7cca9fb3dfc4cad22eca6
CRs-Fixed: 774533
2019-01-13 11:26:31 -08:00
Abhinav Kumar
0fe1b4e00d qcacld-3.0: Cleanup INI CFG_DROP_BCN_ON_CHANNEL_MISMATCH
Scan component will do default value initialization,
remove the config from HDD.

Change-Id: I1b14a135566b40db757b81920c5d9775d56d039f
CRs-Fixed: 2375196
2019-01-13 11:26:30 -08:00
nshrivas
b60f49d5f9 Release 5.2.0.115R
Release 5.2.0.115R

Change-Id: Ib68f5213bd84f475a0c59a092c522abc2887694f
CRs-Fixed: 774533
2019-01-12 07:28:48 -08:00
Jingxiang Ge
37d878ccb5 qcacld-3.0: Fix potential out of bound issue
Change to avoid potential out of bound issue
when unsafe channel numbers parameter is invalid.

Change-Id: I0c2cdac844c5fd644fce61d3d69fefcecdb62f19
CRs-Fixed: 2374986
2019-01-12 07:28:47 -08:00
nshrivas
3dfb7254a3 Release 5.2.0.115Q
Release 5.2.0.115Q

Change-Id: Ie8e446dcf628af2f90610714c7ace42964898fea
CRs-Fixed: 774533
2019-01-12 01:28:30 -08:00
Jingxiang Ge
b5fb05be39 qcacld-3.0: Check if gp_sap_ctx is empty after reinit
In SSR, after reinit, there is still memory leak
for gp_sap_ctx; As in multi SSR test, memory leak
detection is disabled in recovery mode, it is a
little late to get the issue moment.

Check gp_sap_ctx after stopping all adapter in
hdd_is_interface_down_during_ssr.

Change-Id: I77708d296fb218ca53ac656f844d02f58e23d241
CRs-Fixed: 2377718
2019-01-12 01:28:29 -08:00
nshrivas
42e263af4d Release 5.2.0.115P
Release 5.2.0.115P

Change-Id: I3be7fa59c56c25220d65b25362a483b29d430712
CRs-Fixed: 774533
2019-01-11 22:25:25 -08:00
Sourav Mohapatra
47710c31ac qcacld-3.0: Validate user input for null termination
In hdd_dns_make_name_query() the parameter string is a user controlled
input. The driver assumes that the input is null terminated string and
accordingly the exit condition of the loop is specified. In case the
user sends input with no null termination then it can lead to possible
OOB scenario.

Add a null termination validation on the string so that any erroneous
input is filtered.

Change-Id: I2abb4875569c508179c4488347f7c9aae0666332
CRs-Fixed: 2342812
2019-01-11 22:25:24 -08:00
Wu Gao
6294afcfa7 qcacld-3.0: Refactor six LFR INI cfg
Based on new cfg component, refactor below LFR INI cfg and remove
unused legacy codes.
 - CFG_ENABLE_LFR_SUBNET_DETECTION
 - CFG_ROAM_HO_DELAY_FOR_RX_NAME
 - CFG_MIN_DELAY_BTW_ROAM_SCAN_NAME
 - CFG_ROAM_SCAN_TRIGGER_REASON_BITMASK_NAME
 - CFG_ROAM_FT_OPEN_ENABLE_NAME
 - CFG_ROAM_FORCE_RSSI_TRIGGER_NAME

Change-Id: Iaa738c6416dffe8159b49d59fc9a514da2fbb7ff
CRs-Fixed: 2376637
2019-01-11 22:25:19 -08:00
nshrivas
aee2a5b443 Release 5.2.0.115O
Release 5.2.0.115O

Change-Id: I9adda060458410a11d4bffb380140505b72a167c
CRs-Fixed: 774533
2019-01-11 18:08:07 -08:00
Pragaspathi Thilagaraj
ecb607352a qcacld-3.0: Add vdev valid check for wmi vdev level commands
Check if vdev is active for the following roam related vdev
commands before sending it to wmi:
1. WMI_ROAM_SCAN_MODE
2. WMI_ROAM_SCAN_PERIOD
3. WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD
4. WMI_ROAM_AP_PROFILE
5. WMI_ROAM_CHAN_LIST
6. WMI_ROAM_SCAN_CMD
7. WMI_ROAM_SYNCH_COMPLETE

This will avoid the race condition where the vdev is deleted
and the vdev related commands for the deleted vdev are sent
to firmware before wmi_stop_inprogress is set at wmi.

Change-Id: I8b54bb5663ef517bc58141bc3b96fd9b863fd656
CRs-Fixed: 2344006
2019-01-11 18:08:06 -08:00
Kiran Kumar Lokere
6b01731f49 qcacld-3.0: Update the max BA buffer size value to 256
Update the max block ack buffer size value to 256 in the addba
response frame to support the reception of A-MPDU with 256 MPDUs.

Change-Id: Iaf699024b969b420b5328d2e91d104bd42adc732
CRs-Fixed: 2375563
2019-01-11 18:08:03 -08:00
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