Commit Graph

11163 Commits

Author SHA1 Message Date
Dundi Raviteja
eab3b8d472 qcacld-3.0: Add support to send MWS-COEX configurations to FW
Add support to send below two MWS-COEX configurations to FW
1. Enable/disable MWS-COEX 4G (LTE) Quick FTDM
2. Set MWS-COEX 5G-NR power limit

Change-Id: I14656ced91c9dec2be85590e6f6c1e7497505a28
CRs-Fixed: 2265352
2018-07-25 01:24:17 -07:00
nshrivas
5b33d62a25 Release 5.2.0.89X
Release 5.2.0.89X

Change-Id: Ibdf489cb32c474c56c78e55057067d14d66c9793
CRs-Fixed: 774533
2018-07-24 18:52:53 -07:00
Dustin Brown
da351e3db0 qcacld-3.0: Remove %pS from wlan_hdd_validate_context
The %pS format specifier causes a symbol lookup which disables
preemption in the Linux kernel. As such it is advisable to never use %pS
where __func__ could be used instead. Replace usage of %pS in
wlan_hdd_validate_context() with __func__ passed from the caller
instead.

Change-Id: I2b170bd6098f4acf2a4ccab537f546ba8de154ba
CRs-Fixed: 2283619
2018-07-24 18:52:52 -07:00
Wu Gao
4a1ec8cc7a qcacld-3.0: Cleanup roc and tx action before suspending mc thread
Scheduler thread enter suspend state when calling p2p callback from
pmo, and it can't execute cleanup task on time in p2p suspend handler.
So, cleanup roc and tx action frame before suspend mc thread. Add
cleaning up tx action frame by vdev in hdd layer.

Change-Id: Ib0ef1cb3a73c5a48b3c365935a6d5b9307d2aae0
CRs-Fixed: 2283298
2018-07-24 18:52:49 -07:00
nshrivas
621616f201 Release 5.2.0.89W
Release 5.2.0.89W

Change-Id: I405ec914f44252b52b77c9c09e6ba6293712daaf
CRs-Fixed: 774533
2018-07-24 16:58:25 -07:00
Wu Gao
bdb7f27bde qcacld-3.0: Enable TDLS configures based on converged CFG component
Enable TDLS configures based on converged cfg component and remove
legacy codes.

Change-Id: I77221a8493c8a20efdae9e714a98da74f5c6b6ed
CRs-Fixed: 2277572
2018-07-24 16:58:25 -07:00
Abhinav Kumar
85a4bb876a qcacld-3.0: Host sends VDEV_DELETE cmd to fw before stop_bss
When stop_ap command comes from userspace, __wlan_hdd_cfg80211_stop_ap
calls sap_fsm to change the states of SAP from started to disconnect.
In order to change SAP states, __wlan_hdd_cfg80211_stop_ap sends
WMI_VDEV_STOP_CMDID followed by WMI_VDEV_DOWN_CMDID and
WMI_VDEV_DELETE_CMDID to fw. After the successful change in state of
SAP machine, driver invokes an HDD callback, hdd_hostapd_sap_event_cb
for cleanup and subsequently invokes hdd_softap_stop_bss to reclaim all
resources. This API sends IPA_OFFLOAD_ENABLE_DISABLE cmd to fw for the
VDEV on which SAP started. Which results assert in firmware as host
sends HDD IPA event for the VDEV which is already deleted while changing
the state of SAP.

Fix is to send HDD_IPA_AP_DISCONNECT IPA events before stop BSS.

Change-Id: Ief9318bb476b480fd52f4155a0788a34c1e2ed53
CRs-Fixed: 2276125
2018-07-24 16:58:21 -07:00
nshrivas
f573558c00 Release 5.2.0.89V
Release 5.2.0.89V

Change-Id: I9d016127012bebe4d0a7fda12d98babe6a6276aa
CRs-Fixed: 774533
2018-07-24 15:10:50 -07:00
Jeff Johnson
62cd6803a7 qcacld-3.0: Remove tHalStopType
There are multiple places where a tHalStopType parameter is passed but
unused. This is a historical artifact, so remove all instances of it.

Change-Id: Iebcbbac580495a376b7456b3a2901f33c2474f83
CRs-Fixed: 2283460
2018-07-24 15:10:49 -07:00
Jiachao Wu
52c060a2c4 qcacld-3.0: Check wma handler when get phy mode
Check NULL pointer in wma_chan_phy_mode.

Change-Id: I137433aa55cba182651f9e12bc5edca80b0b3bb7
CRs-Fixed: 2283243
2018-07-24 15:10:46 -07:00
Nirav Shah
9272dbbcba qcacld-3.0: Compile wlan_cfg.c file only in case of lithium dp
Compile wlan_cfg.c file only in case of lithium dp.

Change-Id: If86345f82ac10d26ff4493c21e6942cb33d5acf5
CRs-Fixed: 2280694
2018-07-24 15:10:43 -07:00
Sourav Mohapatra
808e3d4b71 qcacld-3.0: Eliminate possibility of sending power off when FW is down
In the scenario of concurrent execution of __con_mode_handler and
triggering of SSR, there exists a possibility of driver sending power
off command while the target is not ready. In hdd_wlan_stop_modules, as
a part of __con_mode_handler context, pld_power_off was called after
the trigger of SSR, which caused assert in the platform driver.

To eliminate this, convert the static verfification of the driver state
at the start of the hdd_wlan_start_modules to dynamic. And also set the
target ready state to false in case SSR/FW_DOWN uevent is received.
These will ensure that the driver doesnot try to send the power off
command while the target is not ready.

Change-Id: Idf1056dc85107c535809bedf8b5534085033a1f5
CRs-Fixed: 2271096
2018-07-24 15:10:39 -07:00
nshrivas
64db248b0a Release 5.2.0.89U
Release 5.2.0.89U

Change-Id: I651e0c158ed2dd56ea053e172fe6bc07fcbc5024
CRs-Fixed: 774533
2018-07-24 13:20:34 -07:00
Rajeev Kumar Sirasanagandla
4725ae4600 qcacld-3.0: Add support for action OUI extensions
Add support for action OUI extensions which can be used by station
to control mode of connection, connected AP's in-activity time and
Tx rate etc.,

Change-Id: Ie85e29c4b0ed7ac2815709d7a4e607c4ba46c6ca
CRs-Fixed: 2254502
2018-07-24 13:20:33 -07:00
Pragaspathi Thilagaraj
b11dbe4531 qcacld-3.0: Remove redundant null check for p_mac
In sme and lim, NULL check is available for h_hal. pmac is
casted resultant from h_hal and is retrieved using
PMAC_STRUCT macro, which is defined as ((tpAniSirGlobal)_hHal).
Null check is added for this p_mac also which is redundant.

Remove logically dead code to NULL check the p_mac.

Change-Id: I7a22de3691b83e8ae04391e43cde82541eaabc23
CRs-Fixed: 2276003
2018-07-24 13:20:29 -07:00
nshrivas
d9e1d20b22 Release 5.2.0.89T
Release 5.2.0.89T

Change-Id: Ib230146577dd28ccb59c9acfa510e1d36515b7eb
CRs-Fixed: 774533
2018-07-24 02:53:55 -07:00
Pragaspathi Thilagaraj
28ffc04cc7 qcacld-3.0: Fix possible integer underflow in cfg80211_rx_mgmt
In the function cfg80211_rx_mgmt, data_len is calculated as
len - ieee80211_hdrlen(mgmt->frame_control). Len is not
validated before this calculation. So a possible integer
underflow will occur if len value is less than the value of
ieee80211_hdrlen(mgmt->frame_control).

Validate the value of len against
ieee80211_hdrlen(mgmt->frame_control) in the caller.

Change-Id: Iae776daf37b0c052bd4ce4da44ea728d121eae51
CRs-Fixed: 2263758
2018-07-24 02:53:54 -07:00
nshrivas
1378e404b3 Release 5.2.0.89S
Release 5.2.0.89S

Change-Id: Ib7a2d98d2f7659097540e9de13679373a052c55a
CRs-Fixed: 774533
2018-07-23 20:56:34 -07:00
Dustin Brown
bee8283248 qcacld-3.0: Check session Id against max adapters
The current HDD session Id sanity check only checks for the magic
"invalid session Id" value. However, anything greater than or equal to
MAX_NUMBER_OF_ADAPTERS is an invalid session Id. Update the sanity check
to reject any session Id greater than or equal to
MAX_NUMBER_OF_ADAPTERS.

Change-Id: I7c5a3b82afde073e92fcd0dbf55002fa11a980b2
CRs-Fixed: 2283584
2018-07-23 20:56:34 -07:00
nshrivas
ae9fabb247 Release 5.2.0.89R
Release 5.2.0.89R

Change-Id: I44198659f950909baae17d130709683a9d6b7e0c
CRs-Fixed: 774533
2018-07-23 19:17:52 -07:00
Wu Gao
e568979eb5 qcacld-3.0: Enable P2P cfg based on new cfg component
Enable p2p cfg based on new cfg component and remove legacy codes.

Change-Id: I99b0a53a4904f56fda2aaa2e237455433c3363d2
CRs-Fixed: 2277566
2018-07-23 19:17:51 -07:00
nshrivas
951c3afa56 Release 5.2.0.89Q
Release 5.2.0.89Q

Change-Id: I6228825556b379e8db8859366d42686dce7d9ace
CRs-Fixed: 774533
2018-07-23 12:59:33 -07:00
Bala Venkatesh
6e3925b99f qcacld-3.0: Check TDLS peer type in lim_process_add_sta_rsp
Currenly, as part of tdls add sta req gLimAddStaTdls is set to 1.
And as part of add sta response gLimAddStaTdls is checked if 1 to
map tdls add sta response.
This implementation needs to take care of all error cases of
add sta req failure to reset the gLimAddStaTdls value to 0.

Instead check for peer type in add sta rsp.

Change-Id: Ideaff239f743b95a9578806d2ec220e123d4d995
CRs-Fixed: 2281385
2018-07-23 12:59:33 -07:00
nshrivas
8b6eac6792 Release 5.2.0.89P
Release 5.2.0.89P

Change-Id: I4c28a10e86046e2c8270325a33455df706c24bc5
CRs-Fixed: 774533
2018-07-23 01:59:33 -07:00
Abhinav Kumar
19a7a407df qcacld-3.0: Fix connState while processing disconnect from stop adapter
If driver receive stop adapter when STA is in connecting state, driver
queue a disconnect command without changing the connState of the STA.
Now even if the disconnect is in progress the connState indicate that
the connection is in progress. This may lead to sync issues between HDD
and SME.

Fix is to set the connState to disconnecting so that HDD indicate
proper state.

Change-Id: Ib9d607ad2ab05e5edc266e59516b4ae2b7668c78
CRs-Fixed: 2277633
2018-07-23 01:59:33 -07:00
nshrivas
08e6adb289 Release 5.2.0.89O
Release 5.2.0.89O

Change-Id: Ia9a994e5f913d0760f73d9398c798778a6c6feb0
CRs-Fixed: 774533
2018-07-22 13:30:59 -07:00
Sourav Mohapatra
d56faa5080 qcacld-3.0: Decrease gStaKeepAlivePeriod to 60
Modify the keep alive time as 60 secs by default to cater to rouge AP
behavior in some cases

Change-Id: Id2bb1b61e5fcdc5994451c981bd1171c1860c7cf
CRs-Fixed: 2258825
2018-07-22 13:30:58 -07:00
nshrivas
0f50677f53 Release 5.2.0.89N
Release 5.2.0.89N

Change-Id: I44951cddaefe88b30b8ea9af2a5f67c5095c85ce
CRs-Fixed: 774533
2018-07-21 13:15:53 -07:00
Dustin Brown
867ce6d534 qcacld-3.0: Reduce excessive logging during suspend
Currently, errors are logged if a given offload feature is disabled
while suspending the wlan driver. Instead, simply return success for the
configuration of those features which are disabled, since nothing needs
to be done. This also has the side effect of avoiding meaningless error
logs for situations which are not error conditions.

Change-Id: I1d897d8db066e642e1cc6e77daff0f44172cefe8
CRs-Fixed: 2282040
2018-07-21 13:15:52 -07:00
nshrivas
3b0ba5b743 Release 5.2.0.89M
Release 5.2.0.89M

Change-Id: I178628de350a5f37e2c0f37ba55f16a45d4aacfe
CRs-Fixed: 774533
2018-07-21 04:58:21 -07:00
Jeff Johnson
81b59a3012 qcacld-3.0: Clean up the extscan unified WMI (phase 2)
For a full explanation of the problem and phased solution refer to
"qcacmn: Clean up the extscan unified WMI (phase 1)", Change-Id
I11800361b572331cfada00fb7d518c314df20b43, in the qca-wifi-host-cmn
project.

For phase 2 (this change):
Replace all references of the badly named identifiers with references
to the properly named substitutes. Note that this phase may touch
multiple repos and may involve a number of separate changes.

Change-Id: I4b14045b7294103f4fa03a7f964be33ed4ac6cc6
CRs-Fixed: 2282841
2018-07-21 04:58:20 -07:00
nshrivas
397451a4f3 Release 5.2.0.89L
Release 5.2.0.89L

Change-Id: Ic4644f3dea2e58b3ad038564e456c35a88e7669e
CRs-Fixed: 774533
2018-07-21 03:35:34 -07:00
Pragaspathi Thilagaraj
2d1b311af2 qcacld-3.0: Fix possible OOB in lim_chk_n_process_wpa_rsn_ie
In the function lim_chk_n_process_wpa_rsn_ie, if wpa IE is
present, then dot11f_unpack_ie_wpa is called to copy the wpa IE
to destination buffer. assoc_req->wpa.length is passed as the
length to copy the IE. As this length includes 4 bytes of the
OUI fields also, this could result in OOB read.

Change the length passed to the dot11f_unpack_ie_wpa as
(assoc_req->wpa.length - 4), so that the additional 4 bytes of
the OUI fields are excluded.

Change-Id: If972b3a19d239bb955c7b4d4c7d94e25aa878f21
CRs-Fixed: 2267557
2018-07-21 03:35:33 -07:00
nshrivas
c8d91102fa Release 5.2.0.89K
Release 5.2.0.89K

Change-Id: Ic11fd27c057705c0edfcd41797055519f28a9464
CRs-Fixed: 774533
2018-07-21 00:03:15 -07:00
Venkata Sharath Chandra Manchala
9220e32709 qcacld-3.0: Compile hal files based on QCA6390
Compile new hal header files based on CONFIG_CNSS_QCA6390

Change-Id: I1c4a55dbc8c74b9ea960a79653eb5f1f5f371c2b
CRs-Fixed: 2279698
2018-07-21 00:03:14 -07:00
nshrivas
0e7bc28b68 Release 5.2.0.89J
Release 5.2.0.89J

Change-Id: Id339e9a1b125aabad150d612145401def057b480
CRs-Fixed: 774533
2018-07-20 17:55:01 -07:00
Varun Reddy Yeturu
a2a5e4345c qcacld-3.0: Fix issue in populate_dot11f_twt_extended_caps
Fix using uninitialized variable status inside the function
populate_dot11f_twt_extended_caps

Change-Id: Ic80df2f6c5310414da4179f00867c0fe029b09c7
CRs-Fixed: 2277833
2018-07-20 17:55:01 -07:00
nshrivas
40e68c7e74 Release 5.2.0.89I
Release 5.2.0.89I

Change-Id: I80c80674e0a0a40c7b8e0dc2db3a5cc68137d31f
CRs-Fixed: 774533
2018-07-20 16:23:51 -07:00
Varun Reddy Yeturu
b1e6cd3a66 qcacld-3.0: Fix using uninitialized values in hdd_send_twt_enable_cmd
Fix using uninitialized values for req_val, bcast_val and resp_val
in the function hdd_send_twt_enable_cmd.

Change-Id: Ie671660b62f0624fbf86707f15fe122b81552a53
CRs-Fixed: 2277826
2018-07-20 16:23:50 -07:00
nshrivas
f9737c9d42 Release 5.2.0.89H
Release 5.2.0.89H

Change-Id: I3d3ab9b520d2ba2ae91a0336496ad019f8fae7eb
CRs-Fixed: 774533
2018-07-20 12:06:23 -07:00
Jeff Johnson
696317bd53 qcacld-3.0: Remove wma_get_buf_extscan_change_monitor_cmd()
The task formerly done by wma_get_buf_extscan_change_monitor_cmd() is
now done in the common WMI project and this function is no longer
used, so remove it.

Change-Id: I4a42bda3c3b790bcd0c21abcda94a4f4aa49d8ff
CRs-Fixed: 2281906
2018-07-20 12:06:23 -07:00
Jeff Johnson
dc32f37143 qcacld-3.0: Remove wma_get_buf_extscan_start_cmd()
The task formerly done by wma_get_buf_extscan_start_cmd() is now done
in the common WMI project and this function is no longer used, so
remove it.

Change-Id: I840c6a5f83c6cdc479e6746f36a29c2a7970c964
CRs-Fixed: 2281900
2018-07-20 12:06:20 -07:00
nshrivas
34b5e0fc6f Release 5.2.0.89G
Release 5.2.0.89G

Change-Id: I3e39d5766dd6a3c58e560086f11765058d0bb307
CRs-Fixed: 774533
2018-07-20 10:46:49 -07:00
Dustin Brown
0127a73a2d qcacld-3.0: Enable/Disable MC filter when connected
Multicast address filtering only makes sense if the interface is
connected and capable of receiving traffic. Avoid enabling/disabling
the multicast address filter list on an interface that is disconnected.

Change-Id: Id8aff136e920bb726b8c7dd539d477ff44f080d4
CRs-Fixed: 2282003
2018-07-20 10:46:49 -07:00
nshrivas
68b8b4e394 Release 5.2.0.89F
Release 5.2.0.89F

Change-Id: I40d3d571e17fc6345dc7727f42aaae2a5802701a
CRs-Fixed: 774533
2018-07-20 09:31:06 -07:00
Amar Singhal
0cb9a5c808 qcacld-3.0: Refine ready event processing
1) Use correct typecast in function wma_process_fw_event_mc_thread_ctx
2) Change log level to debug and refine logs in
 wma_process_fw_event_handler

CRs-Fixed: 2281191
Change-Id: I4e67143d028867b193e42ec51f6f7562287eba82
2018-07-20 09:31:05 -07:00
Abhinav Kumar
68834229f5 qcacld-3.0: fix the beacon corruption in WMA beacon update msg
When beacon is updated the host pass the gSchBeaconFrameBegin
param to WMA to copy the beacon to WMI and pass the value to
firmware. gSchBeaconFrameBegin is global so if we receive new
beacon update in LIM before the WMA process the old beacon
update the values in the global gSchBeaconFrameBegin are
updated as per new beacon. So if there is change in beacon
length the first WMA msg copy the wrong beacon data and send
this corrupt date to firmware.

To fix this instead of passing the global gSchBeaconFrameBegin
fill the beacon date in the beacon update req itself.

Change-Id: I6d196784470d9a2aeeaba76e12577f9f65012bac
CRs-Fixed: 2272448
2018-07-20 09:31:02 -07:00
nshrivas
2e611d7fbe Release 5.2.0.89E
Release 5.2.0.89E

Change-Id: I0de82a86f2d267cc45ac7c465f390ad3c637709e
CRs-Fixed: 774533
2018-07-20 00:48:05 -07:00
Sourav Mohapatra
5daec820b0 qcacld-3.0: Remove wma_is_service_enable API
The API wma_is_service_enable is a wrapper on the converged
wmi_service_enabled API for services and extended services. The checks
used in the API are not updated for the converged service enum.

Replace wma_is_service_enable with wmi_service_enabled as there is no
need to have a wrapper

Change-Id: I4fe3601f7e1a031290e139f9ef55f845965b7b2e
CRs-Fixed: 2276471
2018-07-20 00:48:04 -07:00
nshrivas
c42862825e Release 5.2.0.89D
Release 5.2.0.89D

Change-Id: I4462f63f2b1e6f3e8ef817a3dbdf99bde6880c86
CRs-Fixed: 774533
2018-07-19 23:10:58 -07:00