Commit Graph

29511 Commits

Author SHA1 Message Date
Vinod Kumar Pirla
c83cc7b649 qcacld-3.0: Refactor stop SAP/P2P-GO adapters
Move the cleanup code of SAP/P2P_GO type adapters to
new API and call the API from hdd_stop_adapter_ext().

Move ucfg_ipa_flush() to end of cleanup as it is specific to pdev.
New API:hdd_stop_sap_go_adapter()

Change-Id: I046312a4a928889c7be30182b27300e0b1af2fd6
CRs-Fixed: 3523806
2023-07-04 05:52:57 -07:00
Vinod Kumar Pirla
b33dc43f69 qcacld-3.0: Refactor Monitor mode stop adapter
Move the cleanup code of monitor type adapter to
new API in stop adapter.

New API: hdd_stop_mon_adapter()

Change-Id: I841f6862c1ccf068e63751869b432cb9da1cfdb6
CRs-Fixed: 3523777
2023-07-04 05:52:51 -07:00
Rahul Choudhary
f739f4a64c Release 5.2.1.73
Release 5.2.1.73

Change-Id: Ibcea794bdd5bd4544fb9b0c70d29982a423d845e
CRs-Fixed: 774533
2023-07-04 02:30:45 -07:00
Vinod Kumar Pirla
da7995c849 qcacld-3.0: Refactor sta mode type stop adapter logic
Move the stop adapter logic of below OPMODEs to unified
function. The function is called on adapter level and internally
all the active links are cleaned up.
1) QDF_STA_MODE
2) QDF_P2P_CLIENT_MODE
3) QDF_NDI_MODE
4) QDF_P2P_DEVICE_MODE
5) QDF_NAN_DISC_MODE

Change-Id: I54dea594e643329d0dfc6ebb7a9dc6f411bff0eb
CRs-Fixed: 3523734
2023-07-04 02:30:45 -07:00
Vinod Kumar Pirla
5e392557c9 qcacld-3.0: Refactor hdd_vdev_destroy() API
Modify the API to take link info pointer of VDEV to destroy.
The API can be used to iterate all the eligible links in adapter
during interface down.

Introduce new API deinit of vdev destroy event completion variable
and to reset all vdev IDs to invalid on open adapter.

Change-Id: I28c0fff88cac79af94bcb7df7604373150eac052
CRs-Fixed: 3523683
2023-07-04 02:30:38 -07:00
Vinod Kumar Pirla
2e7fb09aee qcacld-3.0: Refactor IEs reset on SAP adapter stop
Move the IEs reset on SAP/P2P_GO adapter stop to new API
1) hdd_reset_ies_on_sap_stop()

Modify the below API to take link info pointer to reset VDEV
probe response IEs.
1) wlan_hdd_reset_prob_rspies()

Change-Id: Ia386be49aa19b51d97e3d9eb0368c68a2886c437
CRs-Fixed: 3523646
2023-07-04 02:30:32 -07:00
Rahul Choudhary
f42252f24c Release 5.2.1.72Z
Release 5.2.1.72Z

Change-Id: Ib064363bad3165a81969b7660a3038f29a6944f2
CRs-Fixed: 774533
2023-07-03 23:02:51 -07:00
Vinod Kumar Pirla
e1ee5f5a62 qcacld-3.0: Refactor stop pre cac adapter
Move cleanup of pre cac adapter in stop adapter to new API.
New API:
1) hdd_stop_and_close_pre_cac_adapter()

Change-Id: I358349e65a0bfa2227b5d93ac6395c13dac9b442
CRs-Fixed: 3523625
2023-07-03 23:02:50 -07:00
Vinod Kumar Pirla
8c93ab2d7a qcacld-3.0: Refactor monitor mode cleanup in stop adapter
Move RTPM wakelock release on monitor mode stop and session
delete to new APIs.
New APIs
1) hdd_monitor_mode_release_wakelock()
2) hdd_monitor_mode_disable_and_delete()

Change-Id: Ib1b0d060fd96dc131d54e1261cadf67e3c23e1d4
CRs-Fixed: 3523612
2023-07-03 23:02:45 -07:00
Vinod Kumar Pirla
bfd69f55cf qcacld-3.0: Refactor NAN disc disable in stop adapter
Move the code logic to disable active NAN discovery
in stop adapter to new API.

New API: hdd_disable_nan_active_disc()

Change-Id: I60c0c36484cdf2ddabe99a5666ccdfd9e2a0b1d5
CRs-Fixed: 3523577
2023-07-03 23:02:40 -07:00
Rahul Choudhary
289ba01949 Release 5.2.1.72Y
Release 5.2.1.72Y

Change-Id: Ie6c2fc074e799849d3589867350cfdc91be784fc
CRs-Fixed: 774533
2023-07-03 19:42:41 -07:00
Vinod Kumar Pirla
70dd9fbc0d qcacld-3.0: Refactor STA/P2P_CLI disconnect in stop adapter
Move the disconnect of connected vdev during stop adapter
for STA and P2P_CLIENT modes to new API.

New API: hdd_sta_disconnect_and_cleanup()

Change-Id: Ifd14244f6e2e538e9b07cdf2440e0998430ff0a1
CRs-Fixed: 3523561
2023-07-03 19:42:41 -07:00
Vinod Kumar Pirla
a49097833e qcacld-3.0: Refactor hdd_unsafe_channel_restart_sap() iterator
Iterate through all the active links in adapter to restart
SAP on unsafe channels.

Change-Id: Ieb4eff375b9156b18613d42d044533094a11a352
CRs-Fixed: 3522689
2023-07-03 19:42:36 -07:00
Rahul Choudhary
6de48cc3e3 Release 5.2.1.72X
Release 5.2.1.72X

Change-Id: I75cb3d8206aa3a737f329c309562ccaeee0acdcb
CRs-Fixed: 774533
2023-07-03 16:19:13 -07:00
Vinod Kumar Pirla
4257a119c3 qcacld-3.0: Refactor NDI cleanup in stop adapter
Move the NDI cleanup code to new API and move
hdd_any_valid_peer_present() API to take link_info
as function argument instead of adapter.

1) hdd_any_valid_peer_present()
2) hdd_peer_cleanup()
3) hdd_stop_and_cleanup_ndi()

Change-Id: I7eccb056fa3e1fe0d90b94e8603144bc1c9e30ea
CRs-Fixed: 3523547
2023-07-03 16:19:13 -07:00
Vinod Kumar Pirla
06b6176019 qcacld-3.0: Move IP notifier work cancel and fc deregister
Move APIs related to IP notifier work callback and flow control
deregister to two new APIs.

New APIs:
1) hdd_cancel_ip_notifier_work()
2) hdd_adapter_deregister_fc()

Change-Id: Id76a92f52d80fb7e0ed52d46bb52a95b22cbd25e
CRs-Fixed: 3523483
2023-07-03 16:19:07 -07:00
Vinod Kumar Pirla
8306eab0e2 qcacld-3.0: Iterate all links in hdd_indicate_mgmt_frame
To fill the VDEV array from adapters, loop through all the
active links in each adapter.

Change-Id: I5607a8d7afaa3a2e6df210cfff4e678050505f42
CRs-Fixed: 3523474
2023-07-03 16:19:01 -07:00
Rahul Choudhary
de43aee3ea Release 5.2.1.72W
Release 5.2.1.72W

Change-Id: I47c2946084b658e2719cad1ed70524180aea1f53
CRs-Fixed: 774533
2023-07-03 12:53:35 -07:00
Vinod Kumar Pirla
1c7864f73d qcacld-3.0: Use link info pointer to reset/abort VDEV scan
Modify the following APIs to take link info pointer as function
argument to reset/abort scan on the corresponding VDEV.
Also enchance the iterator to loop through all the active links
in each adapter.

1) hdd_reset_scan_operation()
2) wlan_hdd_scan_abort()
3) hdd_abort_mac_scan_all_adapters()

Change-Id: I3da827b496712bc9fbe52e7cdcf432de2210b0d8
CRs-Fixed: 3523463
2023-07-03 12:53:35 -07:00
Vinod Kumar Pirla
13441796a7 qcacld-3.0: Iterate all links in shutdown and reset adapter
Iterate through all the active links in adapter in the following
APIs to loop the VDEVs.
1) hdd_reset_all_adapters()
2) wlan_hdd_auto_shutdown_enable()

The below API is changed to take link info pointer as function
argument
1) hdd_send_twt_del_all_sessions_to_userspace()

Change-Id: I689037a11c86602e7f9a2cd1f0b66ddeaa1a4228
CRs-Fixed: 3523139
2023-07-03 12:53:29 -07:00
Prasanna JS
44ddeedbd9 qcacld-3.0: Move SR changes from WMA to Target_if
Move SR changes from WMA to Target_if and remove
WMA api's which was previously using to update
SR threshold.

Change-Id: I219cd56195471df561a5789fb235e375a14e756c
CRs-Fixed: 3374674
2023-07-03 12:53:24 -07:00
Rahul Choudhary
d2ca48fd4f Release 5.2.1.72V
Release 5.2.1.72V

Change-Id: I8bf127b35a8b635227f172b451b675019bcd661d
CRs-Fixed: 774533
2023-07-03 05:29:29 -07:00
Liangwei Dong
c5c0b9bbed qcacld-3.0: Update 6 GHz channel max weight
ACS will mark non ACS channel(filtered by PCL) to SAP_ACS_WEIGHT_MAX.
But the filtered channel still need a reasonable weight to
calculate the combined weight for ACS bw 40/80/160/320.
Assign weight value SAP_ACS_WEIGHT_ADJUSTABLE to such channels and
update it with reasonable after all channels weight are computed.

Change-Id: Iba6565a0f57cc3fe4997427733e922eefc917516
CRs-Fixed: 3537962
2023-07-03 05:29:28 -07:00
Rahul Choudhary
28ff1fa68c Release 5.2.1.72U
Release 5.2.1.72U

Change-Id: Ic65acb44190647500dcca496e41b0b14195f3e71
CRs-Fixed: 774533
2023-07-03 01:47:48 -07:00
Surya Prakash Sivaraj
5e69b2f7f7 qcacld-3.0: Prevent CSA in middle of CAC
If precac interface is in the middle of CAC, do not
entertain any CSA request coming as part of userspace/
country change/unsafe channel handling. Processing the
Channel change request in middle of CAC leads to teardown
of the SAP as SAP is in SAP_STOPPED state.
This leads to pre-cac failure.

To fix this, prevent CSA while CAC and once CAC is finished,
check the sanity of the operating channel based on
unsafe/disable channel list and move it to a valid channel.

Change-Id: I2757753a2a13bdaef60f9b9a46fcd569ddb7306c
CRs-Fixed: 3505593
2023-07-03 01:47:47 -07:00
Rahul Choudhary
06bb23e366 Release 5.2.1.72T
Release 5.2.1.72T

Change-Id: I92af04db8a8404b614d822f7b412c5581ebf3103
CRs-Fixed: 774533
2023-07-02 13:21:03 -07:00
Vinod Kumar Pirla
a4bd503720 qcacld-3.0: Iterate all links in adapter for below APIs
For the following iterator APIs, loop through all the active
link info in each adapter.
1) hdd_is_roaming_in_progress()
2) hdd_is_any_adapter_connected()
3) hdd_get_con_sap_adapter()

Change-Id: Ic48011f4fa2e833e2c18c1ea72b5a75d9c1e8133
CRs-Fixed: 3523126
2023-07-02 13:21:02 -07:00
Arun Kumar Khandavalli
ef9686e9e8 qcacld-3.0: Update the 11be draft version
Now that all the draft 3.0 version related changes are merged update
the draft version accordingly.

Change-Id: If6a4d1e1cef8923af03d321229bba0443f37103a
CRs-Fixed: 3545914
2023-07-02 13:20:57 -07:00
Vinod Kumar Pirla
a4494b8fa5 qcacld-3.0: Iterate all the links to report best RSSI
To report best RSSI of all the links, iterate through
all the active links in adapter.

Change-Id: I2cea05894e5e3e946ea604ec2965401334ee8c8b
CRs-Fixed: 3523109
2023-07-02 13:20:52 -07:00
Vinod Kumar Pirla
15bc64b5ac qcacld-3.0: Iterate all links in hdd_adapter_iterate()
Modify the adapter iterate function pointer
hdd_adapter_iterate_cb() to take link info pointer as
function argument. The API can be called for each
link info pointer in adapter to iterate.

Change-Id: I0908667ed34067c61e857ff2b1d30a3bbccdb31f
CRs-Fixed: 3523082
2023-07-02 13:20:46 -07:00
Rahul Choudhary
e02436f8ca Release 5.2.1.72S
Release 5.2.1.72S

Change-Id: I7bc135f438e9f456e049aa963323fb54507d8d11
CRs-Fixed: 774533
2023-07-02 09:59:42 -07:00
Vinod Kumar Pirla
3c0d10833f qcacld-3.0: Iterate all links in hdd_state_info_dump() API
Iterate through all links in hdd_state_info_dump() API

Change-Id: I56d63f9add94fa0e5a5d3327e9de703a7addb84b
CRs-Fixed: 3523074
2023-07-02 09:59:42 -07:00
Vinod Kumar Pirla
704def9b08 qcacld-3.0: Refactor roam enab/disable APIs
Club the almost similar implementation of of below two APIs and
refactor to a single API to enable and disable roaming on other
VDEVs.

Removed:
1) wlan_hdd_enable_roaming()
2) wlan_hdd_disable_roaming()

New API: wlan_hdd_set_roaming_state()

Change-Id: If59ca593a6a994bbc879c5fda8ae36ce34c5839a
CRs-Fixed: 3523066
2023-07-02 09:59:37 -07:00
Rahul Choudhary
63f44b9caf Release 5.2.1.72R
Release 5.2.1.72R

Change-Id: Ib2cf4c6b53e08a8f93acf4b8a9bd37c23718c6cc
CRs-Fixed: 774533
2023-07-02 06:39:57 -07:00
Vinod Kumar Pirla
60b472aad1 qcacld-3.0: Refactor channel change APIs
Use link info pointer as function argument for the
following channel change notifying APIs to call
for each link info corresponding to the VDEV.
1) hdd_roam_channel_switch_handler()
2) hdd_chan_change_notify()
3) hdd_hostapd_chan_change()

Change-Id: Ic78f8ee88524ede97a53c0d4f8b88cff7ed7a3e5
CRs-Fixed: 3523026
2023-07-02 06:39:57 -07:00
Vinod Kumar Pirla
1427a04c90 qcacld-3.0: Iterate all links to check for DFS channel
In wlan_hdd_check_dfs_channel_for_adapter() API iterate all
the active links to check for DFS channel.

Change-Id: I70aae483f5184f046c33623c030b46caba2e93f0
CRs-Fixed: 3523006
2023-07-02 06:39:51 -07:00
Vinod Kumar Pirla
72b7c48b31 qcacld-3.0: Refactor connection status save APIs
To save the connection info of each VDEV in adapter,
modify the following APIs to have link info pointer
as function argument.
1) hdd_cm_save_connect_status()
2) hdd_cm_save_bss_info()
3) hdd_cm_save_connect_info()

Change-Id: I2c8208f9807f68c9afd2d8ce9c0d473954b906a3
CRs-Fixed: 3522994
2023-07-02 06:39:46 -07:00
Rahul Choudhary
f88719ccc4 Release 5.2.1.72Q
Release 5.2.1.72Q

Change-Id: Ifd85bd560c7e227d7ad0b1d96b69a4aa8b3fdba3
CRs-Fixed: 774533
2023-07-02 00:03:59 -07:00
Vinod Kumar Pirla
35e45a45c1 qcacld-3.0: Iterate all links in cfg80211 suspend API
In __wlan_hdd_cfg80211_suspend_wlan() API iterate through
all active links in adapter to loop through all the VDEVs.

Change-Id: I7692c89596557a2fc264446928e0075d414336e0
CRs-Fixed: 3522985
2023-07-02 00:03:59 -07:00
Vinod Kumar Pirla
15829aeaad qcacld-3.0: Refactor suspend/resume and def_pkt_filter APIs
Refactor the following APIs to iterate all the links in
the adapter and add vdev_id argument to packet filter APIs
to configure each VDEV in the process of iterating adapter.

1) hdd_resume_wlan()
2) hdd_suspend_wlan()
3) hdd_disable_default_pkt_filters()
4) hdd_enable_default_pkt_filters()

Change-Id: I6dd439dfbf1cb94f0a195fd3eed91007b61f403c
CRs-Fixed: 3522971
2023-07-02 00:03:53 -07:00
Vinod Kumar Pirla
8306982663 qcacld-3.0: Refactor hdd_get_sap_adapter_of_dfs() iterator
Iterate through all the active links in the adapter to check
for any SAP on DFS channel.

Change-Id: I2d84edc2a8cb8d3c8410c9e7e4badfa0fb2215ea
CRs-Fixed: 3522948
2023-07-02 00:03:48 -07:00
Rahul Choudhary
d83888b243 Release 5.2.1.72P
Release 5.2.1.72P

Change-Id: I1a7a8a8b64f868e0a68b9428cb64ec03ac823b45
CRs-Fixed: 774533
2023-07-01 20:37:55 -07:00
Pragaspathi Thilagaraj
5e1d12de02 qcacld-3.0: Update AID in LFR-3.0 roaming case
In LFR-3.0 roaming case, AID is not updated to the wma iface.
So when CSA happens after roaming, AID received from older AP
before roaming is sent to the firmware. This results in the
device not listening to TIM set with buffered frames for the
device AID

Fill AID of the roamed AP to wma iface

Change-Id: I2082eb3451679e34ea6a128ae9f51634c34d276b
CRs-Fixed: 3532814
2023-07-01 20:37:55 -07:00
Rahul Choudhary
7a3ffd67f8 Release 5.2.1.72O
Release 5.2.1.72O

Change-Id: I0a7f6cdc857b68894fef639c7be0adcb22282f1f
CRs-Fixed: 774533
2023-07-01 06:48:03 -07:00
Gururaj Pandurangi
1cb1169f5e qcacld-3.0: Disable OCV for 11BE mode connection with EHT AP
Disable Operating Channel Validation (OCV) by default for
connections with Wi-Fi 7 APs in 11BE mode as per WFA
recommendation to avoid IOT issues with Wi-Fi 7 APs in the
future.

Change-Id: Iecdabdda1f645300fd9d8c2821a985771e60ce2e
CRs-Fixed: 3534392
2023-07-01 06:48:03 -07:00
Abhinav Kumar
745eadeca0 qcacld-3.0: Issue disconnect on STA while start/stop SAP
For STA+SAP/GO concurrency support from GUI, In case if
START/STOP AP/GO request comes just before the SAE
authentication completion on STA, SAE AUTH REQ waits for
START/STOP AP RSP and START/STOP AP RSP waits to complete
SAE AUTH REQ.

Driver completes START/STOP AP RSP only upon SAE AUTH REQ
timeout(5 sec) as start/stop ap will be in serialization
pending queue, and SAE auth sequence cannot complete as
hostap thread is blocked in start/stop ap cfg80211 ops.

To avoid above deadlock until SAE timeout, abort the SAE
connection immediately and complete START/STOP AP/GO asap
so that the upper layer can trigger a fresh connection
after START/STOP AP/GO completion.

Change-Id: I96de1bb27dfc669ccf920a90cf86a3cb54e68354
CRs-Fixed: 3452943
2023-07-01 06:47:57 -07:00
Asutosh Mohapatra
8b5d4a4cc4 qcacld-3.0: Add enhancements to support SET_FCC_CHANNEL 2
Currently in host support is there for SET_FCC_CHANNEL
command for values 0, -1, 1.
Add changes to support SET_FCC_CHANNEL command for value 2.

Change-Id: Ia67eceb5dffc6f806995bb03755008b19e98178a
CRs-Fixed: 3537394
2023-07-01 06:47:51 -07:00
Rahul Choudhary
36ec34e1f7 Release 5.2.1.72N
Release 5.2.1.72N

Change-Id: I5dcefa1cf1b7dace5dd681bcc9a9e0b7fecba777
CRs-Fixed: 774533
2023-06-30 23:48:33 -07:00
Paul Zhang
472d30e365 qcacld-3.0: Revert "Tune TDLS code for discovery response"
The issue has been addressed in the supplicant.
So revert change: I89b501fc4da8615ddb8973e5edce73294793558f

Change-Id: I02b74a512c97803c597942c1ea00e3a02fbf4599
CRs-Fixed: 3544617
2023-06-30 23:48:33 -07:00
Jia Ding
6d5db78bf8 qcacld-3.0: Cleanup multiple include compiler options
Multiple include directories only contains .c source files
without any .h header files. Hence remove those include
compiler options.

Add monitor include path under feature flag
CONFIG_WIFI_MONITOR_SUPPORT.

Change-Id: Iec59a592c60b27cb22bf712e883dd5895044874a
CRs-Fixed: 3543857
2023-06-30 23:48:28 -07:00