提交图

122 次代码提交

作者 SHA1 备注 提交日期
Amruta Kulkarni
64b096fde9 qcacmn: Support roam start and roam abort request in CM
Add support for roam start and roam abort request
in connection manager.

CRs-Fixed: 2882233
Change-Id: I5780e7f22363ee6014d39b0df9cb068b4afdd71c
2021-03-05 10:10:04 -08:00
Abhishek Singh
9b797fd035 qcacmn: Add logic to remove preauth and roam ser command
Add logic to remove preauth or roam command from serialization
depending on the state the roaming was in.

Change-Id: Ia381d040ce7e15a725eb2402896bf476d3236566
CRs-fixed: 2882994
2021-03-05 01:18:30 -08:00
Ashish Kumar Dhanotiya
ad9b0c99d0 qcacmn: Replace wlan_cm_roam_resp struct with wlan_cm_connect_resp
Structure wlan_cm_roam_resp and wlan_cm_connect_resp are identical
structures and in current code these structures are used for connect
and reassoc functionalities with different functions as these are
identical structures and only one structure can be used to reduce
the duplication of the code.

To address this code duplication issue replace wlan_cm_roam_resp
structure with wlan_cm_connect_resp.

Change-Id: I90949c25f46acd2fa78cebb70c9a04f0718b90c4
CRs-Fixed: 2875232
2021-03-04 06:37:09 -08:00
Himanshu Batra
311a257c9e qcacmn: Avoid NULL pointer dereferences
Add checks to avoid NULL pointer dereferences

Change-Id: I4b53936d6e08b5bb27c77dd9097a14c87d38f5a6
CRs-Fixed: 2887354
2021-02-26 11:50:35 -08:00
gaurank kathpalia
10469149f2 qcacmn: Optimize event_handled while handling events
Optimize event_handled while handling connection manager events.

Change-Id: I0e6604fe8757c4a812941e178dbcfe6b00d677eb
CRs-Fixed: 2885958
2021-02-25 07:36:03 -08:00
gaurank kathpalia
fffe13cbc9 qcacmn: Fix the pointer reset in cm_allocate_and_copy_ies_and_keys
In cm_allocate_and_copy_ies_and_keys instead of target's pointer
source's pointers are reset thus making the following code void

Fix this by resetting the target pointers which needs to be allocated
with new memory.

Change-Id: I4417492c43eb27833d365ec4aa644e07ed4eca51
CRs-fixed: 2884187
2021-02-24 01:51:45 -08:00
gaolez
76469c8aee qcacmn: Optimize congestion calculation logic
In current code logic, in case of channel utilization value is 0, the
congestion value treated as “not present” and give it a medium score.
This will cause a very clean channel get a medium score.
To fix the issue, need calculated congestion score from 1-100 and
not 0-100.

Change-Id: Iff030cf4a682d6e585d6f812a522cb8b6683cc44
CRs-Fixed: 2812978
2021-02-24 01:51:40 -08:00
Abhishek Singh
1c177a9a31 qcacmn: Remove #ifdef WLAN_FEATURE_INTERFACE_MGR from connection mgr
Remove #ifdef WLAN_FEATURE_INTERFACE_MGR from connection mgr, as
interface manager .h files take care of it.

Change-Id: I5b1e07beecd93c98429318372ed72fdf414712a4
CRs-fixed: 2878656
2021-02-23 05:31:13 -08:00
Amruta Kulkarni
d5cc294f49 qcacmn: Support roam invoke request in connection manager
Add support for roam invoke request in connection manager.

CRs-Fixed: 2869259
Change-Id: I618add058d39e9452530b1950cff57bfe6100448
2021-02-18 03:12:24 -08:00
Himanshu Batra
051c1e0d79 qcacmn: Make CM ser disconnect req as blocking or non blocking
Make CM serialization disconnect req as blocking or non blocking based
on feature macro

Change-Id: I71d664e28cba35d44c0c1fac2bd6a38c4bc4c9df
CRs-Fixed: 2879850
2021-02-17 22:09:37 -08:00
Vivek
f07ebaf7d8 qcacmn: Change default scan max timeout value for CM scan
The current value of scan timeout value is 10 secs.
Earlier for ap platform the scan timeout wass set to default as 50 secs
and and also for ap platform the scan could be triggered for internally
triggered connect and the max scan timeout
of 50 secs should not result in supplicant timeouts.

So setting the max scan timeout value of 50 sec for ap platforms

CRs-Fixed: 2870782
Change-Id: Icd2841f1f5503623f15bdbdea3430ef6559b9a1b
2021-02-16 08:59:24 -08:00
Santosh Anbu
45532c9924 qcacmn: Remove duplicate functions in connection manager
This is a cleanup fix to remove duplicate functions and remove unused
debug logs.

Change-Id: I0ebd203f0d19ad52cf97dcfe32914df59d1ea102
CRs-Fixed: 2863865
2021-02-16 06:55:48 -08:00
gaurank kathpalia
5e808c71c3 qcacmn: Handle Connect/disconnect req in during roaming
Handle Connect/disconnect req in during roaming.

Change-Id: I84612631e52fa7c736272f7d1dc4fb911dbb0401
CRs-Fixed: 2873931
2021-02-15 22:33:00 -08:00
Himanshu Batra
02d0594adf qcacmn: Avoid NULL pointer dereference
In case of handling connect scan response, if cm_req is not found for
scan id, cm_req will be NULL and is getting deref at
cm_send_connect_start_fail.
Add fix to avoid NULL pointer dereference

Change-Id: I6b30a4bc41d3b0568dd307c91a7a7202d92b9c87
CRs-Fixed: 2877829
2021-02-15 09:27:47 -08:00
gaurank kathpalia
adea92b026 qcacmn: Move cm_bss_select_ind_rsp outside CONN_MGR_ADV_FEATURE
Move cm_bss_select_ind_rsp outside CONN_MGR_ADV_FEATURE.

Change-Id: I1a1b82a50592911f99bb65d6996165e38c699791
CRs-fixed: 2876302
2021-02-12 16:51:42 -08:00
Abdul Muqtadeer Ahmed
f44435fb3c qcacmn: Change default value of ini is_bssid_hint_priority
The default value of ini is_bssid_hint_priority change 1 for AP
and 0 for non AP in documentation.

Change-Id: I4181ba5b72a5d6f013be74adaa579fb23370e25c
CRs-Fixed: 2869604
2021-02-08 15:01:19 -08:00
gaurank kathpalia
7bcb5cd4b9 qcacmn: Add logic to set serialization timeout per tried candidate
Add logic to set serialization timeout per tried candidate

Change-Id: I08443b8d7e318f971b1905d8a457393be4ad2309
CRs-Fixed: 2852452
2021-02-05 12:06:00 -08:00
Santosh Anbu
2f71a62bab qcacmn: Add change to support logging request to conn_mgr
Support logging history of the requests being sent to connection
manager.

Change-Id: Ifcc3a460e7694f6b6feb1b35121e6fc8e3333935
CRs-Fixed: 2860578
2021-02-02 11:04:01 -08:00
gaurank kathpalia
4cd10d00e3 qcacmn: Add is_wps is_osen in connect req
Add is_wps and is_osen in connect req to avoid parsing assoc ie
multiple time to get the info.

Change-Id: Iae0130e946d02cdacfec986770ef25b3d6b57aa4
CRs-Fixed: 2859665
2021-02-02 01:03:58 -08:00
Abhishek Ambure
35135ea9a1 qcacmn: Fix the FILS params set
Host updates proper FILS param set i.e. username, auth_type and
is_fils_connection in the FILS response.

Change-Id: I0c30325bc7d620aa286aae0dd299dec9b26219ff
CRs-Fixed: 2865060
2021-01-29 08:17:50 -08:00
Abhishek Singh
fb8d6c3859 qcacmn: Fix unlink bss is success case
In connection success case the unlink BSS is not required, so
add the status check.

Change-Id: If5e2d02b37865267a096f01f0835bdccbc8e1c3d
CRs-Fixed: 2860102
2021-01-22 20:52:19 -08:00
gaurank kathpalia
b1f56ba00c qcacmn: Avoid if manager and connect ind call after connect scan
After connect scan the cm_connect_start is called again and it
end up calling ifmanager and connect start API again, leading to
thread blocking and assert.

Fix this by calling these indication only on the actual connect
start req and not from scan state.

Change-Id: I86ed7b1b84fcce715b52f8041b3d565dc6d949c8
CRs-Fixed: 2860082
2021-01-22 05:31:36 -08:00
gaurank kathpalia
bd8eeecda6 qcacmn: Add missing params for the fils connection
Add missing params for the fils connection.

Change-Id: I7442670c30d7ddee201c2bc328372513302f971d
CRs-Fixed: 2857905
2021-01-21 17:04:45 -08:00
Santosh Anbu
6cc0d45bfd qcacmn: Fix connect resp struct params
Fix connect resp params.
-- Fix length of the assoc req and assoc resp
-- Remove unused params from connect resp

Change-Id: I992b1bf1037bb4a09ecd37501420168c29de8187
CRs-Fixed: 2857372
2021-01-21 03:43:40 -08:00
Santosh Anbu
b52ff8c14b qcacmn: Dispatch reassoc failure event in sync/async context
Reassoc fail event is dispatched  either from one of the roam states in
connection SM or from peer create response handler.
Hence dispatch reassoc fail in sync/async mode.

Change-Id: I4dc462b956610a480e0c963676988492a73285f3
CRs-Fixed: 2852393
2021-01-18 23:52:16 -08:00
Himanshu Batra
6e59547918 Revert "qcacmn: Fix connect resp struct params"
Revert "qcacmn: Fix connect resp struct params"

Change-Id: Ib2149f33c9faddd4194644033b61144a3043d21c
2021-01-18 23:52:12 -08:00
gaurank kathpalia
6dc7ecfcb8 qcacmn: Fix assignment of vdev in cm_ctx and few prints
Fix the assignment of vdev in cm_ctx and fix few prints.

Change-Id: I5d76ab2ca39a1a84b3987fd9cb566c2f08ecc399
CRs-Fixed: 2856499
2021-01-18 03:27:18 -08:00
gaurank kathpalia
9b7a248d36 qcacmn: Fix connect resp struct params
Fix connect resp params.
-- Fix length of the assoc req and assoc resp
-- Remove unused params from connect resp

Change-Id: I9ae7f4f155e16cd45dad2c99cc471773c9f12b84
CRs-Fixed: 2852445
2021-01-15 01:58:51 -08:00
gaurank kathpalia
99e2ae6712 qcacmn: Fix compilation errors for roaming in connection manager
Fix compilation errors for roaming in connection manager.

Change-Id: If154b1b0ca4adfe9f398b37f6d4485de40e2e351
CRs-Fixed: 2849276
2021-01-11 01:52:52 -08:00
Santosh Anbu
45a300ce7b qcacmn: Support roaming request to connection manager
Add change to support roaming request to connection manager.

Change-Id: I7f580e042522a245fc6a263d0e8f8b32b2f693f7
CRs-Fixed: 2845076
2021-01-11 01:52:47 -08:00
Santosh Anbu
d788ea076d qcacmn: Add reassoc changes related to host roaming
Support reassoc request for host roaming

Change-Id: Iacb2950e314561c22ed1900de6522dd192cda12e
CRs-Fixed: 2845076
2021-01-11 01:52:41 -08:00
Ashish Kumar Dhanotiya
7ae06586a2 qcacmn: Resolve compilation issue for connection manager UTF
Currently there are few compilation issues for connection
manager UTF, with this change fix these compilation issues.

Change-Id: I974b336594685cf584090074365c749b6e1271b2
CRs-Fixed: 2851111
2021-01-08 18:46:50 -08:00
Abhishek Ambure
4fb0c8fccb qcacmn: Add support to save gtk and set hlp data
Host add support to save gtk and set hlp data from fils ie of connect
response.

Change-Id: I5e6b9882359697f09a0935a9c07f3427dbe04cc2
CRs-Fixed: 2849123
2021-01-07 23:29:05 -08:00
gaurank kathpalia
5431b5345c qcacmn: Add legacy pointer in connection manager context
Add legacy pointer in connection manager context to use for RSO
and other connection manager legacy operations.

Change-Id: If3fdfc7d830fb15f6c2ef56cdd0b7b3dde7f5f36
CRs-Fixed: 2845981
2021-01-07 23:29:02 -08:00
Abhishek Singh
a945925ad3 qcacmn: Add APIs to check roam substate state in connection manager
Add APIs to check roam substate state in connection manager.

Change-Id: I1c91e4e0bcb971d66bdf5d44af96d4049f991dfd
CRs-Fixed: 2847369
2021-01-05 22:34:30 -08:00
Abhishek Ambure
2f21a68e2a qcacmn: Update bssid in cm request from cm_get_active_disconnect_req
To get active disconnect request host uses cm_get_active_disconnect_req
API. Update missed field BSSID into connection request from
cm_get_active_disconnect_req API.

Change-Id: I94fa3e14b4584b95b1d918390e5572fa8f112571
CRs-Fixed: 2846679
2020-12-30 11:24:50 -08:00
Himanshu Batra
267abe7138 qcacmn: Pass correct argument while delivering CM Scan Fail Event
Pass correct argument while delivering CM Scan Fail Event

Change-Id: I82fbf8326fd8e5cd8d0fe8a13c6cfe36605fca2d
CRs-Fixed: 2844043
2020-12-23 04:45:30 -08:00
Ashish Kumar Dhanotiya
35998406e0 qcacmn: Allow 6GHz AP for WPS
With current implementation host does not allow
6GHz AP for WPS security, add a change to allow 6GHz AP for WPS.

Change-Id: I9e330f2984a716bb56e47313b65eedb4a1a0e216
CRs-Fixed: 2814259
2020-12-21 20:55:23 -08:00
Santosh Anbu
1e98fba13b qcacmn: Check return value of connect active indication
Add change to check the status of connect active indication.

Change-Id: I69afbfba0b8d35c5fafa2d9f7353ade39e41bf92
CRs-Fixed: 2840344
2020-12-18 01:50:13 -08:00
Himanshu Batra
70fc6c603c qcacmn: Support connect/disconnect request due to cfg change
Add enum to indicate the connect or disconnect request initiated
due to a config change.

Change-Id: I68e058f37f00b548076874c97903dc78d4f4cb25
CRs-Fixed: 2826533
2020-12-11 03:35:43 -08:00
Vivek
c528ee61e6 qcacmn: Add API for max connect timeout
Add API for max connect timeout

CRs-Fixed: 2835411
Change-Id: I08e488963df9fae591ab0d8f36283b05cb2d5e08
2020-12-10 23:34:58 -08:00
Vivek
711c3d47cc qcacmn: Add new CM APIs
Add the following new API for the connection manager
to get the active request type, active connect request,
active disconnect request

wlan_cm_get_active_req_type
wlan_cm_get_active_connect_req
wlan_cm_get_active_disconnect_req

CRs-Fixed: 2821225
Change-Id: I8b2a2edfafe09c5642c376f45d4b2ae349145dbf
2020-12-10 03:45:03 -08:00
gaurank kathpalia
80cf078dab qcacmn: Overide blacklist and connect to AP
Currently the connection manager queries the
blacklist manager about the action to be taken
and if all the candidates of a certain SSID are
blacklisted then the connection would be rejected.
There are various types of blacklisting, some
can be overridden and some have to be strictly
followed.

Fix is to overide the blacklist candidate and
connect to it if no other candidates are suitable
for connection.

Change-Id: I84358df5f94d4c82989bf81412355f312320dc0b
Crs-Fixed: 2825519
2020-12-09 21:56:13 -08:00
Himanshu Batra
27378433c5 qcacmn: Add public API to print CM state history
Add public API to print CM state history

Change-Id: Iab079eeb1e4f4a2a256e8e0721db415e539523eb
2020-12-07 09:05:36 -08:00
Himanshu Batra
f994a48ab9 qcacmn: Use bh spinlock for CM
Use bh spinlock for CM

Change-Id: I28a0de73f98e386d9db9e5d63a51e5aee2c12b0e
2020-12-01 04:44:27 -08:00
Himanshu Batra
71fd0da4d7 qcacmn: Resolve compilation issue for CM
Resolve compilation issue for CM

Change-Id: Id9ab5cf96d3865b13d5ea020e6e92016c3493f22
2020-11-26 00:16:50 -08:00
Himanshu Batra
1557043c49 qcacmn: Make connect/disconnect ser cmd as blocking
Make connect/disconnect ser cmd as blocking across all platforms

Change-Id: I8cc6988fcb53f257fc4aab00c1b3abaca07174bf
2020-11-26 00:16:46 -08:00
gaolez
1d0d4cbe6b qcacmn: Optimize congestion score calculation
In current code logic, in case of channel utilization value less
than 3, the congestion value treated as “not present” and give
it a medium score. This will cause a very clean channel get a medium
score.

To fix the issue, need calculated congestion score from 1-100 and
not 0-100.

Change-Id: I6abb257e8298e4db3104fdc20351bbadaa7c2ec5
CRs-Fixed: 2812978
2020-11-25 04:51:35 -08:00
Himanshu Batra
569cc296ed qcacmn: Add basic infra for connection manager UTF
Add basic infra for connection manager UTF

Change-Id: Id111a4bcda970e927b73441be55de4d33a694796
2020-11-25 00:52:13 -08:00
Himanshu Batra
c8fc486dd6 qcacmn: Activate connect/disconnect from serialization via schedular
On completion of connect/disconnect request, the command is removed from
serialization queue. If there if any connect or disconnect request in
serialization pending queue for the same vdev, the command is moved from
pending to active queue in the same context.
All this operation happens under CM SM lock. As part of activation of
next command, the CM tries to acquire same lock to dispatch even to
connection SM. As a result, deadlock is observed.
Add fix to Activate connect/disconnect from serialization pending queue
via deferred context using scheduler

Change-Id: I7f2873ab6d2a639b55ccc54e37463a892d9aae94
CRs-fixed: 2820539
2020-11-20 10:43:47 -08:00