Commit Graph

15074 Commits

Author SHA1 Message Date
Wu Gao
efd73546c8 qcacld-3.0: Check peer phymode only if DUT is SAP/GO
Force set peer's phymode to the phymode of current interface if first
one big then second one, then TDLS link can't select more better
phymode when DUT support VHT mode and connect to 11A mode AP.

Change-Id: Idc72e04dcdf7ead3b52effc2c06862bc9dddd732
CRs-Fixed: 2512622
2019-08-22 08:45:22 -07:00
nshrivas
e2c0cd722c Release 5.2.0.145H
Release 5.2.0.145H

Change-Id: I94b65199261a92cf710fe89ecbb1e0f972755f50
CRs-Fixed: 774533
2019-08-22 07:31:12 -07:00
Vevek Venkatesan
e81bca8057 qcacld-3.0: cleanup IPA STA iface, if STA disconnect failed
If STA disconnect failed for any reason, cleanup IPA STA iface
if not already done.

Change-Id: I27ff33324bc4724e8470af9a0c434fa03e8aa5c3
CRs-Fixed: 2505563
2019-08-22 07:31:12 -07:00
nshrivas
6b5f63ea1d Release 5.2.0.145G
Release 5.2.0.145G

Change-Id: Ia201b376f29db6032aeb386757633b013a89fc85
CRs-Fixed: 774533
2019-08-22 04:23:50 -07:00
Vulupala Shashank Reddy
6d6f68d04b qcacld-3.0: Fix possible NULL pointer de-reference
Fix possible NULL pointer de-reference in functions
peer_unmap_timer_handler().

Change-Id: I2ec6af12b1f8232a247729fd658c2d51ff163405
CRs-Fixed: 2512610
2019-08-22 04:23:24 -07:00
nshrivas
769827b015 Release 5.2.0.145F
Release 5.2.0.145F

Change-Id: I1ba8f1f89fb006d4f697034b71ddbc6301b5e5b7
CRs-Fixed: 774533
2019-08-22 01:37:51 -07:00
hangtian
0f76fdfac0 qcacld-3.0: Set hidden_ssid when restart sap on another channel
Set hidden_ssid when restart sap on another channel, currently tested 2
methods to restart sap on another channel: 1, force-scc switch to station
channel; 2, iwpriv wlan1 setChanChange x. Both of them run into error
state: with hidden_ssid set in hostapd.conf: ignore_broadcast_ssid=1,
after channel switch, APUT reply broadcast probe request with it's SSID.
Copy pe session parameter: ssidHidden which stored user setting to next
channel vdev start.

Change-Id: I56580529e2b0db673c6b28c75094a7fd225cba77
CRs-Fixed: 2506214
2019-08-22 01:37:50 -07:00
Abhishek Ambure
2bd960b047 qcacld-3.0: Clean up del bss param structure
Unused members of delete bss params structure are removed
and structure is re-framed.

Change-Id: Ib2e7c72e0636765341792a79aa12968a84ed4879
CRs-Fixed: 2512877
2019-08-22 01:37:44 -07:00
nshrivas
dd19316e23 Release 5.2.0.145E
Release 5.2.0.145E

Change-Id: I7f190d8f7efb9f87ad6f6796a4beca26d96fe889
CRs-Fixed: 774533
2019-08-21 16:26:29 -07:00
Rajeev Kumar
f06009a8d2 qcacld-3.0: Allow system suspend to complete when wifi is off
When wifi is off wlan module is closed and hence allow cfg80211
suspend/resume to pass and return success to kernel.

Change-Id: Ic7d43a690c75be1254afa97f872d5c8228f93fcc
CRs-Fixed: 2512492
2019-08-21 16:26:29 -07:00
nshrivas
3c73e07780 Release 5.2.0.145D
Release 5.2.0.145D

Change-Id: I029f202c3270ff5a28a9328f6e4c7b39bf3b0ee3
CRs-Fixed: 774533
2019-08-21 10:10:23 -07:00
Sourav Mohapatra
ebcbae20cc qcacld-3.0: Declare hdd_roam_deregister_tdlssta as static
Currently the function hdd_roam_deregister_tdlssta is not declared
as static when the macro FEATURE_WLAN_TDLS is not defined. This can
cause a multiple definition error.

Declare the function as static so as to avoid this build time error.

Change-Id: Id85f8bed57a7bdfbeac5722ea687066f7f74a50f
CRs-Fixed: 2511744
2019-08-21 10:10:22 -07:00
nshrivas
b838eb76cf Release 5.2.0.145C
Release 5.2.0.145C

Change-Id: I3743f1adbcd410107c0b7d0dfd185157314f7d9b
CRs-Fixed: 774533
2019-08-21 05:29:55 -07:00
Srinivas Dasari
b78334d5ef qcacld-3.0: Cleanup roam scan channels configuration
Currently roam channel list is directly accessed from
mac->roam.neighborRoamInfo[sessionId].cfgParams.channelInfo
in multiple APIs to set/clear.
This needs to be enhanced as as firmware supports two channel
lists(static and dynamic) for roam scan, userspace may configure
both the lists. Cleanup the APIs to accommodate both of the
channel lists. Rename the variable channelInfo of cfgParams to
specific_chan_info to suit the usage.

Change-Id: I67548bc040c2296b75b9429f5891a5251a2a88d6
CRs-Fixed: 2507157
2019-08-21 05:29:55 -07:00
Abhishek Ambure
d75086a6f0 qcacld-3.0: Do not release start wakelock in vdev down
Legacy code releases vdev start wakelock after vdev down
command sent to firmware to overcome race condition. Target_if
common code takes care for wakelocks.

Hence, do not release start wakelock in legacy code.

Change-Id: I550ffb17e2e29f3b0bad618dc9ef9463a94800aa
CRs-Fixed: 2512151
2019-08-21 05:29:50 -07:00
Bala Venkatesh
42e07eac72 qcacld-3.0: Avoid NULL pointer access
In function wlan_hdd_set_sap_csa_reason, sap_ctx pointer is
dereferenced without NULL check.

Add NULL check to avoid null pointer access.

Change-Id: I74bbfdcae6d5a06d5eaf0cd66e3ff9c3380c6bb0
CRs-Fixed: 2512034
2019-08-21 05:29:46 -07:00
nshrivas
e368d10bf1 Release 5.2.0.145B
Release 5.2.0.145B

Change-Id: Ibd9a6b475733f52b68c6ff0b03d3273e274891b7
CRs-Fixed: 774533
2019-08-21 00:06:02 -07:00
Subrat Dash
b1e61b2083 qcacld-3.0: Add support for gpio based strobe to capture tsf
Add configuration for gpio pin used to send strobe to wlan hw.

The host driver will latch the current time and toggle the gpio
to generate a strobe to wlan hw.

The tsf will be latched on detecting the strobe and it will be
made available in a register for sw access.
The wlan fw will read this tsf and report it to driver using tsf event.

Change-Id: I4365d97d22836ddbbd2bf9913d4f723e5a870369
CRs-Fixed: 2495152
2019-08-21 00:06:01 -07:00
nshrivas
bcb1a96d5a Release 5.2.0.145A
Release 5.2.0.145A

Change-Id: I9ef4d261410d20fd30a2970f82be0c757ad31862
CRs-Fixed: 774533
2019-08-20 22:53:50 -07:00
Abhishek Singh
682cf6f843 qcacld-3.0: Fix WMI timeout for runtime PM
For runtime PM if the bus is suspended driver need to consider
extra 6 sec time for bus resume.
Thus add 6 sec extra in WMI timeouts if runtime PM is supported.

Change-Id: I5515cc889a0315382bac11a33ea6f901b7af1c46
CRs-Fixed: 2507029
2019-08-20 22:53:50 -07:00
nshrivas
35d3347505 Release 5.2.0.145
Release 5.2.0.145

Change-Id: I8b170cf2c62625d665c2d46e9cfc1215110f2ba5
CRs-Fixed: 774533
2019-08-20 20:26:36 -07:00
Alan Chen
3018129b66 qcacld-3.0: Complete the wait for event if register driver fails
Complete the wait for event if register driver fails during insmod.

Change-Id: I1855d7304b63a926e328c8713a317d6be2b22d0e
CRs-Fixed: 2512236
2019-08-20 20:26:35 -07:00
nshrivas
5ffad4d80a Release 5.2.0.144Z
Release 5.2.0.144Z

Change-Id: I3f620d95ad779919e44de7174ca946ae9cdf2b46
CRs-Fixed: 774533
2019-08-20 14:38:32 -07:00
Nirav Shah
7f37dbea19 qcacld-3.0: Fix DHCP indication to FW feature in SAP for HL
In case of HL, send tx completion bit in HTT tx descriptor
to receive tx completion from FW and disable DHCP indication
to FW properly.

Change-Id: Iff8e0c1f5d95c4f62af8b498552d92b57006969c
CRS-Fixed: 2506011
2019-08-20 14:38:32 -07:00
nshrivas
86f222418b Release 5.2.0.144Y
Release 5.2.0.144Y

Change-Id: Ica9a04135069bbdc5e1d62e0320c3a1ea1ba4f3a
CRs-Fixed: 774533
2019-08-20 05:19:34 -07:00
Jianmin Zhu
ef22819b7f qcacld-3.0: Refactor lim add bss rsp handler
Replace lim functions parameter struct scheduler_msg
with struct bss_params.
Internal functions don't need param struct scheduler_msg,
wma can call lim API: lim_handle_mlm_add_bss_rsp directly
instead of post msg.

Refactor struct bss_params memory free method.
whether success or fail when handle lim add bss rsp,
struct bss_params memory need free, it is simple and
clear to free only in one place: end of
lim_handle_mlm_add_bss_rsp.

Change-Id: I2d5d647a6949b1e0bdfbbe9a4dfb390a362a75ee
CRs-Fixed: 2508876
2019-08-20 05:19:33 -07:00
Lin Bai
96f6609e86 qcacld-3.0: Rename last_acs_channel_list to last_acs_freq_list
This member renamed by another change recently, and change here
accordingly to avoid compilation issue.

Change-Id: I65903cdb5255deca4b4a83daceec178790e76501
CRs-Fixed: 2505462
2019-08-20 05:19:28 -07:00
Pragaspathi Thilagaraj
1c17ee93f7 qcacld-3.0: Set correct op_flag in sme_set_del_pmkid_cache
Currently the host driver sets PMKSA op_flag for flush and
delete PMKSA entry as in both the cases PMK length is 0.
This is not correct because for delete PMKSA command only
the bssid and SSID will be sent to the firmware.
For the host driver to distinguish between del_pmksa and
flush pmksa, the is_flush_all flag should be used.
is_flush_all: true - Flush pmksa
is_flush_all: false - set/del pmksa based on the action flag.

Change-Id: I7eac65317a9c6904cfd08acce328a65df451269e
CRs-Fixed: 2503372
2019-08-20 05:19:22 -07:00
nshrivas
d384a3f3b8 Release 5.2.0.144X
Release 5.2.0.144X

Change-Id: I6e03041a83005cca927cda1f0e90e04a65365e24
CRs-Fixed: 774533
2019-08-20 03:59:24 -07:00
Rakshith Suresh Patkar
73654d0a34 qcacld-3.0: Cleanup ol_txrx_flush_cache_rx_queue [PEER_ID_PHASE1]
Cleanup ol_txrx_flush_cache_rx_queue to find peer
from peer_list instead of sta_id.

Change-Id: Ia737e732051f3cdad53b1a552eb273b8a05562aa
CRs-Fixed: 2508259
2019-08-20 03:59:24 -07:00
Sourav Mohapatra
efb49da46e qcacld-3.0: Clean up the usage of sta_to_adapter in HDD
The mapping of sta_id to the adapter in hdd context stores the adapter
with respect to the corresponding sta_id. Currently, the mapping is not
used anywhere in the driver even though the adapters are stored in it.

As there is no usage for the mapping, remove it as a part of sta_id
cleanup effort.

Change-Id: I26590a69e61d82f723a83eb3f9f24c42afa6c5a2
CRs-Fixed: 2511767
2019-08-20 03:59:20 -07:00
nshrivas
8f97145518 Release 5.2.0.144W
Release 5.2.0.144W

Change-Id: Idb8f04034b6a443df766f09b7fc139e50dadcb27
CRs-Fixed: 774533
2019-08-20 02:39:26 -07:00
Will Huang
c3fb27d117 qcacld-3.0: Make hdd_switch_sap_channel execute once at same time
The sap unsafe channel restart process include two subprocesses: CSA ie
update and channel switch, but CSA ie update request using
mac->sap.SapDfsInfo to save target channel switch parameters, which
would be overwritten by 2nd sap restart at same time. For example:
SAP1 on chan 1 and SAP2 on chan 36, then lte coex mark chan 1 and
chan 36 as unsafe channels, now SAP1 and SAP2 would switch to same
channel, but actually they can be on different channels doing DBS.

To fix it, one option is save the target channel switch parameters to
different session, but looks it may introduce a lot of code change,
because the logic is shared with DFS/concurrency. So the simple option
is making sap unsafe channel restart execute once at same time.

Change-Id: Ieaab3007fb6e79a9741f892e86771d2f52c03e3c
CRs-Fixed: 2504867
2019-08-20 02:39:21 -07:00
nshrivas
c2708a8d50 Release 5.2.0.144V
Release 5.2.0.144V

Change-Id: I5042da5df0edf21ebbd8cdef3e946d44192e27e8
CRs-Fixed: 774533
2019-08-19 09:37:14 -07:00
Abhishek Ambure
09905d743a qcacld-3.0: Refactor vdev stop/down code
Refactor vdev stop and down code to target_if common code.
Remove legacy code for vdev stop and down.

Change-Id: I4ab0743d39a3b37816ab9f18e8850cadf1335c15
CRs-Fixed: 2506649
2019-08-19 09:37:13 -07:00
nshrivas
9bb3305a94 Release 5.2.0.144U
Release 5.2.0.144U

Change-Id: I5f8c5ae6771a0da58a9fa5e20ed369acad552482
CRs-Fixed: 774533
2019-08-19 06:19:19 -07:00
wadesong
bf39868cae qcacld-3.0: Fix an improper parameter type casting
In function csr_check_concurrent_channel_overlap, local
variable intf_ch is defined as uint16_t, but its pointer
is casted to uint32_t * before invoking
policy_mgr_get_sap_mandatory_channel, which will do
32-bit memory write and causes a stack memory over-
writing.

Call Trace:
  dump_stack+0x46/0x59
  print_address_description+0x66/0x22b
  kasan_report+0x21f/0x245
  policy_mgr_get_sap_mandatory_channel+0x1fd/0x258 [wlan]
  csr_check_concurrent_channel_overlap+0xf84/0x10d2 [wlan]
  sme_check_concurrent_channel_overlap+0xaa/0xf0 [wlan]
  wlansap_check_cc_intf+0x102/0x124 [wlan]
  wlan_hdd_get_channel_for_sap_restart+0x506/0x8f8 [wlan]
  policy_mgr_check_sta_ap_concurrent_ch_intf+0x35e/0x425[wlan]
  process_one_work+0x2cc/0x53b
  worker_thread+0x357/0x490

Change the type of the 2nd parameter to uint16_t within
function policy_mgr_get_sap_mandatory_channel, so only
16-bit memory writing will take place.

Change-Id: If514a394e65d005a1fe025c0e753bf7440dd5dde
CRs-Fixed: 2508798
2019-08-19 06:19:15 -07:00
nshrivas
d0aad46178 Release 5.2.0.144T
Release 5.2.0.144T

Change-Id: I42435cd2333b10fca7d5e69883d4793df6a36386
CRs-Fixed: 774533
2019-08-19 02:10:46 -07:00
Wu Gao
b4944be672 qcacld-3.0: Call target_if_init after dispatcher_init
Direct buffer tx component initializes in target_if_init, which cause
platform assert since g_umac_glb_obj is NULL. So change the order to
avoid NULL pointer access.

Change-Id: I348775d08ccc478caef605c2ae8d1b6d65d77eb2
CRs-Fixed: 2497809
2019-08-19 02:10:46 -07:00
Nirav Shah
5db193fced qcacld-3.0: Featurize partial reorder properly
Avoid compiling ol_rx_reorder.c and ol_rx_reorder_timeout.c
for low latency and only compile for high latency
data path.

Change-Id: I1f3819fa093766abba87e5dc6dc44e6d2188740b
CRs-Fixed: 2506005
2019-08-19 02:10:41 -07:00
nshrivas
f0ff8b3c90 Release 5.2.0.144S
Release 5.2.0.144S

Change-Id: I0d0c4afe147756faf8b855aa72252f93776178fb
CRs-Fixed: 774533
2019-08-19 01:02:25 -07:00
Wu Gao
6c5a45bcc5 qcacld-3.0: Fix compilation issue about wma_init_dbr_params
In "Change-Id: I2896f7704ffb809214c5b08756c4b8673307fd9e", parameter
type of hif_get_hal_handle changed from void to hif_opaque_softc,
which cause compilation failure in wma_init_dbr_params.

Change-Id: Idbb591bb1ea1507661882fe48b18eaaffcac164d
CRs-Fixed: 2504894
2019-08-19 01:02:25 -07:00
nshrivas
ee31b3807a Release 5.2.0.144R
Release 5.2.0.144R

Change-Id: I49b401e224c10a4edd0f09199aa5d495890f0d12
CRs-Fixed: 774533
2019-08-18 23:44:57 -07:00
Jinwei Chen
c460236962 qcacld-3.0: support monitor mode enablement by changing driver mode
Support monitor mode enablement by changing driver mode, and also
remove the support that enable monitor mode with insmod parameter
"con_mode_monitor = 4", use "con_mode = 4" instead.

enable monitor mode steps for reference:
(1) change driver mode
   a. svc wifi disable
   b. echo 4 > /sys/module/wlan/parameters/con_mode
   c. ifconfig wlan0 up
   d. iwpriv wlan0 setMonChan 11 0

(2) insmod with kernal parameter way
   a. insmod /vendor/lib/modules/qca_cld3_wlan.ko con_mode=4
   b. ifconfig wlan0 up
   c. iwpriv wlan0 setMonChan 11 0

Change-Id: Ie615533d060261d545b3b92bea9916099ccccadd
CRs-Fixed: 2494158
2019-08-18 23:44:56 -07:00
nshrivas
7a4e739332 Release 5.2.0.144Q
Release 5.2.0.144Q

Change-Id: I1d08da1e1f4ec4ef19517034b44c4568498f5304
CRs-Fixed: 774533
2019-08-18 10:10:26 -07:00
Sourav Mohapatra
5ab5180d9e qcacld-3.0: Rectify possible scenario of double free
Presently in the driver, in function hdd_objmgr_create_and_store_vdev
the vdev object is created and stored. In case the creation of the vdev
fails due to some reason, the corresponding error condition tries to
free the osif_priv pointer. This osif_free pointer is actually already
freed as a part of vdev_obj_delete -> vdev_release_ref -> vdev_obj_free.
As this is already freed, a possible double free scenario can occur in
the original error handling scenario.

To avoid this scenario, do not free the osif_priv pointer in the error
handling as it is already taken care in the caller.

Change-Id: I7fc7be187ce1e303c81da885a75c600a7b6c4b3e
CRs-Fixed: 2507432
2019-08-18 10:10:25 -07:00
nshrivas
fb1f91d2f9 Release 5.2.0.144P
Release 5.2.0.144P

Change-Id: I6a732c294e84d0332b046d1ea07d8891d8b44c6c
CRs-Fixed: 774533
2019-08-18 08:20:30 -07:00
nshrivas
2ee792e7fa Release 5.2.0.144O
Release 5.2.0.144O

Change-Id: Iac2ad41535316152e4d022f6c378d099aaa2fad7
CRs-Fixed: 774533
2019-08-18 06:21:33 -07:00
Srinivas Dasari
0cc6437fa1 qcacld-3.0: Rename the values of qca_wlan_vendor_roaming_subcmd
enum qca_wlan_vendor_roaming_subcmd contains different values of
subcmds to be used with QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD and
these are not attributes.
Values of the enum qca_wlan_vendor_roaming_subcmd have been
renamed according to usage and relevant documentation is added
in qca-vendor.h. Make corresponding changes in usage to avoid
compilation errors.
Use right max index(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX) while
parsing for PARAM_LIST_SSID. This caused compilation error as the
inappropriate max index(QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX)
is used for parsing which has been deleted now.

Change-Id: Ifc063b801ba2729e8cff1581ef63e78e1d36a32d
CRs-Fixed: 2508196
2019-08-18 06:21:32 -07:00
nshrivas
4413e54112 Release 5.2.0.144N
Release 5.2.0.144N

Change-Id: I60df6816eec79fbc4e96439d29469ab4094e8237
CRs-Fixed: 774533
2019-08-17 10:53:43 -07:00
Sourav Mohapatra
5d22fbd743 qcacld-3.0: Refactor HDD for changes in cdp_fc_get_tx_resource
Currently, the API cdp_fc_get_tx_resource  takes as input the sta_id. As a
part of cleaning up the usage of sta_id, replace it by peer mac address.

Change-Id: I7b81a05d312da84aa16c82f0f6152710daf986c5
CRs-Fixed: 2507274
2019-08-17 10:53:42 -07:00
Rakshith Suresh Patkar
6ff56da568 qcacld-3.0: Cleanup ol_txrx_get_tx_resource[PEER_ID_PHASE1]
Cleanup ol_txrx_get_tx_resource to be peer mac address based
from local peer id based.

Change-Id: Id7ac4b5152c782d3475d9fad59f8f835102483cc
CRs-Fixed: 2508132
2019-08-17 10:53:38 -07:00
nshrivas
f018ae60d7 Release 5.2.0.144M
Release 5.2.0.144M

Change-Id: I41d2dc55dffe91211d058bde7709213b8a9031db
CRs-Fixed: 774533
2019-08-16 22:21:36 -07:00
Alan Chen
6ccc4fa788 qcacld-3.0: Sync runtime pm resume when system suspend occurs
Some system suspend commands are getting sent to firmware while
runtime resume is in progress. Sync runtime pm resume when system
suspend occurs to avoid this.

Change-Id: I6e652104e984b81e29a5f328fcf3937502a8f47f
CRs-Fixed: 2509910
2019-08-16 22:21:36 -07:00
nshrivas
8fd84758e7 Release 5.2.0.144L
Release 5.2.0.144L

Change-Id: I1799cbf900b786153e151e0b1f471375fd32b65e
CRs-Fixed: 774533
2019-08-16 18:32:45 -07:00
Rakesh Pillai
79afaed56e qcacld-3.0: Destroy NUD tracking work only for STA mode
Currently the NUD tracking is done only for STA mode.
For all the adapters the NUD tracking work is not
created and hence should not be destroyed when the
adapter is cleaned up.

Destroy the NUD tracking work only for the STA adapter.

CRs-Fixed: 2505365
Change-Id: I677a07cb37e2d547e62b7ffebf6d014255a9d237
2019-08-16 18:32:44 -07:00
nshrivas
076a3031f9 Release 5.2.0.144K
Release 5.2.0.144K

Change-Id: I0ba188ac6f90cc4e8ff0bf9955efd491927e193d
CRs-Fixed: 774533
2019-08-16 10:48:32 -07:00
Yeshwanth Sriram Guntuka
f33e2fe57c qcacld-3.0: Add debug print for beacon report meas mode
Add debug print to indicate the measurement mode for
beacon report request.

Change-Id: I7f61cd7f058ef0dcc4db425e685974cc3f53415a
CRs-Fixed: 2507593
2019-08-16 10:48:31 -07:00
nshrivas
037d8093e7 Release 5.2.0.144J
Release 5.2.0.144J

Change-Id: I72208d5efcf08964b44864274b33777f7c61024a
CRs-Fixed: 774533
2019-08-16 08:22:42 -07:00
Chaoli Zhou
74af4177a8 qcacld-3.0: Add packet drop status
In the current wlanhost driver dump status, it doesn't
support to count the dropped packets seperately that
due to firmware don't have enough tx descriptors, so
add such function which can benefit KPI tune.

Change-Id: I1a72acbc4f1f861c2013a1ef1a95b73acccd6b53
CRs-Fixed: 2507410
2019-08-16 08:22:41 -07:00
gaurank kathpalia
69f052b95b qcacld-3.0: Avoid channel 12, 13 for SAP operation
Currently the driver selects channel 12, 13 as they are
free from BSS as their weights are minimum, which results
into IOT issues as legacy STAs do not support the same.

Fix is to avoid channel 12, 13 in SAP ACS process, and try
to start the SAP on channels from 1 - 11.

Change-Id: If735fade7d7b489b45a20f74c04bab5582343f79
CRs-Fixed: 2509791
2019-08-16 08:22:37 -07:00
Jingxiang Ge
ae80dc665c qcacld-3.0: Remove channel and rename freq in hdd_connection_info
Convert channel to freq in hdd_connection_info, so
remove unused 'channel' and rename 'freq' to 'chan_freq'.

Change-Id: I0d3fd39f9ac3c2303729b27b7c97385097c82104
CRs-Fixed: 2508791
2019-08-16 08:22:33 -07:00
nshrivas
4d09b7f83e Release 5.2.0.144I
Release 5.2.0.144I

Change-Id: I49feb1453a8f92faef735178566d6411f1ebeae3
CRs-Fixed: 774533
2019-08-16 04:13:35 -07:00
Liangwei Dong
d8ecec378d qcacld-3.0: Add INI for P2P GO force SCC
1. Add g_enable_go_force_scc INI configuration
to enable force SCC on P2P GO interface.
This option only takes effect when
gWlanMccToSccSwitchMode INI enabled.
2. Add API policy_mgr_is_go_allow_force_scc to get
the above configuration value for GO.
Driver will apply "MCC to SCC" logic to P2P GO
interface based on STA active status and the configurated
INI values.

Change-Id: I1d16368b5f2d88984b91ef0a3e882148c20dcd23
CRs-Fixed: 2509555
2019-08-16 04:13:34 -07:00
nshrivas
823c5596fd Release 5.2.0.144H
Release 5.2.0.144H

Change-Id: I5dafbd82e825ad33a51d7e42421cd0d015ddcc26
CRs-Fixed: 774533
2019-08-16 02:57:49 -07:00
Liangwei Dong
11019a0eb1 qcacld-3.0: Restart SAP when sta disconnected
In AP+STA case, if g_sta_sap_scc_on_lte_coex_chan != 0,
SAP is allowed SCC with STA on unsafe channel. And
if g_sta_sap_scc_on_dfs_chan != 0, SAP is allowed
SCC with STA on DFS channel.
But when the STA disconnected, standalone SAP is not allowed
on unsafe channel or DFS channel. We need to move
the SAP to safe channel or non DFS channel.
The original API -
policy_mgr_is_sap_restart_required_after_sta_disconnect
only handle AP+STA case. Change it to cover 3VIF
concurrency case - AP+AP+STA.

Change-Id: Iec4e750d8b3fda0cc52ac698ecaa9a274f935706
CRs-Fixed: 2509545
2019-08-16 02:57:48 -07:00
nshrivas
494b8241d7 Release 5.2.0.144G
Release 5.2.0.144G

Change-Id: I73932759bf7916e96423c4a303c2f6f13789778c
CRs-Fixed: 774533
2019-08-15 20:38:22 -07:00
Sourav Mohapatra
a93de1c382 qcacld-3.0: Refactor HDD according to cdp_peer_get_vdev_by_sta_id
Currently, cdp_peer_get_vdev_by_sta_id takes as input the sta_id. As a
part of cleaning up the usage of sta_id, replace it by peer mac address.

Change-Id: Ibb7f3489899ac3fda48ad5e54891cd2d7623c6c8
CRs-Fixed: 2507219
2019-08-15 20:38:15 -07:00
Rakshith Suresh Patkar
6a8802ff1a qcacld-3.0: Cleanup ol_txrx_get_vdev_by_peer_addr[PEER_ID_PHASE1]
Rename API ol_txrx_get_vdev_by_sta_id to ol_txrx_get_vdev_by_peer_addr
and cleanup ol_txrx_get_vdev_by_peer_addr to be peer mac address based
from local peer id based.

Change-Id: Ie3b8a1d97b5196e7306e5641cb894f31b8abe154
CRs-Fixed: 2504565
2019-08-15 20:38:09 -07:00
nshrivas
f37d3bb077 Release 5.2.0.144F
Release 5.2.0.144F

Change-Id: I185dd5ee4a4edc9d82454650cea78b2de6e8665f
CRs-Fixed: 774533
2019-08-15 12:28:34 -07:00
gaurank kathpalia
b4539e1cf1 qcacld-3.0: Check vdev state before ACS cb
Currently the driver calls the pre bss scan cb
which is used to calculate the weight to start
the SAP on best channel. This API depends upon
the SAP context pointer which is passed as a arg
to the scan module, which in turn returns the arg
as part of the scan cb. But it may happen that
the SAP was deleted before the scan cb was called.
In that case pre bss scan cb and weight calculation
does not matter to the driver as SAP in any case is
OFF. Here the sap context which was passed as an arg
to the ACS cb is used after free, and there is no way
currently to validate the pointer. But as part of scan
cb, the driver gets a vdev pointer, which would be in a
logically deleted state, if the stop adapter for SAP has
been done. Using this data, the driver can know the object
status, and then decide to continue with the weight calculation.

Fix is to try get vdev ref before the weight calculation algo
kicks in, and return if the reference cannot be taken to avoid
use after free for SAP-context.

Change-Id: Ib9c3bde4a36ee49efdadab3dc531991b8688f79e
CRs-Fixed: 2509249
2019-08-15 12:28:34 -07:00
nshrivas
6c6993dee6 Release 5.2.0.144E
Release 5.2.0.144E

Change-Id: Ic31f8a34c6c2c48e9c3e88446da4a85055733eeb
CRs-Fixed: 774533
2019-08-15 01:03:16 -07:00
hqu
54e6ba12b6 qcacld-3.0: Follow concurrent SAP switch channel in the same band
When lte channel avoidance event triggered, multiple SAP will choose
safe channel from pcl/acs combination and switch to the safe channel
one by one.

Actually when force SCC mode is enabled, if one SAP is the same band
as other concurrent SAP whose channel is already safe, it doesn't
need to choose safe channel from pcl/acs again, just needs to
follow concurrent SAP channel. Add code to implement this policy.

Change-Id: Icc9b2a53bb56915daeab8d94eceaaa64a660cb65
CRs-Fixed: 2500183
2019-08-15 01:03:16 -07:00
nshrivas
618100452b Release 5.2.0.144D
Release 5.2.0.144D

Change-Id: I585f08afe7b34f0fa09754686ec3737d6cac181c
CRs-Fixed: 774533
2019-08-14 21:31:26 -07:00
Jinwei Chen
b681a483ca qcacld-3.0: Skip GRO flush indication when T-put is low
To meet 11a/b/g TCP RX T-put KPI, disable GRO flush indication
when T-put is low.

Change-Id: I2932f9161631b082f8ffacb3c24a1cf609f28d35
CRs-Fixed: 2493829
2019-08-14 21:31:25 -07:00
nshrivas
38ce3e2868 Release 5.2.0.144C
Release 5.2.0.144C

Change-Id: Ie08e39a11a426b40c090dd6cdadb6b49770f90ae
CRs-Fixed: 774533
2019-08-14 17:01:56 -07:00
Alan Chen
34250b7fe7 qcacld-3.0: Add vdev start, stop, and set-key wakelock for runtime PM
There is only vdev start, stop, and set-key wakelocks for system suspend
as of now. Add vdev start, stop, and set-key wakelocks for runtime PM
also.

Change-Id: Ic071bcfb112ae8861a446298677d190484f0c01b
CRs-Fixed: 2507852
2019-08-14 17:01:55 -07:00
nshrivas
5a56c082b3 Release 5.2.0.144B
Release 5.2.0.144B

Change-Id: Ice1173284b5fe3d800ed6ebed3d49924007cc8e0
CRs-Fixed: 774533
2019-08-14 15:43:09 -07:00
Abhishek Ambure
8c1d2a403b qcacld-3.0: Rename WLAN_SER_CMD_DEL_STA_SESSION macro
As a part of vdev manager conversion, vdev delete code is
refactored. Legacy code and naming is removed. In vdev manager
operations, STA_SESSION is addressed as VDEV.

Hence WLAN_SER_CMD_DEL_STA_SESSION macro is renamed to
WLAN_SER_CMD_VDEV_DELETE.

Change-Id: I34b0a34191bef1f279582178f25b9b20b33e709e
CRs-Fixed: 2508150
2019-08-14 15:43:08 -07:00
Pragaspathi Thilagaraj
af84059e8d qcacld-3.0: Add NULL pointer validation on pmkid received
In wlan_hdd_extauth_copy_pmkid(), pmkid received from userspace
could be NULL. Currently there is no validation for the PMKID.

Add check to validate the received PMKID before copy.

Change-Id: I756458562bf20226a202a5ecdbbe9e79884169c7
CRs-Fixed: 2508935
2019-08-14 15:43:02 -07:00
nshrivas
29bfc8af7a Release 5.2.0.144A
Release 5.2.0.144A

Change-Id: Ibe9aa3c13d4a355e758dff462b13f5fb3f866b68
CRs-Fixed: 774533
2019-08-14 14:30:08 -07:00
Liangwei Dong
86ff710471 qcacld-3.0: Handle channel switch in SAP+SAP SCC
SAP1 chan6, SAP2 chan6, LTE channel avoidance event marks
chan6 unsafe, driver will do channel switch for SAP1 and SAP2 to
safe chan 1.
In the middle of channel switch of SAP1, policy_mgr_allow_concurrency
disallows the channel switch request because new SAP1 channel 1
will cause MCC with existing SAP2 (channel 6) and firmware
doesn't support MCC for dual-beacon entities on same band.
This change removes all the SAP entry on the old channel
before do concurrency check for SAP channel change request.

Change-Id: Ic2c828a3fec4cbe2f11d4bedf471211bee442e9e
CRs-Fixed: 2491265
2019-08-14 14:30:07 -07:00
nshrivas
58b66f1959 Release 5.2.0.144
Release 5.2.0.144

Change-Id: I8ed1ee642fca693b12d49d6d0d7d04e23b493b81
CRs-Fixed: 774533
2019-08-14 05:42:42 -07:00
gaurank kathpalia
7ca94aead5 qcacld-3.0: Retain channel info from hostapd
Currently the driver modifies the channel list
which came from hostapd in trim channel list API
in case of concurrency present.
This would in turn prevent SAP to change channel
to a safe channel whenever a LTE-COEX event comes
as the acs channel list would contain only one channel
that would be the SAP channel itself.

Fix is to retain the info of channels which came from
the hostapd, and use this info to restart he SAP.

Change-Id: I9d43930d78f1eaedb01139a9ddc319b610d21862
CRs-Fixed: 2501400
2019-08-14 05:42:41 -07:00
nshrivas
dae6817208 Release 5.2.0.143Z
Release 5.2.0.143Z

Change-Id: I8b374729c4c7986d8b79cd792759a646f3a5fd5d
CRs-Fixed: 774533
2019-08-13 20:26:03 -07:00
Mohit Khanna
b9d7e4e20a qcacld-3.0: Reduce high throughput detection level
Currently the API hdd_is_current_high_throughput considers any
throughput level higher(or equal) than PLD_BUS_WIDTH_HIGH as high
throughput level. Based on this level, driver decides to take up RX
wakelock and log certain stats(TDLS). This can have an impact on power
even in HT20 modes.

Reduce the high throughput detection level to PLD_BUS_WIDTH_MEDIUM. So
throughput >= 60Mbps is considered high by the API.

Change-Id: I2225edc55568facf4b74a389b4a0a53845ea14ae
CRs-Fixed: 2495719
2019-08-13 20:26:02 -07:00
Mohit Khanna
ba8b3fe3a8 qcacld-3.0: Use different wait queues for threads
Currently DP RX threads are using the same wait_q for all operations.
The problem with this is that when there is traffic for only one
threads, we end up waking up other threads as well moementarily.
This wastes power and is in-efficient.

Use different wait queues for different threads.

CRs-Fixed: 2495719
Change-Id: I689659b7aa0ab93b7e2f009d2dc7fe741b66ee78
2019-08-13 20:25:57 -07:00
nshrivas
bced046373 Release 5.2.0.143Y
Release 5.2.0.143Y

Change-Id: I76b256662a14c5e1a2a735a967fe4f7867f71c7c
CRs-Fixed: 774533
2019-08-13 16:23:28 -07:00
Mohit Khanna
f0620ce6ca qcacld-3.0: Add support for GRO flush indications
Add support for sending GRO flush indication to DP Rx Thread.

CRs-Fixed: 2495719
Change-Id: I8723dc696d8af705067a50dcf5f161ef4f28d485
2019-08-13 16:23:28 -07:00
Alan Chen
6a5eb9339c qcacld-3.0: Clear recovery flag after idle restart
Clear recovery flag after idle restart such that next time wifi can
turn on properly.

Change-Id: I7063a9edd08334a84068f88c0564dd4f2aabf666
CRs-Fixed: 2507899
2019-08-13 16:23:22 -07:00
nshrivas
bb673cfc19 Release 5.2.0.143X
Release 5.2.0.143X

Change-Id: If759d941bbb1ceecdab95f5be503cbe4198f3b4c
CRs-Fixed: 774533
2019-08-13 11:01:31 -07:00
nshrivas
a2c8314f12 Release 5.2.0.143W
Release 5.2.0.143W

Change-Id: Iada1494b96f33a02f4c834ce68349d1adaec3b96
CRs-Fixed: 774533
2019-08-13 07:33:11 -07:00
gaurank kathpalia
ccfca4a11e qcacld-3.0: Update HE capabilities in wiphy structure
Update the mac, phy, mcs, nss caps of bands
2.4ghz, and 5ghz for HE capabilities in the
wiphy structure to inform userspace about
the driver capability.

Change-Id: I9fb1233e5396bf3ea411c057af9cbcd5b358271c
CRs-Fixed: 2486266
2019-08-13 07:33:10 -07:00
gaurank kathpalia
620027937f qcacld-3.0: Select default channel is no scan results present
Currently if the driver does not find any scan results
in the ACS scan, it selects a best channel as the PCl
channel by filtering the PCl list based upon the start
and end channel, which may not be correct everytime
as start and end channel does not specify the channels
to be selected.

Fix is to select a default operating channel from the
acs list itself, if no scan results are present.

Change-Id: I9a76957087b9349da66545e0fcaede2355f732cd
CRs-Fixed: 2504796
2019-08-13 07:33:05 -07:00
Ajit Pal Singh
9a0705e818 qcacld-3.0: HL: Iterate over txqs of a selected category
When CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL is enabled each group
has its own credit limit.
It may happen that when the High Latency TX Scheduler selects a category
the txq at the head may belong to a group which has credits less than the
"credit_reserve" of that group. In this case the scheduler will return
without downloading any frames although the other group may have credits
and also frames to be downloaded.
The scheduler will be called again if there is a credit update from FW or a
packet arrives from network stack and the next txq will be picked up which
belongs to the group which has sufficient credits.

It is seen that sometimes there is no credit update from FW (since the
host has sufficient credits) and the network stack also does not
transmits packet since it has already queued packets in driver's queue.
In such case the scheduler is not called and throughput drop to zero is
seen although there are enough credits on host.

To avoid such a situation, in case scheduler is unable to download
packets from a txq since its group does not have enough credits, iterate
over to the next txq in the chosen category and download its packets.
Exit from the schduler is case able to download from any txq OR not able
to download from any txq.

Change-Id: I6143d5c3aa40761d1997846896e5e77435252b26
CRs-Fixed: 2485819
2019-08-13 07:33:01 -07:00
gaurank kathpalia
c99859b8cb qcacld-3.0: Convert channel to freq in vdev start structure
Convert channel to freq in vdev start structure to
avoid duplicate channel numbers in 6ghz, and 2.4ghz
operation.

Change-Id: Ie78d93a34d1d558b9c94fc8a54aa95ee07bda55e
CRs-Fixed: 2508040
2019-08-13 07:32:57 -07:00
nshrivas
839520b0cc Release 5.2.0.143V
Release 5.2.0.143V

Change-Id: Iabf51fc2fcd1234dabea4f21b54772479aec063e
CRs-Fixed: 774533
2019-08-13 04:17:19 -07:00
Pragaspathi Thilagaraj
ba42a982b3 qcacld-3.0: Check SAE & OWE target capability to enable RSO
Currently the host driver blocks roam scan offload command to
the target if the connected akm is OWE or SAE.

Add changes to read the WMI_SERVICE_WPA3_SAE_ROAM_SUPPORT and
WMI_SERVICE_WPA3_OWE_ROAM_SUPPORT service capability advertised
by the target and set it to the mlme fw_akm_bitmap. Read this
bitmap in csr_roam_offload_scan() to allow RSO command.

Also the connected akm is sent to the target via the
WMI_AP_PROFILE command. Translate the CSR akm type for OWE and
SAE akm also.

Change-Id: I68527722ab099e0c8e1681ed64ea416b9a6e9936
CRs-Fixed: 2491021
2019-08-13 04:17:19 -07:00
Sourav Mohapatra
ffbd027f6b qcacld-3.0: Refactor HDD callers as per changes to cdp_clear_peer
Currently, the cdp API cdp_clear_peer takes as input the sta_id. As a
part of cleaning up the usage of sta_id, replace it by peer mac address.

Change-Id: I4f8bee21ae42d8c9929da8fe2fcfa534778647ed
CRs-Fixed: 2503139
2019-08-13 04:17:08 -07:00
Rakshith Suresh Patkar
0dd44df12c qcacld-3.0: Cleanup ol_txrx_clear_peer[PEER_ID_PHASE1]
Cleanup ol_txrx_clear_peer to be peer mac address based
from local peer id based.

Change-Id: I63154508e6a08f973a4c602de58217e6bf23d683
CRs-Fixed: 2503737
2019-08-13 04:17:04 -07:00
nshrivas
17f3e67be6 Release 5.2.0.143U
Release 5.2.0.143U

Change-Id: I9ddd5f51448cfa36289bb8c1c1b700e1c6865a9b
CRs-Fixed: 774533
2019-08-12 17:32:12 -07:00
Kiran Kumar Lokere
389c1f8bd0 qcacld-3.0: Set color collision detection period to 120 sec
Set the color collision detection period to 120 sec for
STA and SAP.

Change-Id: If34246b8b2899ae6f9daadcda6639a14d7bcf1c7
CRs-Fixed: 2507044
2019-08-12 17:32:11 -07:00
nshrivas
8e95142f82 Release 5.2.0.143T
Release 5.2.0.143T

Change-Id: I711b34e019ec50c0c010ab0b72bc8d8864e8730c
CRs-Fixed: 774533
2019-08-12 16:18:14 -07:00
Pragaspathi Thilagaraj
a97d498743 qcacld-3.0: Send preauth status for SAE hybrid roaming
For WPA3 SAE LFR-3.0 roaming, authentication is offloaded to the
wpa_supplicant via the host driver due to the target crypto
inavailability limitations. The target does candidate selection
and sends the WMI_ROAM_PREAUTH_START_CMDID to the driver.

Once the SAE authentication is done, the supplicant sends the
external auth NL command with the authentication status, PMKID
derived. On receiving this event, send the PMKID, bssid, auth
status to the target over WMI_ROAM_PREAUTH_STATUS_CMDID command.

The host driver decides if the external authentication event is
received for preauth candidate or for initial connection by
checking the connected state information of the csr session.

When the authentication fails with the first candidate, the
target triggers the preauth start for the next candidate. This
happens till there are no candidates available to roam.

There could be a situation where the firmware sends preauth
event for candidate1 and before the supplicant could send the
external auth command to the host driver, the candidate1 preauth
timer could have expired and firmware sends the preauth start for
second candidate. After SAE is done with second candidate also,
the supplicant sends external auth event for second candidate. So
in this situation the firmware should decide to choose the
latest candidate. The host driver here is a mere passthrough and
doesn't maintain timer for the preauth event for each BSSID to
drop the expired candidate preauth events.

Change-Id: I799a05e55a59677dfc2ddf5b55ebc888ccfea03e
CRs-Fixed: 2507003
2019-08-12 16:18:14 -07:00
nshrivas
d9a80277f6 Release 5.2.0.143S
Release 5.2.0.143S

Change-Id: Id2731c62baf4bcb12b3973552915d6215ae6ac37
CRs-Fixed: 774533
2019-08-12 12:24:06 -07:00
nshrivas
72dc87e3e0 Release 5.2.0.143R
Release 5.2.0.143R

Change-Id: I18f6596e779aa040ec7fb30c8c337ff289bc2c08
CRs-Fixed: 774533
2019-08-12 10:22:36 -07:00
nshrivas
14f10d1d78 Release 5.2.0.143Q
Release 5.2.0.143Q

Change-Id: I90826545dc0a2987e54c5396adc1d19323cfdcc8
CRs-Fixed: 774533
2019-08-12 08:50:36 -07:00
sheenam monga
fed7e28e4e qcacld-3.0: Return success status in case stop_ap command after SSR
In case Device is P2P GO and SSR is triggered due to any reason,
Stop_adapter is called. Inside stop adapter adapter->session.ap.beacon
 is freed. When P2P GO negotiation is initiated after SSR,
__wlan_hdd_cfg80211_stop_ap function tries to access
adapter->session.ap.beacon which freed during SSR.
Failure is returned in case adapter->session.ap.beacon is NULL,
Which causes failure of p2p negotiation.

Fix is to return success to upper layers in case SAP is already
down, So that beacon interval can be cleaned up.

Change-Id: Ie7a30475b2a54860843b1430964585d22f02c110
CRs-Fixed: 2503216
2019-08-12 08:50:36 -07:00
nshrivas
ae5b012c4e Release 5.2.0.143P
Release 5.2.0.143P

Change-Id: Ib663cf603aa9b6fa790241e4cd6a505fe841e4bf
CRs-Fixed: 774533
2019-08-12 05:35:15 -07:00
nshrivas
7e13d0f4cc Release 5.2.0.143O
Release 5.2.0.143O

Change-Id: Ib26d40ff1c3e102919ecd4ba484df3e4c105d542
CRs-Fixed: 774533
2019-08-12 04:23:31 -07:00
Jianmin Zhu
f07aa51b88 qcacld-3.0: Rename and replace typedef tpAddBssParams
The Linux Coding Style frowns upon mixed-case names so rename
identifier tpAddBssParams to be compliant.

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tAddBssParams typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a properly named struct.

Change-Id: Icf7fe19cfe6eb6fbac5689e3b5474d38c520b311
CRs-Fixed: 2506539
2019-08-12 04:23:30 -07:00
nshrivas
284298c3f4 Release 5.2.0.143N
Release 5.2.0.143N

Change-Id: I98e79ed50ff466303904f7f904b19a3eed663f54
CRs-Fixed: 774533
2019-08-12 02:45:06 -07:00
Pragaspathi Thilagaraj
7a7163bac7 qcacld-3.0: Add support for wpa3 roaming authentication offload
Firmware offloads WPA3 SAE authentication to host due to the
crypto library availability limitation. Once the roam candidate
selection is done in the firmware, firmware sends the
WMI_ROAM_PREAUTH_START_EVENTID. Once this event is received, the
host driver triggers the SAE.

Add support to offload the SAE authentication from firmware to
wpa_supplicant.

Change-Id: Ie3a9e731194e1edfcd9f33ef0d601767b9485d46
CRs-Fixed: 2490201
2019-08-12 02:45:06 -07:00
nshrivas
3088d73c29 Release 5.2.0.143M
Release 5.2.0.143M

Change-Id: I05cb49eed8041cd00595fb17d581e4ae921bdbea
CRs-Fixed: 774533
2019-08-12 01:27:37 -07:00
Jianmin Zhu
821e6d4401 qcacld-3.0: Refactor STA join process
Create bss peer in lim_process_mlm_post_join_suspend_link
when sta connect, don't need pose message to wma queue.

Change-Id: I23325c9d41b68f67ea9903008521f026e46395c4
CRs-Fixed: 2505558
2019-08-12 01:27:36 -07:00
Nirav Shah
718d14b1ee qcacld-3.0: Add support for addba/delba HTT message
In case of high latency data path, addba/delba messages
needs to be handled to support partial reorder.
This reverts commit b8919e14c5
and fix below security isses in ol_tx_addba_handler.
1. handle memory allocation failure scenario.
2. Free array memory before assign new memory to avoid
   memory leak.

Change-Id: I4f577c9e8bcb40f70ffb1b305659a059eac68d8d
CRs-Fixed: 2488966
2019-08-12 01:27:32 -07:00
nshrivas
87cca1586c Release 5.2.0.143L
Release 5.2.0.143L

Change-Id: I3f2e1fecdfe94ab95c76182cbe100a1b28fffe60
CRs-Fixed: 774533
2019-08-11 02:11:32 -07:00
Alan Chen
32c6048ab6 qcacld-3.0: Abort system suspend when idle restart occurs
Wifi turn-on will timeout and fail if system suspend occurs during idle
restart. To solve this, abort system suspend during idle restart.

Change-Id: I0a4a1fc9525b5fb19f51a289ca0b8a76c73038e6
CRs-Fixed: 2506716
2019-08-11 02:11:31 -07:00
nshrivas
52f9e020c5 Release 5.2.0.143K
Release 5.2.0.143K

Change-Id: I42a0015ea1b91e1c2e91f168044acd475c52c73e
CRs-Fixed: 774533
2019-08-10 10:21:38 -07:00
Pragaspathi Thilagaraj
d81b7d49ff qcacld-3.0: Update pmkid_modes based on "pmkidModes" ini
Currently the host driver updates the okc, pmksa flags
only after the set key management command is received from the
wpa supplicant. This is not needed as set_pmksa command is
received for 802.1x/SAE/OWE and key management needs to be
offloaded to firmware always for it to be able to include PMKID
in reassoc request/responses.

Receive the pmkid_modes from ini config parsed to mlme and
update in 11i tlv param of ROAM_SCAN_MODE command.

Change-Id: If169b402731e3713479e90b627060df470e5dab2
CRs-Fixed: 2506580
2019-08-10 10:21:37 -07:00
nshrivas
e255397d97 Release 5.2.0.143J
Release 5.2.0.143J

Change-Id: I5a4a847b44ea050efdf6ac053485b3aa0fcb09db
CRs-Fixed: 774533
2019-08-10 08:15:09 -07:00
Pragaspathi Thilagaraj
21b88d2d5b qcacld-3.0: Handle SAE preauth management frame with no session
The host driver drops any authentication frames that doesn't
belong to current pe session. But, for WPA3 SAE roaming
pre-authentication is offloaded to user space, and as part of
that, the host driver should handle the SAE commit/confirm
messages received from the target AP for which there is no
pe_session.

Add changes to check the auth algorithm in the authentication
frames received for which no pe_session exist and if auth algo is
SAE, indicate that frame to wpa_supplicant.

Change-Id: Ie911524475423704246c1b4f694b83abdbf5129a
CRs-Fixed: 2505556
2019-08-10 08:15:08 -07:00
nshrivas
621bf6eb05 Release 5.2.0.143I
Release 5.2.0.143I

Change-Id: Ib84e63de04f4a2ed1386e0d93006359011fa4fc6
CRs-Fixed: 774533
2019-08-10 04:05:02 -07:00
Yuanyuan Liu
10a7666ed3 qcacld-3.0: Don't call pld_collect_rddm in trigger recovery handler
RDDM can be collected during kernel panic and pld_collect_rddm is
a blocking call that will cause WLAN watchdog if the caller is from
scheduler thread. Hence revert this change and collecting FW dump
inside kernel panic handler.

CRs-Fixed: 2506844
Change-Id: I8667896e61b856fc2e03e1c8278a6451b6a04c24
2019-08-10 04:05:01 -07:00
nshrivas
a5ab5f40dd Release 5.2.0.143H
Release 5.2.0.143H

Change-Id: Ia4904969ceef36ee1327d0eaa1ca58a7134eba85
CRs-Fixed: 774533
2019-08-09 22:25:59 -07:00
Sourav Mohapatra
dcd8f8d1f8 qcacld-3.0: Remove usage of sta_id in TSM stats path
Currently driver passes sta_id through out the call for getting the TSM
stats. Although passed, the sta_id is not used anywhere in the call
stack. As part of removing the sta_id usage, this sta_id can also be
removed safely.

Remove the usage of sta_id in get TSM stats path.

Change-Id: I1efbb1bfdc8df84e9b6a71dcd5bd39ea93ced21a
CRs-Fixed: 2484701
2019-08-09 22:25:58 -07:00
nshrivas
c6492882c2 Release 5.2.0.143G
Release 5.2.0.143G

Change-Id: I1951ddf0606be9923e7ffa5fd66f6e7f7ccf1a2a
CRs-Fixed: 774533
2019-08-09 18:20:14 -07:00
Kiran Kumar Lokere
4bb5c6e8bd qcacld-3.0: Update the max AMSDU limit to 15
Increase the max number of MSDU in AMSDU limit to 15 and set the
default value to 0 to config the FW in auto mode selection in which
FW picks the maximum number of MSDUs in AMSDU based on connection mode.

Change-Id: I6c1f1292a31fc9ea857e60e7a81d10b6def5cbc1
CRs-Fixed: 2502544
2019-08-09 18:20:12 -07:00
nshrivas
2552510775 Release 5.2.0.143F
Release 5.2.0.143F

Change-Id: Ic6293750cba6cbf97f73b1cb1626eb12312a62d0
CRs-Fixed: 774533
2019-08-09 16:32:58 -07:00
nshrivas
f8114bba2a Release 5.2.0.143E
Release 5.2.0.143E

Change-Id: I56753a12af8fc4fbdffb2e004e678b88106a7a94
CRs-Fixed: 774533
2019-08-09 13:04:34 -07:00
nshrivas
f3b8c89041 Release 5.2.0.143D
Release 5.2.0.143D

Change-Id: I404884fb54b9f515c94bc41f13d1ba37f8f394c5
CRs-Fixed: 774533
2019-08-09 08:57:36 -07:00
nshrivas
07c09fb14c Release 5.2.0.143C
Release 5.2.0.143C

Change-Id: I4218b7f882931d67269874ed49c478607922f840
CRs-Fixed: 774533
2019-08-09 07:37:41 -07:00
Sourav Mohapatra
3646a8572c qcacld-3.0: HDD clean up for CDP API cdp_register_peer
Currently, the cdp API cdp_register_peer takes as input the sta_id. As a
part of cleaning up the usage of sta_id, replace it by peer mac address.

Change-Id: I0e92258777aff02940dd619c4d2ad784aa3e7f31
CRs-Fixed: 2502996
2019-08-09 07:37:40 -07:00
Rakshith Suresh Patkar
55e08c0916 qcacld-3.0: Cleanup ol_txrx_register_peer[PEER_ID_PHASE1]
Cleanup ol_txrx_register_peer to be peer mac address based
from local peer id based.

Change-Id: I59fd19c0185d8fe89563ac78bc9e8a8117c12ed1
CRs-Fixed: 2503182
2019-08-09 07:37:35 -07:00
bings
58247e90b1 qcacld-3.0: Use dma_iommu_mapping only ENABLE_SMMU_S1_TRANSLATION defined
In standard linux kernel, struct dma_iommu_mapping is not defined for
arm64, while in qualcomm linux kernel, struct dma_iommu_mapping is
defined for arm and arm64.

To fix build error in standard linux kernel, use struct dma_iommu_mapping
only when ENABLE_SMMU_S1_TRANSLATION is defined.

Change-Id: Ib02073163f2a38c47f864c6592fe2470046868ce
CRs-Fixed: 2496733
2019-08-09 07:37:31 -07:00
Sourav Mohapatra
570a46c710 qcacld-3.0: HDD cleanup for IPA API ucfg_ipa_wlan_evt
Currently, the IPA AIP ucfg_ipa_wlan_evt  takes as input the sta_id. As a
part of cleaning up the usage of sta_id, remove the parameter. Since
mac_addr is already present in the list of parameters, no need to add.

Change-Id: Iacc4a05de88973014eb4bcc1dfc97b7dc4a0d4fa
CRs-Fixed: 2503944
2019-08-09 07:37:26 -07:00
nshrivas
a4c39554e5 Release 5.2.0.143B
Release 5.2.0.143B

Change-Id: I0301fc70f9d3d7af1df07a533d2f283e5387dd98
CRs-Fixed: 774533
2019-08-09 02:50:12 -07:00
Sourav Mohapatra
05a52ed111 qcacld-3.0: Remove usage of sta_id in get SNR path
Currently driver passes sta_id through out the call for getting the SNR
stats. Although passed, the sta_id is not used anywhere in the call
stack. As part of removing the sta_id usage, this sta_id can also be
removed safely.

Remove the usage of sta_id in get SNR stats path.

Change-Id: I39482d8f6d8e3bd32e940a85d5592dada8f0460b
CRs-Fixed: 2503956
2019-08-09 02:50:11 -07:00
Sourav Mohapatra
24f0ae41f6 qcacld-3.0: Remove unused function hdd_get_peer_idx
Currently the function hdd_get_peer_idx is not being called from
anywhere. As the use of sta_id is being depreceted, the function can be
safely removed.

Clean up the unused function.

Change-Id: I6896d03ad2e8b427147e2259b737836cd3f44ca0
CRs-Fixed: 2484699
2019-08-09 02:50:07 -07:00
nshrivas
8dee2177b9 Release 5.2.0.143A
Release 5.2.0.143A

Change-Id: Ib9db3a1c6259d577ad05d260ca62b5296857048b
CRs-Fixed: 774533
2019-08-08 22:36:23 -07:00
nshrivas
f2a4c8c0c5 Release 5.2.0.143
Release 5.2.0.143

Change-Id: I2122466a7886a73f704b49230ababb28566afc64
CRs-Fixed: 774533
2019-08-08 21:04:28 -07:00
Lin Bai
56386f5a84 qcacld-3.0: Fix memory domain mismatch in skip_acs_timer
When FEATURE_WLAN_AP_AP_ACS_OPTIMIZE enabled, it will allocate
memory in INIT domain (wlan_hdd_startup), and free in ACTIVE
domain (hdd_wlan_exit).

Move to wlan_hdd_start_modules/wlan_hdd_stop_modules to avoid.

Change-Id: I0fd93baa306a136af2faa7af9dcccfb709984ef9
CRs-Fixed: 2505462
2019-08-08 21:04:27 -07:00
nshrivas
26c91a70e7 Release 5.2.0.142Z
Release 5.2.0.142Z

Change-Id: I2a0f17d5afb7787bad4d3c271d4679346acd1765
CRs-Fixed: 774533
2019-08-08 14:22:34 -07:00
Rajeev Kumar Sirasanagandla
7dee7fe7e0 qcacld-3.0: Avoid NULL pointer exception in HDD
If firmware doesn't support 5GHz band then ieee80211_supported_band
structure for HDD_NL80211_BAND_5GHZ is not allocated in wiphy and in
wlan_hdd_update_ht_cap() trying to derefer member-fields of
ieee80211_supported_band[HDD_NL80211_BAND_5GHZ] without NULL check is
causing NULL pointer exception.

To address this, add NULL check for 2GHz and 5GHz band pointers.

Change-Id: I8aa93b9cbe26ce674563505e222f5cb2aa970051
CRs-Fixed: 2503133
2019-08-08 14:22:33 -07:00
nshrivas
e67f4e465b Release 5.2.0.142Y
Release 5.2.0.142Y

Change-Id: I68c2be07759e2fedd67e990711b7ec1f384f35ea
CRs-Fixed: 774533
2019-08-08 11:37:52 -07:00
Jayachandran Sreekumaran
32a0d43f05 qcacld-3.0: Add sdio support for pld_wlan_enable
Add sdio support for pld_wlan_enable to put
the FW in the required mode.

Change-Id: I4ff3648a70b6c9cd4be389562851444258b347e6
CRs-Fixed: 2504554
2019-08-08 11:37:51 -07:00
Jinwei Chen
763f9d726f qcacld-3.0: Disable wlan suspend for monitor mode
Wlan suspend and WOW is not supported in monitor mode, disable them.

Change-Id: I5654cb837d01f78d08ae006040cc4f16cd6b3a36
CRs-Fixed: 2500835
2019-08-08 11:37:47 -07:00
nshrivas
703c4866a0 Release 5.2.0.142X
Release 5.2.0.142X

Change-Id: I23e7cead0ddcf362ebcf1638f9ed1d639453ce98
CRs-Fixed: 774533
2019-08-08 09:52:45 -07:00
hqu
030099b43f qcacld-3.0: Remove operationChannel from csr_roam_profile
Remove operationChannel from structure csr_roam_profile, remove
the code where value assigning to operationChannel take place.

Change-Id: If7cd64d4d7513000181f92faabd6c863341c71f9
CRs-Fixed: 2503043
2019-08-08 09:52:44 -07:00
wadesong
c48ea29e3d qcacld-3.0: Remove channel from struct hdd_mon_set_ch_info
1) Remove channel from struct hdd_mon_set_ch_info. All client
   code will use freq within the same struct from now on.

2) Replace the usage of channel ID(op_chan) with channel
   frequency(op_freq) in function hdd_mon_select_cbmode's
   parameter list.

3) Fix a number of camel cases detected in function
   hdd_select_cbmode.

Change-Id: Ib7c1ee453b34647e983749a713b33017b92103ac
CRs-Fixed: 2504779
2019-08-08 09:52:40 -07:00
nshrivas
e71e2d1381 Release 5.2.0.142W
Release 5.2.0.142W

Change-Id: I4b8b8950c958a19e2572ca7be00044d94e08bd87
CRs-Fixed: 774533
2019-08-08 08:40:19 -07:00
Liangwei Dong
e9793891b9 qcacld-3.0: Remove ChannelList from tCsrChannelInfo
Remove all the code reference of ChannelList.
Use freq_list in new code.

Change-Id: I1972f58f07b451dd52ead5dfcabce258f130f1ca
CRs-Fixed: 2503099
2019-08-08 08:40:07 -07:00
Liangwei Dong
a0bb630b78 qcacld-3.0: Replace ChannelList with freq_list
Replace tCsrChannelInfo->ChannelList by freq_list in:
sme_rrm.c

Change-Id: Ia90947e78b73de7ef87516ca00882bb8451d8afc
CRs-Fixed: 2503103
2019-08-08 08:38:58 -07:00
nshrivas
9dd14d684d Release 5.2.0.142V
Release 5.2.0.142V

Change-Id: I300ac5574502fd05e4557e937168d0fa8db03c7b
CRs-Fixed: 774533
2019-08-07 20:21:25 -07:00
nshrivas
37b7443896 Release 5.2.0.142U
Release 5.2.0.142U

Change-Id: I6ca268b2acf0d706bb95c89af7114a7429024d7b
CRs-Fixed: 774533
2019-08-07 14:30:23 -07:00
Jingxiang Ge
ace2c3c6a4 qcacld-3.0: Move vdev to DFS CAC state if channel is dfs
After got restart channel rsp from fw, vdev state will change
as: ST-RESTART_PROG->ST-CONN_PROG.

In lim_send_sme_ap_channel_switch_resp, if channel is non-dfs,
vdev state will change to up; if dfs channel, later it will
change to DFS CAC when starting cac timer.

Current issue is if there is ap stop after restart channel rsp,
while processing WLAN_VDEV_SM_EV_DOWN, there is no hanler in
ST-CONN_PROG > ST-DISCONN_PROG.

From design perspective, In SAP, ST_CONN_PROG is a dummy state,
ideally, SAP state should change as below without preemption :
	RESTART_PROGRESS->CONN_PROGRESS->UP
	RESTART_PROGRESS->CONN_PROGRESS->DFS_CAC_WAIT

To fix issue, change vdev state to DFS_CAC_WAIT in
lim_send_sme_ap_channel_switch_resp; So WLAN_VDEV_SM_EV_DOWN will
be handled in DFS_CAC_WAIT state.

At the same time, set DFS_CAC_WAIT when starting SAP, and clear
sap_move_to_cac_wait_state in sap state machine.

Change-Id: Iee89521471e456a553f40577da6d1e69aef3b803
CRs-Fixed: 2501339
2019-08-07 14:30:22 -07:00
nshrivas
b704fddad6 Release 5.2.0.142T
Release 5.2.0.142T

Change-Id: I2284eb7069f3d16ae0bb0c89db94142f421fa9a5
CRs-Fixed: 774533
2019-08-07 10:20:48 -07:00
gaurank kathpalia
224c81efd6 qcacld-3.0: Select default channel of SAP in case of failure
Currently the driver choses a default channel for SAP
in case of failures, logic of which is incorrect as
it does not take into account the hw mode, and all
other checks such as SRD, unsafe, DFS etc.
The channel chosen after this maybe not as per
expectation.

Fix is to chose a default channel from the acs channel
list itslef so that the checks of SRD etc. ae honored.

Change-Id: Ife8a6b88938fd566bed92a5bde1cb0fe34a45462
CRs-Fixed: 2476351
2019-08-07 10:20:47 -07:00
nshrivas
e963b9c82b Release 5.2.0.142S
Release 5.2.0.142S

Change-Id: I312987ed009e3cf16b42bda587bb6e886b8024a2
CRs-Fixed: 774533
2019-08-07 08:41:22 -07:00
gaurank kathpalia
2fcec840ce qcacld-3.0: Take a wakelock till CSA complete
Currently the driver sends the CSA IEs in the
beacon every beacon interval, and updates the
CSA IE count in every beacon.

If the wlan gets suspended in between the
updation of CSA IEs, the CSA is delayed
till the next resume, which could lead to
STA kickout event, if there is delay between
the CSA period, and the channel switch time.

Fix is to take a wakelock till CSA is completed
in order to avoid the STA kickout.

Change-Id: Iff03476433c755cbddc7568ffbd24ddb81fd1c90
CRs-Fixed: 2504039
2019-08-07 08:41:21 -07:00
gaurank kathpalia
7665a50dab qcacld-3.0: Extend force 1x1 ini
Currently the driver checks whether the device
supports antenna sharing, and if the AP is added
in the OUI framework, then the driver modifies the
nss value to 1 to avoid sending SMPS to the peer AP.
Now suppose the device does not support Antenna sharing,
but supports DBS and is helium HW, then going to DBS HW
mode would result in peer sending a SMPS frame to the peer
as the helium HW only has two antennas, and one is needed
by each MAC now.

Fix is to add a third param in force 1x1 ini which would
decide the driver should consider the antenna sharing as
mandatory or not.

Change-Id: I3ae00fcbd642c7780952d66ccbf1208335fcb077
CRs-Fixed: 2496831
2019-08-07 08:41:16 -07:00
Bala Venkatesh
58c241c551 qcacld-3.0: Release TDLS del sta serialization command
After sending the wmi_peer_delete command to FW. If there
is a change in channel info of HT cap from connected AP.
Then TDLS peers in lim will be deleted and dph entry will be
freed.
While processing the tdls del sta response from FW
if dph entry is NULL then WLAN_SER_CMD_TDLS_DEL_PEER is
not released and that can lead to active command timeout.

Release the serialization command in case of NULL dph entry.

Change-Id: Ib56806875cc84a0ecb9bcab16e9e0bb9d118efbb
CRs-Fixed: 2503993
2019-08-07 08:41:11 -07:00
nshrivas
6ef2c8e497 Release 5.2.0.142R
Release 5.2.0.142R

Change-Id: Icc6c92da7c4bc10976d62d98131e60c5fefefe9a
CRs-Fixed: 774533
2019-08-07 04:57:49 -07:00
Bala Venkatesh
07546fb480 qcacld-3.0: Check TDLS offchannel is supported or not
Check if the configured tdls offchannel through IOCTL
is supported or not. This is required if firmware
does not support 5G channels or any invalid channels

Change-Id: I49e3b7b758fddf22fbfe1b64dda2e4f47a27cf3b
CRs-Fixed: 2503913
2019-08-07 04:57:48 -07:00
nshrivas
289bcc4f26 Release 5.2.0.142Q
Release 5.2.0.142Q

Change-Id: I905cb485731d40781728a530aa9e1bfdca5ebdf6
CRs-Fixed: 774533
2019-08-07 01:31:08 -07:00
nshrivas
0c0c7a16d1 Release 5.2.0.142P
Release 5.2.0.142P

Change-Id: I74d0fc946ac47072edc2cfd8696538e7fd4a9e43
CRs-Fixed: 774533
2019-08-06 14:24:31 -07:00
Yeshwanth Sriram Guntuka
e631341f12 qcacld-3.0: Update kck len when caching gtk offload req
On wlan suspend, kck sent as part of gtk offload request
is not populated properly since the kck_len is not
updated when caching the gtk request resulting in all
zeroes kck.

Fix is to update kck_len when saving gtk offload
request.

Change-Id: I9e4430565a04cff6da7f06d23a9542a2f53568b0
CRs-Fixed: 2502131
2019-08-06 14:24:30 -07:00
nshrivas
9358c67a57 Release 5.2.0.142O
Release 5.2.0.142O

Change-Id: I67b8373c911907c69ce3f49448534ea0806cf360
CRs-Fixed: 774533
2019-08-06 10:16:26 -07:00
gaurank kathpalia
c3587d0340 qcacld-3.0: Filter the blacklist BSSID in scan for ssid
Currently the driver sends a unicast probe request
to the BSSID which is blacklisted, which in turns
violate the SPEC, as the BSSID maybe rejected as
part of OCE assoc reject.

Fix is to check if the BSSID is blacklisted, don't
go for unicast probes.

Change-Id: I14f283d7425d40706cef29db38b48333ee9a7fff
CRs-Fixed: 2500273
2019-08-06 10:16:26 -07:00
gaurank kathpalia
b2f7206d97 qcacld-3.0: Avoid scan if no channel found in ACS
If no channel is found suitable for ACS, don't scan
all the channels as done currently by the driver, and
send ACS fail code to the userspace as SAP cannot be
started on the band specified by the use.

Change-Id: I18edff6aaf384384841487d06474fd5fba28fc2f
CRs-Fixed: 2476347
2019-08-06 10:16:22 -07:00
Sravan Kumar Kairam
777a7dde6e qcacld-3.0: Start bus bw computer timer for NAN
Currently for NDI interface bus bandwidth timer is not
started. As part of this change start the timer when new
ndp peer is created and stop the timer when last ndp peer
connected is deleted.

Change-Id: Ia710ec9872636ee3cefa30815692c2f8c9816687
CRs-Fixed: 2499548
2019-08-06 10:16:14 -07:00
nshrivas
13e6c51fbc Release 5.2.0.142N
Release 5.2.0.142N

Change-Id: I9f8df2987cc104a6ff82e3d55da5ac9f9c8de501
CRs-Fixed: 774533
2019-08-06 05:26:20 -07:00
Subrat Dash
ab9a7593af qcacld-3.0: Fix compilation issue with FW_THERMAL_THROTTLE_SUPPORT enabled
Fix the compilation issues passing proper parameter to the function
wmi_unified_thermal_mitigation_param_cmd_send.

CRs-Fixed: 2501080
Change-Id: I9ce0038ef2844536612f0bf71314dbc214f354d9
2019-08-06 05:26:20 -07:00
nshrivas
ea05bae341 Release 5.2.0.142M
Release 5.2.0.142M

Change-Id: Ife494266790ae10e1d80797a7719f1418fd52452
CRs-Fixed: 774533
2019-08-06 04:08:46 -07:00
nshrivas
f1de82f3b8 Release 5.2.0.142L
Release 5.2.0.142L

Change-Id: Ic015dd251df09cec2ae9bfd7d1154bfae172e183
CRs-Fixed: 774533
2019-08-06 02:48:46 -07:00
Liangwei Dong
4d8c7629b2 qcacld-3.0: Replace ChannelList with freq_list
Replace tCsrChannelInfo->ChannelList by freq_list in:
sap_module.c sme_api.c csr_api_roam.c csr_api_scan.c
csr_neighbor_roam.c

Change-Id: I6c8d2991242f2215fc7cc58220445025bd32fcdb
CRs-Fixed: 2501872
2019-08-06 02:48:45 -07:00
Bala Venkatesh
5d0fe41a93 qcacld-3.0: Do not allow get_tx_power for all interfaces
Currently, get_tx_power is given for all interfaces but FW may
not respond for interfaces like p2p device mode or NAN.
Allow cfg80211_get_tx_power only for STA/P2P_client associated
state and SAP/GO started cases. In rest all cases do not give
this command to FW.

Change-Id: I01ff4f11c35ca00183002d2d1c2c481f3bea77c6
CRs-Fixed: 2502905
2019-08-06 02:48:41 -07:00
nshrivas
596909df06 Release 5.2.0.142K
Release 5.2.0.142K

Change-Id: Iee68bb0939dbcc9b66e8a545bfd6386e6f7dfecb
CRs-Fixed: 774533
2019-08-06 01:25:40 -07:00
nshrivas
74e6092646 Release 5.2.0.142J
Release 5.2.0.142J

Change-Id: I469343209a5b28ae257f495919cc9820d06d7105
CRs-Fixed: 774533
2019-08-05 16:45:49 -07:00
Abhishek Ambure
cbef14404b qcacld-3.0: Refactor vdev delete code
Refactor vdev delete code for target_if conversion. Remove legacy
vdev delete code.

Change-Id: Ia95faa3a8eb561e19d439046a25bd7e452b98fb2
CRs-Fixed: 2471947
2019-08-05 16:45:48 -07:00
nshrivas
8e062805f3 Release 5.2.0.142I
Release 5.2.0.142I

Change-Id: I593d2a462c97f4e82245fa824b6f25551be0ea63
CRs-Fixed: 774533
2019-08-05 15:31:58 -07:00
Yue Ma
1c1d0f75d6 qcacld-3.0: Do sync runtime resume/suspend for get station stats API
Get station stats API will be periodically called from upper layer so
in order to save power, instead of waiting for inactive timer to fire,
suspend right after everything is done.

Change-Id: I452ac3631d6799ffdcb1d09ff71afb2730b92b59
CRs-fixed: 2502391
2019-08-05 15:31:57 -07:00
nshrivas
8b949209f8 Release 5.2.0.142H
Release 5.2.0.142H

Change-Id: Ifaedd3fe68a93f6d2dd172fc13f24fd24d02c7d2
CRs-Fixed: 774533
2019-08-05 10:55:41 -07:00
gaurank kathpalia
cdc3b574d1 qcacld-3.0: Modify NUD tracking ini for disconnect/roam
Modify the nud tracking ini so that the driver
does a disconnection/roaming after NUD failure
is detected.
According to the ini specified, the driver would
either disconnect or do roaming.

Change-Id: I6af1c819322a702605d92ada735298a124127533
CRs-Fixed: 2497153
2019-08-05 10:55:40 -07:00
tinlin
7db7a5d167 qcacld-3.0: Set peer phymode not higher than sap's
Associating peer's phymode is not allowed to be highter
then sap's. If it is, set the peer phymode equal to sap
phymode.

Change-Id: Ia8152ce27fb8ddf2bbff5139d3b8d89c811d7ed0
CRs-Fixed: 2500383
2019-08-05 10:55:36 -07:00
wadesong
21d7effc7f qcacld-3.0: Populate frequency list
Do more frequency list population in a number of functions
to make sure the resulting tCsrChannelInfo structures
have the right channel frequency info.

Meanwhile, enlarge the buffer allocated for freq_list in
csr_roam_copy_profile to make sure all channel frequencies
can be replicated.

Change-Id: Ia8b90581211d657851e1d8fc2556dcb633c8001a
CRs-Fixed: 2500236
2019-08-05 10:55:32 -07:00
Abhishek Ambure
7470976006 qcacld-3.0: Refactor vdev create code
Refactor vdev create code to target_if common code. Remove legacy
code for vdev create.

Change-Id: I57caf0c5fa2da7b6ba640a9d2edb72363959c585
CRs-Fixed: 2460786
2019-08-05 10:55:23 -07:00
nshrivas
2209902530 Release 5.2.0.142G
Release 5.2.0.142G

Change-Id: I223cd51d04f5e66fefae14877bb3b42ba49ce1bf
CRs-Fixed: 774533
2019-08-05 09:31:37 -07:00
Abhishek Singh
8586573201 qcacld-3.0: Handle bss peer add failure in vdev state machine
In case bss peer add failure vdev state machine is in
substate  WLAN_VDEV_SS_START_START_PROGRESS and thus
WLAN_VDEV_SM_EV_CONNECTION_FAIL will not be handled and thus vdev
SM will not move to init state and pe session is not deleted.

This lead to vdev ref leak for the ref taken by pe create session.

Fix this by sending WLAN_VDEV_SM_EV_START_REQ_FAIL event when
vdev SM is in WLAN_VDEV_SS_START_START_PROGRESS state and continue
cleanup.

Change-Id: I4c559333a6bd018e3382f9781883acf314434cf2
CRs-Fixed: 2502817
2019-08-05 09:31:37 -07:00
nshrivas
1d2fbeca0c Release 5.2.0.142F
Release 5.2.0.142F

Change-Id: Ib7b8bd85057d3eea9a631982a1734c4d191c020f
CRs-Fixed: 774533
2019-08-05 07:49:51 -07:00
nshrivas
0248c92a83 Release 5.2.0.142E
Release 5.2.0.142E

Change-Id: I6436b4e6941fc64b39425f217bc1044daa3680d6
CRs-Fixed: 774533
2019-08-05 02:57:20 -07:00
Ashish Kumar Dhanotiya
017e502efa qcacld-3.0: Add support to get last available vdev info
FW sends vdev stats on vdev down, current host
implementation does not process this event as host is
only processing the stats events for which stats are
requested.
On vdev down FW sends the last available vdev stats and
based on that host updates it's RSSI on disconnect.
With CP stats infrastructure host is not processing
this event and is not updating rssi on disconnect.

To resolve this issue, add support to get last available
vdev stats from cp stats component with the help of a
callback registration.

Change-Id: If0741281140509624f6fdda4a270d99e2f58b61a
CRs-Fixed: 2493965
2019-08-05 02:57:19 -07:00
Ashish Kumar Dhanotiya
b0f0364ca5 qcacld-3.0: Add frequency in struct sSirMacChanInfo
As part of 6GHz regulatory update, channel numbers are
getting updated to corresponding frequencies, in this
update add frequency element in struct sSirMacChanInfo.

Change-Id: I1a18111a2b073164677b32fb6febc947df043bf2
CRs-Fixed: 2500361
2019-08-05 02:57:14 -07:00
nshrivas
74c6ef5913 Release 5.2.0.142D
Release 5.2.0.142D

Change-Id: I16a4156f69431600cdc2a8045126f8fc0bda811c
CRs-Fixed: 774533
2019-08-04 06:23:10 -07:00
guangde
963710d6e8 qcacld-3.0: enable legacy coex feature
Because newest firmware codes already been changed, the previous
coex configure command are invalid. Firmware need host driver
to enable WMI_SERVICE_THREE_WAY_COEX_CONFIG_LEGACY service during
wlan init. Add a new parameter "gThreeWayCoexConfigLegacyEnable" to
initial config file. If this parameter value is zero,set coex
priorities command will return error.

Change-Id: Ief1617e2ba5363e276c55135198613a0e54b71d5
CRs-Fixed: 2482734
2019-08-04 06:23:09 -07:00
nshrivas
a17a11619e Release 5.2.0.142C
Release 5.2.0.142C

Change-Id: Ie3868fd70a0c776835f60a128921b67c9075ea80
CRs-Fixed: 774533
2019-08-02 03:13:41 -07:00
Bala Venkatesh
961c9b8cba qcacld-3.0: Remove bss peer in case of vdev stop response failure
In case of failure in vdev stop response from FW, Along with
triggering SSR call the del_bss_response so that FW can clear
the bss peer.

Change-Id: Ibbf43f15796a9a13f922091d49fa6a22838aeaaf
CRs-Fixed: 2498497
2019-08-02 03:13:41 -07:00
nshrivas
df2870f0db Release 5.2.0.142B
Release 5.2.0.142B

Change-Id: I0ca2fa3cb475aef3784e7bf4c3c73e6efad8e707
CRs-Fixed: 774533
2019-08-02 02:04:34 -07:00
Will Huang
cac7e09e7d qcacld-3.0: Replace channel ID with frequency (bss_description 4)
Remove channelId from struct bss_description, and remove the
code where value assignment to channelId take place.

Change-Id: If37aca5f3e2211a73d546444aad2e5f9a4bada0a
CRs-Fixed: 2497438
2019-08-02 02:04:33 -07:00
nshrivas
e8507828be Release 5.2.0.142A
Release 5.2.0.142A

Change-Id: I28539a754e1b9e187a0aea20d1de14a96eadef35
CRs-Fixed: 774533
2019-08-02 00:43:41 -07:00