Graphe des révisions

17062 Révisions

Auteur SHA1 Message Date
Abhishek Singh
cf340dd8e7 qcacld-3.0: Move common code for set channel and add bss to new api
Some of the code in set channel and add bss API is duplicate so move
it to a API which can be called from both place.

Change-Id: I73f1f7b06034cff88589f6818a94a202604287e1
CRs-Fixed: 2535158
2019-09-26 09:07:43 -07:00
Jianmin Zhu
9c35741281 qcacld-3.0: Refactor LFR2 and OCB vdev start
Refactor LFR2 and OCB vdev start, fill vdev mlme directly,
don't use wma_vdev_start_req.

Clean up wma_vdev_start_req
Clean up wma_vdev_start

Change-Id: Ic647271dee8c69f8cb9500fa3b5388ce7ef39ace
CRs-Fixed: 2534828
2019-09-26 21:32:45 +05:30
nshrivas
28dd6b2cd2 Release 5.2.0.150E
Release 5.2.0.150E

Change-Id: Ic955f290e161c9e90672f9c4e9f3d96068605c9b
CRs-Fixed: 774533
2019-09-26 05:52:25 -07:00
Min Liu
91de709b1c qcacld-3.0: Fix possible NULL wmi_handle dereference
Add NULL pointer check for wmi_handle

Change-Id: Iea5505379107b036d0cf245e423b6af73963538a
CRs-Fixed: 2531570
2019-09-26 05:52:24 -07:00
nshrivas
201baa6159 Release 5.2.0.150D
Release 5.2.0.150D

Change-Id: I85d781c6a885909b297efe5aebb1809a146abd84
CRs-Fixed: 774533
2019-09-26 01:20:33 -07:00
Rachit Kankane
6b79d8de18 qcacld-3.0: Avoid connection count in case of LFR2
In LFR2.0, number of connection count is already decremented
in hdd_sme_roam_callback. No need to again decrement this count
after roaming.

Change-Id: I185b5f7f2f79c1ba29b61797b6e879edb2c6b726
CRs-Fixed: 2519376
2019-09-26 01:20:33 -07:00
nshrivas
b34f21a47a Release 5.2.0.150C
Release 5.2.0.150C

Change-Id: If3a8610462e4d1230e02a74158f8f34ca0d301bb
CRs-Fixed: 774533
2019-09-25 23:57:35 -07:00
Abhishek Ambure
27f9830104 qcacld-3.0: Add dummy function for wma_set_ibss_pwrsave_params
In the legacy code, "wma_set_ibss_pwrsave_params" was called from
code protected under "QCA_IBSS_SUPPORT". Refactor ap vdev start
change call this function, hence dummy definition for
"wma_set_ibss_pwrsave_params" is added.

Inline dummy function "wma_set_ibss_pwrsave_params" is added to
overcome compilation errors if QCA_IBSS_SUPPORT is disabled.

Change-Id: Idff86469480d607c9ce1cc4f65fcd65b01a83308
CRs-Fixed: 2535135
2019-09-25 23:57:35 -07:00
Liangwei Dong
f242c78f7b qcacld-3.0: Check 3th connection valid on same mac
For 3th connection bring up, if first two connections
are SCC on same mac (STA+SAP or SAP+SAP), third connection
(STA or SAP) is not supported on same mac. Previous
commit If30cf58d2b16fc3ff4dfff4f75d7eeaa51786cad
lost the same mac check.

Change-Id: I278e94cbb1e368af57327da869bd961237e7b4b6
CRs-Fixed: 2534987
2019-09-25 23:57:30 -07:00
nshrivas
ef0d160c71 Release 5.2.0.150B
Release 5.2.0.150B

Change-Id: I3625969a0e4453422c782ea872fac9871a5415af
CRs-Fixed: 774533
2019-09-25 13:22:51 -07:00
gaurank kathpalia
7633dfcccb qcacld-3.0: Set chainmask for 2x2 dbs capable device
Set chainmask for 2x2 dbs capable device if enable2x2,
AS, and diversity are disabled.

Change-Id: I3ec8da95b868e79af1f44fdba63b2ee57e4365fa
CRs-Fixed: 2528035
2019-09-25 13:22:50 -07:00
nshrivas
92a28cb0d1 Release 5.2.0.150A
Release 5.2.0.150A

Change-Id: If0e122726287766ae5b0624dbc8a8f16da506f16
CRs-Fixed: 774533
2019-09-25 11:53:35 -07:00
Pragaspathi Thilagaraj
872bf8404f qcacld-3.0: Return correct status from csr_post_roam_state_change
Currently, sme_config_fast_roaming is called to set the
supplicant disabled roaming flag in the driver, which is
received over the vendor command
QCA_NL80211_VENDOR_SUBCMD_ROAMING. This supplicant disabled
roaming flag is used to toggle between RSO start and RSO stop.
When the driver is in disconnected state, the roaming module
would be in de-init state already. So the driver should return
success whenever a state change is received in disconnected
state. But currently the driver sends failure when its in
disconnected state. This results in sending failure status to
userspace.

Return QDF_SUCCESS status if any roam state change is requested
in disconnected state.

Change-Id: I520ab92b014eb1239e0164a39e0135e1bb4c2d70
CRs-Fixed: 2533019
2019-09-25 11:53:34 -07:00
nshrivas
2426dfc03b Release 5.2.0.150
Release 5.2.0.150

Change-Id: I230315dd2d2573d3aceaedb638f0d518f1c554e4
CRs-Fixed: 774533
2019-09-25 10:37:24 -07:00
bings
fe33a7c071 qcacld-3.0: Stop roam timer when receiving deauth roam event
Stop roam timer when receiving deauth roam event as FW suggests,
otherwise roam timer will be timeout.

Change-Id: I5dad9cea21b4b1c701904ec1efdc39b9b6a34bd8
CRs-Fixed: 2497029
2019-09-25 10:37:24 -07:00
Abhinav Kumar
523ca376a9 qcacld-3.0: Add support to dynamically enable roaming in STA+STA
Currently in STA+STA scenario roaming is enabled on the
first connected STA1 and is enabled on the other STA2 on
STA1 disconnection. This change adds support to dynamically
enable or disable roaming on any STA.

Change-Id: I34dc2730fb38193ea3dd0ec35c79df233f270913
CRs-Fixed: 2520827
2019-09-25 10:37:15 -07:00
Yeshwanth Sriram Guntuka
1669fc0508 qcacld-3.0: Add CSR APIs to maintain roam state machine
Add CSR APIs to maintain the roam state machine.

Change-Id: I68728cb657c5a492f141bea90b2da0d70cb61f08
CRs-Fixed: 2520826
2019-09-25 10:37:09 -07:00
Alok Kumar
29e501ddea qcacld-3.0: Fix restart adapter for QDF_MONITOR_MODE in SSR
During hdd_start_all_adapters for QDF_MONITOR_MODE,
wlan_hdd_set_mon_chan fails to change hw mode as recovery
is always in progress at this point. Since recovery is in
progress, the check for wlan_hdd_validate_context inside
wlan_hdd_change_hw_mode_for_given_chnl always returns -EINVAL.

Remove wlan_hdd_validate_context check from
wlan_hdd_change_hw_mode_for_given_chnl as caller
to this function has to validate the HDD context.

Change-Id: I818e0cfb6f9752d205c13b7a81889a3c1f023fc9
CRs-Fixed: 2529485
2019-09-25 10:37:02 -07:00
nshrivas
9f1d8c516e Release 5.2.0.149Z
Release 5.2.0.149Z

Change-Id: I9f6fc0ba5caa3309e4bd6a0c6469d4a9a78d8e60
CRs-Fixed: 774533
2019-09-25 09:20:38 -07:00
Bala Venkatesh
ab30be31ba qcacld-3.0: Do not send enable TDLS in case of DBS
Currently, TDLS set state command is sent to FW after any session
decrement without checking the HW mode is DBS. This can lead to
FW assert.

Check for HW mode before enabling TDLS in FW.

Change-Id: I70d5ba15c9b891f5d9b411960d51d684105061e8
CRs-Fixed: 2530773
2019-09-25 09:20:37 -07:00
nshrivas
596e524549 Release 5.2.0.149Y
Release 5.2.0.149Y

Change-Id: I95c9e92498f3cce99042136cdcd39332141a7923
CRs-Fixed: 774533
2019-09-25 06:14:10 -07:00
Hangtian Zhu
9a28ed0437 qcacld-3.0: Enable configurable dfs_pri_multiplier
Enable configurable dfs_pri_multiplier. The ETSI typ2 type3 radar
detection ratio is lower than expected(>80%) while channel loading is
high(>30%). The host improvement for this are:
	1. Add configurable dfs_pri_multiplier, controlled by
	   DFS_PRI_MULTIPLIER. Default value 2, min 1, max 10.
	2. Lower adrastea ETSI type 2/3/4 radar filter rssi_threshold,
	   controlled by DFS_OVERRIDE_RF_THRESHOLD, dfs log shows that
	   QCS405 target report RSSI range [18, 45] while radar power
	   is 3 dbm. By using default rssi_threshold 24 will reject
	   many radar pulses, which leads to low detection ratio.
	3. Calculate deltapri for each searchpri based on dfs_pri_multiplier
	   in dfs_count_the_other_delay_elements(), check deltapri
	   between [1, dfs_pri_multiplier] * refpri and searchpri, if
	   the primargin is desired, mark it as matched pulse.
	4. Pick lowpri as refpri for the radar filter with
	   rf_ignore_pri_window equals to 0 while DFS_PRI_MULTIPLIER is
	   enabled. Observed original findref logic has some problems
	   which selects refpri is bigger than lowpri, which leads to
	   the lowpri pulses pri_match are set to 0, and in this case,
	   radar was not detected. Example for the issue, assume
	   rf->rf_pulseid 34 (ETSI type 2) has 7 pulses with pri:
	   1489, 2978, 2978, 2978, 1489, 2978, 1489 us in this case,
	   highscore is 4 (2978), scoreindex is 5, refpri is 2978, which
	   leads to: index 0, 4, 6 pulses with pri_match 0 in
	   dfs_count_the_other_delay_elements(). The fix is to select
	   lowpri as refpri(1489 in this case).

Change-Id: I1f3ca3298c9ab1f1e2651ad6b4a0a4810f83f8a1
CRs-Fixed: 2522506
2019-09-25 06:14:10 -07:00
nshrivas
6e84bde0ad Release 5.2.0.149X
Release 5.2.0.149X

Change-Id: Id55e54fe8ce7a1c8de2f8e9baae76e8acbb4d154
CRs-Fixed: 774533
2019-09-25 04:58:54 -07:00
bings
14c3f069e5 qcacld-3.0: Add support to configure HE SGI for SAP
Add support for configuring HE SGI for SAP.

Change-Id: I57f4f7b592d3f518fe74ce58294543a4b8567ab8
CRs-Fixed: 2527533
2019-09-25 04:58:53 -07:00
Pragaspathi Thilagaraj
683c1cfe6c qcacld-3.0: Fix invalid vdev_id value while sending link report frame
In lim_send_link_report_action_frame(), the link report action
frame is filled in response to the link measurement request from
the AP. wma_tx_frame() is called to send the frame to the firmware.
But the vdev_id is initialized to 0 in
lim_send_link_report_action_frame(), but is not updated from
pe_session before passing it in wma_tx_frame. SO when STA comes
up on vdev 1, the vdev value is still sent as 0. This results in
the action frame dropped in firmware.

Fill the vdev_id from pe_session before sending it to firmware.

Change-Id: I5ee830fc6ca542c29f555bce63a77c3309777d3b
CRs-Fixed: 2530258
2019-09-25 04:58:45 -07:00
nshrivas
3c33fde7c7 Release 5.2.0.149W
Release 5.2.0.149W

Change-Id: I19614a7cf8a98efa9450f8c86ea0cb05f5385edd
CRs-Fixed: 774533
2019-09-25 02:30:55 -07:00
Wu Gao
18596aeaea qcacld-3.0: Update nan policy to allow SAP+NDP
Allow NDP if there is SAP, and remove duplicate codes.

Change-Id: Ibb59ad8bc9a2eb8638a0f11e78e8f0994422dfb7
CRs-Fixed: 2508265
2019-09-25 02:30:54 -07:00
nshrivas
1981a0febe Release 5.2.0.149V
Release 5.2.0.149V

Change-Id: I33276475648c6ace71f7b374a03a7fcf1b70dbd7
CRs-Fixed: 774533
2019-09-25 01:08:50 -07:00
bings
4ec11bbdf2 qcacld-3.0: fix max of gReportMaxLinkSpeed
The max value of gReportMaxLinkSpeed should be
CFG_STATS_LINK_SPEED_REPORT_MAX_SCALED.
Set the max value of gReportMaxLinkSpeed to
CFG_STATS_LINK_SPEED_REPORT_MAX_SCALED, otherwise
gReportMaxLinkSpeed does not work.

Change-Id: I164de224a4f4bfdd2dea55fe0a943fc4884326ff
CRs-Fixed: 2532054
2019-09-25 01:08:49 -07:00
Jianmin Zhu
58e929c24c qcacld-3.0: Refactor ap vdev start
1. When AP/IBSS/NAN vdev start, fill parameters into
vdev mlme directly.
2. LIM call wma API directly instead of post msg.
3. Add pre/post vdev start handlers
4. Remove following functions:
	wma_add_bss
	wma_add_bss_ap_mode
	wma_add_bss_ibss_mode
	wma_add_bss_ndi_mode
	mlm_add_sta
5. Add lim_set_ch_phy_mode to set phy mode for all vdev start
cases.

Change-Id: I0dc32e399dc9b49c9bbca16fbc4bd0f44eab284d
CRs-Fixed: 2533714
2019-09-25 01:08:40 -07:00
nshrivas
0b521cf895 Release 5.2.0.149U
Release 5.2.0.149U

Change-Id: I6872d014d954f78e62cf7f6829228aaea6d68ead
CRs-Fixed: 774533
2019-09-24 16:50:13 -07:00
Srinivas Dasari
603d497636 qcacld-3.0: Include MBO IE in assoc req only if peer supports PMF
Currently, MBO IE is included in assoc request if the peer
advertizes MBO IE and DUT is of MBO capability. But PMF (11w) is
a mandatory requirement for MBO. So include the MBO IE in assoc
request only if peer supports MBO along with PMF.

Change-Id: Ic0b542acdd8fc5011e7a2a4555973129c474100f
CRs-Fixed: 2528148
2019-09-24 16:50:13 -07:00
nshrivas
f63410f1a5 Release 5.2.0.149T
Release 5.2.0.149T

Change-Id: Iff78b2d07446cd578b200bddd233c244bae4d836
CRs-Fixed: 774533
2019-09-24 15:24:31 -07:00
Yu Tian
0cc79c7e5e qcacld-3.0: Fix IPA iface not initilized
There is a race condition of vdev_to_iface, it is referenced in IPA W2I
callback routine, but it's updated after IPA enable operation. If frames
received right after IPA enabled, callback function will return failure
due to vdev_to_iface value is not filled.

Change-Id: Iff831b66771539d1de4af89e395821dc50d13af3
CRs-Fixed: 2517515
2019-09-24 15:24:31 -07:00
nshrivas
68d5be2825 Release 5.2.0.149S
Release 5.2.0.149S

Change-Id: I6892bfea2b48f267ae925bb10af4b3fc2f023f94
CRs-Fixed: 774533
2019-09-24 13:59:50 -07:00
Abhishek Ambure
3ee80888e3 qcacld-3.0: Clean up struct wma_txrx_node unused members
As a part of vdev convergence, struct wma_tx_rx_node's bssid & addr
members are no more unused. These values are derived from mlme_obj.

So no more used members of struct wma_txrx_node are cleaned.

Change-Id: I2462a25f91b66b9efac42935a599f1362cb268f1
CRs-Fixed: 2532061
2019-09-24 13:59:50 -07:00
Abhishek Ambure
23beaf5925 qcacld-3.0: Keep wma_set_ibsskey_helper under CRYPTO_SET_KEY_CONVERGED
Fix compilation error caused if "CRYPTO_SET_KEY_CONVERGED" is enabled.

Keeping WMA IBSS code under "QCA_IBSS_SUPPORT" change i.e. 2861885
pulled "wma_set_ibsskey_helper" function outof macro protected code
"#ifndef CRYPTO_SET_KEY_CONVERGED", that caused compilation error
on enabling "CRYPTO_SET_KEY_CONVERGED".

Change-Id: I87650d094f5f39ffff94e1cce58cbb20e0aa0520
CRs-Fixed: 2533784
2019-09-24 13:59:43 -07:00
nshrivas
5a6f5c63fc Release 5.2.0.149R
Release 5.2.0.149R

Change-Id: I96c886ba2a132a27ad0e0216c07469d36c7061de
CRs-Fixed: 774533
2019-09-24 11:51:01 -07:00
Rakshith Suresh Patkar
a4dea9069a qcacld-3.0: Reset vdev_to_iface QDF_IPA_STA_DISCONNECT
In __wlan_ipa_wlan_evt, for QDF_IPA_STA_DISCONNECT event,
ipa_ctx->vdev_to_iface[session_id] is reset back to
WLAN_IPA_MAX_SESSION only when ipa_ctx->sap_num_connected_sta
is greater than 0. So, in STA+SAP concurrency case, when
no client is connected to SAP, if STA is disconnected,
vdev_to_iface is not reset for that particular session id,
making it unusable for further events involving IPA iface
creation.

Fix is to move the code to reset vdev_to_iface outside the check
for ipa_ctx->sap_num_connected_sta in QDF_IPA_STA_DISCONNECT
scenario, so that vdev_to_iface is reset irrespective of SAP.

Change-Id: I06c79b62c540546cf4842f81d235f96b2965661e
CRs-Fixed: 2525709
2019-09-24 11:51:01 -07:00
nshrivas
9071621421 Release 5.2.0.149Q
Release 5.2.0.149Q

Change-Id: I52f162fd772e94f2eb41aab66c43e325c55871d0
CRs-Fixed: 774533
2019-09-23 22:37:10 -07:00
guangde
87e1720b75 qcacld-3.0: Adjust the intervel of tsf sync timer
Because it has clock drift between Qtimer and target timer, so host
driver need to get two timer offset periodically, then transform the
tsf time from each RX packet to qtime according to this offset value.
If the intervel is too large, the result will not very accurate.
Modify the value from 9 seconds to 3 seconds for STA mode.
Modify the SAP tsf sync intervel to be the same as STA mode.

Change-Id: Id915cbf386059df8233246e196279cb376e2a25b
CRs-Fixed: 2531940
2019-09-23 22:37:10 -07:00
nshrivas
769eb6b4d0 Release 5.2.0.149P
Release 5.2.0.149P

Change-Id: I05e3fa9fb9f917b94236b2e570a1bf5e29a66fbb
CRs-Fixed: 774533
2019-09-23 17:10:52 -07:00
Jingxiang Ge
c2ac79b53a qcacld-3.0: Return failure if mac provision failed
In current code, if mac_provision is enabled, the
checking for return value of hdd_platform_wlan_mac
will be bypassed, this is not the intention.

Change as:
   when mac_provision is enabled, it returns
   only when getting mac address from platform failed.

Change-Id: I76aca9e4560c914a165f2042818746b6a2bb3661
CRs-Fixed: 2529981
2019-09-23 17:10:51 -07:00
nshrivas
c96fe0f1f2 Release 5.2.0.149O
Release 5.2.0.149O

Change-Id: Ic24675cf6d5f2a84614275daab0f6584e946c2a1
CRs-Fixed: 774533
2019-09-23 14:52:32 -07:00
tinlin
c99fa7f76f qcacld-3.0: Fix possible null pointer dereference
roam_info may be null pointer and be explicitly
dereferenced when roam_status is
eCSR_ROAM_LOSTLINK in hdd_dis_connect_hanler.
Add null check for roam_info before
getting roam_info->reasonCode.

Change-Id: I11be7b722921a9be8ed1419251f6cbf19506a11d
CRs-Fixed: 2531563
2019-09-23 14:52:31 -07:00
Tushnim Bhattacharyya
ba6d1e030a qcacld-3.0: Replace channel with frequency in channel_info
Replace channel ID with frequency in struct hdd_channel_info
& oem_channel_info.

Change-Id: I1a14ab40da4824d2861a7ec862cc322a158f0cd1
CRs-Fixed: 2532299
2019-09-23 14:52:27 -07:00
nshrivas
5a62d9a3c6 Release 5.2.0.149N
Release 5.2.0.149N

Change-Id: Ifa125691b244b880fd6782b4ed4eecfc2cc02598
CRs-Fixed: 774533
2019-09-23 12:45:47 -07:00
Arun Kumar Khandavalli
52cca56368 qcacld-3.0: Flush the wmi_rx_work_queue when the ready event fails
If the ready event times out the waiting thread in the error condition
starts closing the modules but in the other
thread the wmi_rx_work_queue could be executing trying to access the
data which being freed in the other thread.

Flush the wmi_rx_work_queue when the ready event times out.

Change-Id: I7d91b3fa5f3468c607ce3669eabf7d2e3789774d
CRs-Fixed: 2524305
2019-09-23 12:45:47 -07:00
nshrivas
27c9d957b8 Release 5.2.0.149M
Release 5.2.0.149M

Change-Id: Icee48a7db25d1edb9090f84b00e8a50ba85c0c76
CRs-Fixed: 774533
2019-09-23 09:26:01 -07:00
Srinivas Dasari
240d327763 qcacld-3.0: Consider def roam scan periods only if not conf'd explicitly
Roam control enable sends default values for roam scan period and
full roam scan period to make sure undesirable values are not
used. But user might want to update values dynamically through
vendor cmd/DRIVER cmd before issuing roam control enable and
doesn't want to overwrite these values with default values.
So, consider default values sent only if user hasn't configured
already. This can be done by comparing configured value with
ini values.

Change-Id: I68ac6a9afbe4a45c1a1ade3286c57f36303c49e9
CRs-Fixed: 2530344
2019-09-23 09:26:00 -07:00