Commit Graph

14139 Commits

Author SHA1 Message Date
Jeff Johnson
424bc294e3 qcacld-3.0: Remove obsolete Scan Params typedefs
Typedefs tInitScanParams and tFinishScanParams are unused, so remove
them, along with tSirScanEntry and tSirLinkTrafficCheck that is used
just by them.

Change-Id: I5f9c58236f8c5fe639c5b896a66b9dc290e54ab1
CRs-Fixed: 2374281
2019-01-07 00:08:06 -08:00
Jeff Johnson
27df22e68d qcacld-3.0: Remove HDD_SCAN_INACTIVITY_TIMEOUT
Change I38900a4c786b5ba5f31006e6e29332c081a565cf ("qcacld-3.0:
cleanup legacy scan code") removed the last reference to macro
HDD_SCAN_INACTIVITY_TIMEOUT. Since this macro is now unused,
remove it.

Change-Id: I9cb1370b6284a76c073594760bd857f666426e84
CRs-Fixed: 2374280
2019-01-07 00:08:00 -08:00
Jeff Johnson
4377eba726 qcacld-3.0: Remove timWaitCount from tAniSirDph
The timWaitCount field in tAniSirDph is initialized but never read.
Since it is ultimately unused, remove it.

Change-Id: I98795820caf8087f225b3835e531790d2d1f167e
CRs-Fixed: 2374279
2019-01-07 00:07:54 -08:00
Jeff Johnson
4e7862fbb2 qcacld-3.0: Remove txRateFlags from tSirIbssPeerInfoParams
The txRateFlags field in tSirIbssPeerInfoParams is initialized to zero
but is otherwise unused, so remove it.

Change-Id: I8efcb18869dfe1c5e2a42395bb40c281391b3bfa
CRs-Fixed: 2374278
2019-01-07 00:07:48 -08:00
Jeff Johnson
59f8ee46a5 qcacld-3.0: Remove ucPatternIdBitmap from tSirDelPeriodicTxPtrn
Field ucPatternIdBitmap in tSirDelPeriodicTxPtrn serves no purpose, so
remove it.

Change-Id: I966983c3dea674e61ccf4d06473ea21448484a4c
CRs-Fixed: 2374277
2019-01-07 00:07:42 -08:00
Jeff Johnson
86bef3ee7a qcacld-3.0: Remove ucastDataRate from tSirRateUpdateInd
The ucastDataRate field in tSirRateUpdateInd is initialized, but is
otherwise not used, so remove it. And the ucastDataRateTxFlag field is
never referenced, so remove it as well.

Change-Id: I1df8e5ec32d8ebb1d1e1f53c83bec45fbb86bb4e
CRs-Fixed: 2374276
2019-01-07 00:07:36 -08:00
Jeff Johnson
94b3303ffd qcacld-3.0: Remove ucSecEnabled from struct sap_context
Field ucSecEnabled in struct sap_context is initialized, but is
otherwise unused, so remove it.

Change-Id: I4b947be54d86e0e7e272b97427efd7acb4658fe6
CRs-Fixed: 2374275
2019-01-07 00:07:31 -08:00
Jeff Johnson
d039a3302f qcacld-3.0: Remove ownSsid from struct sap_context
The ownSsid and ownSsidLen fields in struct sap_context are unused, so
remove them.

Change-Id: I405f0c7c47e163a962bc3db19d88d5b69ca95ac7
CRs-Fixed: 2374274
2019-01-07 00:07:25 -08:00
gaurank kathpalia
1be77fa6a9 qcacld-3.0: Add Dot11 mode related CFG items in mlme cfg
Add dot11mode related cfg items in mlme cfg, and replace
old WNI dot11 modes with new MLME DOT11 mode enums

Change-Id: I6e866959f440ae781432c8aaa724b229c0874856
CRs-Fixed: 2362540
2019-01-07 00:07:19 -08:00
Sravan Kumar Kairam
f48210cb66 qcacld-3.0: Add cdp api for dp tx desc availability
Add cdp api to check if tx desc pool available descriptor
threshold has reached.

Change-Id: I12cc38b56a68ca7ee8f4560677fcdabccb38928b
CRs-Fixed: 2369244
2019-01-07 00:07:14 -08:00
Abhishek Singh
ef6f38c913 qcacld-3.0: Refactor the prints for rx management frames
Refactor the prints for rx management frames. Do not print rx
frames in wma_form_rx_packet, as txrx module take care of it.

Change-Id: I52403c9dd32919507af13782dc838ff8076070cd
CRs-Fixed: 2375675
2019-01-07 00:07:10 -08:00
Nachiket Kukade
338547b58b qcacld-3.0: Print APF work memory as it is read or written
Just like the legacy APF commands, dump the contents of the
APF instructions/data as it is read or written by upper
layer using the new APFv3 vendor commands. This is helpful
for debugging purposes.

Change-Id: I24725b5b8431fcaa573953187f8412e4f4d0b510
CRs-Fixed: 2375362
2019-01-07 00:07:05 -08:00
nshrivas
5761a0355e Release 5.2.0.114Q
Release 5.2.0.114Q

Change-Id: Ifa1c30e54f404eeb2fd27b995699f4b40da2bb56
CRs-Fixed: 774533
2019-01-03 16:16:48 -08:00
Abhishek Singh
1a8299a139 qcacld-3.0: Cleanup unused eLIM_LEARN_DURATION_TIMER
Cleanup unused timer enum eLIM_LEARN_DURATION_TIMER

Change-Id: I79d215777e18a453488471f530e598773c1e6b77
CRs-Fixed: 2375046
2019-01-03 16:16:47 -08:00
Abhishek Singh
d085438d4a qcacld-3.0: Cleanup unused LIM MLM states
Cleanup unused LIM MLM states:
eLIM_MLM_P2P_LISTEN_STATE
eLIM_MLM_WT_PROBE_RESP_STATE
eLIM_MLM_PASSIVE_SCAN_STATE
eLIM_MLM_LEARN_STATE
eLIM_MLM_WT_SET_MIMOPS_STATE

Change-Id: I04b29adf4729e830b61cebb47bd501caad5ace50
CRs-Fixed: 2375044
2019-01-03 16:16:43 -08:00
Abhishek Singh
5432c35d01 qcacld-3.0: Remove unused logic to convert DFS channels to active
lim.dfschannelList.timeStamp is a array of
SIR_MAX_24G_5G_CHANNEL_RANGE(166). In some countries channel greater
than 165 are allowed and thus if channel is greater than 165 driver
access out of bound memory which lead to corruption of
lim.sme_msg_callback.

lim.dfschannelList.timeStamp is used to convert DFS channels to
active, which is used for host handled scan to decide if active
scan can be done on DFS channel. Scan now been handled in firmware
this logic is unused and can be removed.

Change-Id: Ib301fa70a6b7ed99f3ecacbf344dd9e821079149
CRs-Fixed: 2374977
2019-01-03 16:16:38 -08:00
nshrivas
e1ea09e9b6 Release 5.2.0.114P
Release 5.2.0.114P

Change-Id: Ia149e0aea3704089cac08a9536c0c4d4512ffcaf
CRs-Fixed: 774533
2019-01-03 09:04:16 -08:00
Kiran Kumar Lokere
ceeed83aa2 qcacld-3.0: Enable power save with user cfg request
Currently power save enable request user command is not
processed if the station is not in connected state and the
configuration is not saved hence station do not enter into
power save mode until the user command is issued after
connection.
Save the power save user configuration setting if the station
is not connected and start the auto power save timer for one
second timeout value after the station is connected to enable
the power save.

Change-Id: I6e17a8e989ca731ca008dcb46ca79c3a181ddff0
CRs-Fixed: 2371045
2019-01-03 09:04:15 -08:00
nshrivas
7e3f297823 Release 5.2.0.114O
Release 5.2.0.114O

Change-Id: I0ce565dd729925d89d69582741fd2ad28ea1ef9d
CRs-Fixed: 774533
2019-01-03 06:47:35 -08:00
Harprit Chhabada
98225f6b0d qcacld-3.0: Add flag CONFIG_WMI_BCN_OFFLOAD to dependent APIs
Change I4fdbf041b53b5f1606d324714f01088742a9307f ("qcacld-3.0:
Modify Kbuild to add new beacon header file") added new file
wmi_unified_bcn_api.c to Kbuild with flag CONFIG_WMI_BCN_OFFLOAD.

Add this flag to all dependent APIs.

Change-Id: Id3f77434179b739d5563b490d25b1c1386e1831f
CRs-Fixed: 2374758
2019-01-03 06:47:35 -08:00
nshrivas
da1b34837b Release 5.2.0.114N
Release 5.2.0.114N

Change-Id: I8ee936f83070b80f9a8a9705bd25ebae221a5c08
CRs-Fixed: 774533
2019-01-03 00:21:25 -08:00
Alok Kumar
d9111bb36b qcacld-3.0: Handle NUD event if subnet gateway is configured
Add protective check in driver to handle NUD events only if
subnet gateway is configured.

Change-Id: I5142e4d50490ea4726f337e19c8282359d23423d
CRs-Fixed: 2373552
2019-01-03 00:21:24 -08:00
nshrivas
bdb53f1b27 Release 5.2.0.114M
Release 5.2.0.114M

Change-Id: Iadb504d6af7341ade149900b1835d61d1d2e2e27
CRs-Fixed: 774533
2019-01-02 18:46:37 -08:00
Harprit Chhabada
dc5bc15a6c qcacld-3.0: Remove unused WNI CFG item of scan component
Remove unused wni CFG item, WNI_CFG_SCAN_IN_POWERSAVE

Change-Id: I13e01172c3a18072c31e9b13a6e2396cfea0f5c6
CRs-Fixed: 2371763
2019-01-02 18:46:37 -08:00
Jeff Johnson
339ede8ffe qcacld-3.0: Use vtable for rx blocksize
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal update the signature of the following function
and add that function to the vtable:
- wlan_hdd_cfg80211_wifi_set_rx_blocksize()

Note that with this change all of the attribute handling in
__wlan_hdd_cfg80211_wifi_configuration_set() has been relocated to the
vtables. The measured cyclematic complexity was reduced from 103 to 6.

Change-Id: If5c3cfea7107f95c07867895a0bc7cc5d13fc7ac
CRs-Fixed: 2371594
2019-01-02 18:46:33 -08:00
nshrivas
a2380537f0 Release 5.2.0.114L
Release 5.2.0.114L

Change-Id: I9b4b8aa82b8b4c5d6bb3cf8b2d298665ffe3fc97
CRs-Fixed: 774533
2019-01-02 16:29:51 -08:00
Jeff Johnson
0dd687eda0 qcacld-3.0: Use vtable for reorder timeout
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal update the signature of the following function
and add that function to the vtable:
- wlan_hdd_cfg80211_wifi_set_reorder_timeout()

Change-Id: Ia9c160eb81358b91feecb35b1cb8c097f90979cc
CRs-Fixed: 2371593
2019-01-02 16:29:50 -08:00
Jeff Johnson
1350e62148 qcacld-3.0: Refactor ANT_DIV_SNR_WEIGHT configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT

Change-Id: I1bd98a7c78b77791eb7737a928f2a22ced1af3c6
CRs-Fixed: 2371592
2019-01-02 16:29:45 -08:00
Jeff Johnson
7bf20cb5eb qcacld-3.0: Refactor ANT_DIV_PERIOD configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD

Change-Id: I13f76951f8f8451d70e1cc64f0116a8b6de163d0
CRs-Fixed: 2371591
2019-01-02 16:29:41 -08:00
Jeff Johnson
0fbb43b96a qcacld-3.0: Refactor MPDU_AGGREGATION configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION

Change-Id: Ied99c92d708967713e6807d000485327ddba5fdd
CRs-Fixed: 2371590
2019-01-02 16:29:37 -08:00
nshrivas
655b48bd52 Release 5.2.0.114K
Release 5.2.0.114K

Change-Id: I09dc0811ab45e0aba5e61810f566e109947dd1a0
CRs-Fixed: 774533
2019-01-02 14:15:01 -08:00
Jeff Johnson
affc4da8cd qcacld-3.0: Refactor ACCESS_POLICY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST

Change-Id: Ia10060a8a50b2e12f0eb7dc5ea5810f1751bce60
CRs-Fixed: 2371589
2019-01-02 14:15:01 -08:00
Rajeev Kumar
f10f177186 qcacld-3.0: Avoid psoc remove when previous probe was not successful
Previous psoc probe was not successful and in that case hdd_ctx will
be null so during next psoc remove check for validity of hdd_ctx
before de-referencing it and return safely in case psoc probe was
not successful.

Change-Id: I535965f9d60522245720952d2d7c14e09a91a334
CRs-Fixed: 2373865
2019-01-02 14:14:56 -08:00
Sravan Kumar Kairam
7887022782 qcacld-3.0: Modify is fw activated pipes api for lithium dp
In case of lithium dp there is no FW interaction in RX packet
processing and is HW REO ring based. So modify the ipa component
is fw activated api to return true if the ipa system pipes are
enabled.

Change-Id: I8cde4b0f696b75097e6b50f8b0c71c2b6fff6d6d
CRs-Fixed: 2374083
2019-01-02 14:14:52 -08:00
nshrivas
a891c69dbc Release 5.2.0.114J
Release 5.2.0.114J

Change-Id: I434bbb72880a7ae22459b97b016a464e94c20447
CRs-Fixed: 774533
2019-01-02 12:04:28 -08:00
Alok Kumar
ac74177daa qcacld-3.0: Avoid access of deleted peer during RX thread close
During SSR case in wlan_hdd_stop_modules(), ol_txrx_pdev_pre_detach()
cleanup the peer forcibly. Later RX Thread is getting closed as part
of cds_sched_close(). So chances of accessing deleted peer is there.

Shutdown RX thread before doing ol_txrx_pdev_pre_detach() to avoid
the chances of accessing deleted peer.

Change-Id: Iae27262396d8245eeb7a9b39cb678fad14815260
CRs-Fixed: 2349994
2019-01-02 12:04:27 -08:00
nshrivas
57ed3b03e3 Release 5.2.0.114I
Release 5.2.0.114I

Change-Id: Ie8e9de37a1d8bb60bc33e9c730dcec796b148f40
CRs-Fixed: 774533
2019-01-02 09:28:00 -08:00
Arif Hussain
49698119d9 qcacld-3.0: Make sure to initialize global target_if before soc create
Make sure to initialize global target_if before soc create
as part of this psoc notifications are registered.

Change-Id: Id5491a2aac49450774532fe69ee24e18c9a7c594
CRs-Fixed: 2351426
2019-01-02 09:28:00 -08:00
nshrivas
f253f834ac Release 5.2.0.114H
Release 5.2.0.114H

Change-Id: Ic70e9280c74bcb6fd758c8eea0533efd08835923
CRs-Fixed: 774533
2019-01-02 03:52:58 -08:00
Yu Ouyang
781f1b56c9 qcacld-3.0: correct return value for pld_pcie_get_user_msi_assignment
Without CNSS module, function pld_pcie_get_user_msi_assignment return zero
even no msi config. For caller function pld_get_user_msi_assignment, zero
means TRUE. It will result to panic when deinit sequence called in
function hif_ce_srng_msi_free_irq. Return correcly value to avoid panic.

Change-Id: Id4480ef1db5357943162472963c4e78d7bfe64b8
CRs-Fixed: 2373130
2019-01-02 03:52:58 -08:00
nshrivas
246f7db4b3 Release 5.2.0.114G
Release 5.2.0.114G

Change-Id: I806462b82620db468260b718bdbd45c23d7ac2f8
CRs-Fixed: 774533
2019-01-01 23:28:24 -08:00
hangtian
29be28705c qcacld-3.0: Add rrm IE for sap mode
Add rrm IE for sap mode.

Change-Id: Ic598da89627254a5d14b61c546e3fdb29d5836cc
CRs-Fixed: 2371360
2019-01-01 23:28:24 -08:00
hangtian
06a41355e6 qcacld-3.0: Discard msdu and do not try to access vdev and vdev->pdev
Discard msdu and do not try to access vdev and vdev->pdev, because in
some cases, vdev or vdev->pdev is already freed, but some packet just
received right after wmi vdev delete command is sent.

Change-Id: Ia38768d800da97e361ffa1688ce53c25be6cd597
CRs-Fixed: 2372557
2019-01-01 23:28:20 -08:00
nshrivas
1651b9612e Release 5.2.0.114F
Release 5.2.0.114F

Change-Id: I3bc77688a052f75be9c5dc76ace6cac5ab913088
CRs-Fixed: 774533
2019-01-01 17:06:03 -08:00
Arif Hussain
0b634b48ed qcacld-3.0: Restore gDisableDfsJapanW53 ini support
Restore gDisableDfsJapanW53 ini support.

Change-Id: I085e62e7cd8b1fdfe931997d35915f55d079f11d
CRs-Fixed: 2371006
2019-01-01 17:06:03 -08:00
nshrivas
1bd0968261 Release 5.2.0.114E
Release 5.2.0.114E

Change-Id: I17a3e520e05e13e4d4a8226315ba5588bc04d08b
CRs-Fixed: 774533
2018-12-31 21:29:28 -08:00
Srinivas Dasari
b328f1a4f9 qcacld-3.0: Add changes to support OSEN AKM for HS-2.0
OSEN is a new AKM to support HS-2.0. This change is to support
the same.

Change-Id: I6d6c3c2bca76a346d83c6f1303ae86177f2fde67
CRs-Fixed: 2361385
2018-12-31 21:29:28 -08:00
nshrivas
71118e7ad7 Release 5.2.0.114D
Release 5.2.0.114D

Change-Id: I7672350c7684a834a1a7a00edcf016cadc018873
CRs-Fixed: 774533
2018-12-31 01:13:12 -08:00
Sourav Mohapatra
9e014cf171 qcacld-3.0: Add support to enable/disable RTT feature
Define a new ini param to provide control over enabling and disabling
support for RTT.

Change-Id: I4fcc2370f758f80f00aaf04a4f23e24934d92f52
CRs-Fixed: 2364495
2018-12-31 01:13:11 -08:00
Sourav Mohapatra
fec6d6c8c4 qcacld-3.0: Disable indoor channels only for SAP and not GO
In the present scenario, the indoor channels are disabled
in both SAP and GO.
Disable the indoor channels only in case of SAP.

Change-Id: Ic66c3af211bd65846ec0ecaac8375d037f15af9a
CRs-Fixed: 2203719
2018-12-31 01:13:07 -08:00