Gráfico de commits

200 Commits

Autor SHA1 Mensagem Data
gaurank kathpalia
c6be8b90df qcacmn: Add logic to try same candidate based on scenarios
Add logic to try with the same candidate again based on
below scenarios:

 - If status code is STATUS_INVALID_PMKID
 - Join timeout and only one candidate
 - Assoc timeout and SAE connection
 - Assoc timeout and reconnect vendor IE set

Change-Id: I7ce803549f4627bc13d03b99999767002fd84be4
CRs-Fixed: 2792775
2020-10-13 04:13:32 -07:00
gaurank kathpalia
77f0dd0632 qcacmn: Delete pmkid and single pmkid on connect failure
Add logic to delete the pmkid and single pmkid depending on
connect response status code and failure.

Change-Id: I7a27f887173ba7cdc13c3ce49ded5d2fcc8198fa
CRs-Fixed: 2792774
2020-10-13 04:13:27 -07:00
Ashish Kumar Dhanotiya
5da344f9b7 qcacmn: Resolve compilation issues in connection manager
Address compilation errors in connection manager.

Change-Id: I0ba9d93b64bbfe2ca4fd29e3726e1f22d70f8b54
CRs-Fixed: 2793583
2020-10-12 12:46:45 -07:00
gaurank kathpalia
7d55cb743a qcacmn: Handle disconnect requests in different states
Handle disconnect requests in different states.
Take care of flushing scan and older connect and queueing
internal disconnect depending on the current state.

Change-Id: I08015d866fb629951b85f95fcd3cf0155e902082
CRs-Fixed: 2793228
2020-10-12 04:26:59 -07:00
gaurank kathpalia
5f77fb500d qcacmn: Add logs while adding and deleting the cm requests
Add logs while adding and deleting the cm requests for debug.

Change-Id: Ibdc7f889a30425be434b7b58b67d0a5209b4b9f4
CRs-Fixed: 2793533
2020-10-10 04:26:56 -07:00
gaurank kathpalia
e2ec5b2d46 qcacmn: Update vdev crypto params from connect request
Update vdev crypto params from the connect request.

Change-Id: I007547196ecf24992bc4cca51fce9f3e85f8099c
CRs-Fixed: 2787324
2020-10-07 12:49:03 -07:00
Abhishek Singh
9d01a66a5e qcacmn: Add disconnect sync API to wait for disconnect to complete
Add sync API for disconnect to wait for disconnect to complete.
This can be used during vdev delete sequence to move the vdev and
connection manager SM to init state before VDEV is marked logically
deleted.

Change-Id: Id562e444cf1995d800b8268f906f811f143d0fc9
CRs-Fixed: 2790885
2020-10-07 12:48:56 -07:00
gaurank kathpalia
a33d1a2537 qcacmn: Handle connect requests in different states
Handle connect requests in different states.
Take care of flushing scan and older connect and queueing
internal disconnect depending on the current state.

Change-Id: I5be3fcd75a1b27e9a9f4d7da3008b3b5b2224f7b
CRs-Fixed: 2790028
2020-10-07 09:26:51 -07:00
gaurank kathpalia
6fdbfee38a qcacmn: Fix connection manager compilation issues
Fix connection manager compilation issues.

Change-Id: I0fbb1d630157b96fb15ee2b7f4789a4b9e9ae63d
CRs-Fixed: 2792059
2020-10-07 09:26:48 -07:00
Abhishek Singh
7fcea50eab qcacmn: Replace CM_PREFIX_LOG with CM_PREFIX_FMT and CM_PREFIX_REF
Use CM_PREFIX_FMT and CM_PREFIX_REF to print connection mgr logs
instead of CM_PREFIX_LOG to avoid confusion.

Change-Id: I06c0009804d9c49da4916a120b6dc448ea28fdb6
CRs-Fixed: 2791198
2020-10-06 12:03:22 -07:00
gaurank kathpalia
fb17117bd9 qcacmn: Use proper API to get the connection manager states
Fix the API used to get the connection manager states.

Change-Id: Id657a3901604af637680a536e6a7231b008b08ae
CRs-Fixed: 2790890
2020-10-06 06:50:44 -07:00
Ashish Kumar Dhanotiya
0ac0e6b10e qcacmn: Add support for disconnect path for connection manager
Currently disconnect is not handled in connection manager,
add support to handle disconnect in connection manager.

Change-Id: If3d5ac12300527ea0162efd955521711ed52c494
CRs-Fixed: 2785950
2020-10-06 01:28:16 -07:00
Abhishek Singh
8a5194d9cc qcacmn: use qdf_scnprintf to print state machine name
Use secure qdf_scnprintf instead of qdf_snprintf to print
state machine name.

Change-Id: I561130b5b7d728d28f883380843f957a4af34e78
CRs-Fixed: 2788893
2020-10-01 23:58:37 -07:00
gaurank kathpalia
14be947c4e qcacmn: Fix logging in connection manager
Add vdev id and cm id in connection manager logs.

Change-Id: I1061f6daeb940167508e18ece006f425fc6bc775
CRs-Fixed: 2787825
2020-10-01 16:58:08 -07:00
gaurank kathpalia
619e46370d qcacmn: Add public API for connection manager
Add public util API for connection manager to get connection
states and set max connection attempts.

Change-Id: I66d4318c7465e3926d6bacdc70dbb849827bf2c4
CRs-Fixed: 2787323
2020-09-30 08:38:45 -07:00
gaurank kathpalia
54f1e8f100 qcacmn: Rename connection manager candidate select APIs
Rename connection manager candidate select APIs to bss select.

Change-Id: Icabeb57965920ec82e690bee662528189b081f32
CRs-Fixed: 2786493
2020-09-30 08:38:41 -07:00
gaurank kathpalia
fdfaaf5260 qcacmn: Add connection logic after serialization part 2
Add event handling for mlme indication for connect start for
peer and its response. Add the interface manager missing
events. Add sync and async event handling for serialization
callback

Change-Id: I5cbb9a6ac1350f8035224135fb159010311a8468
CRs-Fixed: 2784163
2020-09-25 20:20:44 -07:00
Ashish Kumar Dhanotiya
7232e077f7 qcacmn: Update crypto params based on IEs for connect request
Currently connection manager does not update crypto params
of connect request based on RSN/WPA/WAPI IEs.

Add logic to update the connect params based on IEs.

Change-Id: I74aba3c061ed5fc203be7270dcc244f14718c781
CRs-Fixed: 2777574
2020-09-24 00:13:41 -07:00
gaurank kathpalia
4de6d6b0d5 qcacmn: Handle connect response in connection manager
Handle connection response in connection manager.

Change-Id: I796b3c19c728323901f1a44e851616d3a0286763
CRs-Fixed: 2781566
2020-09-22 12:15:52 -07:00
Abhishek Ambure
a6c6790b93 qcacmn: Move RSNXE IE parsing to crypto module
Move RSNXE IE parsing to crypto module and add entry of RSNXE IE in
util_scan_copy_beacon_data() so that a copy of RSNXE IE remains in
scan entry cache and doesn't get free on scan result update.

Change-Id: I792c8636d7e1f21c6291158188ab2c1d241151ec
CRs-Fixed: 2780832
2020-09-21 19:30:30 -07:00
Ashish Kumar Dhanotiya
05d0f49abd qcacmn: Rename osif files and functions for connection manager
The naming of the osif files and functions is not correct as
these files and functions include wlan_cfg80211 as prefix
instead of osif.
Correct file name and function name should contain the component
name first, followed by feature name followed by method.

Change-Id: Ic166c112189ef79a84f61d16e7e04a6334c61178
CRs-Fixed: 2780298
2020-09-21 12:22:43 -07:00
Abhishek Singh
e1fb6b17d4 qcacmn: Add reason code enum and prints in connect and disconnect
Add reason code enum and prints in connect and disconnect handlers,
also take care of the vendor reason code during disconnect resp.

Change-Id: I1298e0739bd08d7d43fcb3839a07459819207196
CRs-Fixed: 2778233
2020-09-20 21:53:39 -07:00
gaurank kathpalia
4af3739c3d qcacmn: Add connect path logic after serialization
Add connect logic after serialization in connection manager.

Change-Id: I6aabc956d4ade20379aec000f566ccbfcfdcfd23
CRs-Fixed: 2776348
2020-09-18 15:17:23 -07:00
gaurank kathpalia
4609c06b56 qcacmn: Handle serialization activation and hw mode change resp
Handle the serialization activation callback for connect and
disconnect and hw mode change resp for connect.

Change-Id: I553a650ea04daa5aa22ee43376b9359aed58c59f
CRs-Fixed: 2776022
2020-09-15 18:25:02 -07:00
gaurank kathpalia
b35ff6577c qcacmn: use proper event post API for internal and external events
Use cm_sm_deliver_event() API to post the event from any
callback/req/resp from external modules. i.e serialization/hw mode
callback OR any resp from SB/other module or req from NB.

And use cm_sm_deliver_event_sync() API to post the event when the
SM lock is already taken i.e. internal posting of the event.

Also to avoid any race add the connect/disconnect req to the
connection manager request list after posting to the SM.

Change-Id: I98fc39be5ef51242553dae54448c3fe2cb9604d2
CRs-Fixed: 2776010
2020-09-15 18:24:29 -07:00
Abhishek Ambure
8248366419 qcacmn: Add ini support for SAE-PK roam score
SAE Public Key (SAE-PK) authentication is an extension of SAE. Host adds
support for SAE-PK APs roam score which host uses to select AP for initial
connection and roaming.
User configures SAE-PK APs weightage using INI "sae_pk_ap_weightage".

Change-Id: I9066c483188bcbf01e3ffbcc4c57f04e1a9129f1
CRs-Fixed: 2769373
2020-09-15 04:59:38 -07:00
Ashish Kumar Dhanotiya
76c1c5f124 qcacmn: Handle connect response in osif for connection manager
Add connection manager connect response handler in osif to
handle and send the connect response to kernel.

Change-Id: If675055cb2133e64b4b32a47271b12a59eac4a66
CRs-Fixed: 2765977
2020-09-15 02:46:07 -07:00
Ashish Kumar Dhanotiya
45a6ac131e qcacmn: Handle disconnect ind to kernel for connection manager
Add support in connection manager for disconnect done indication
to kernel.

Change-Id: Ia4e767a95403de04268ed8c5e424974788c90b17
CRs-Fixed: 2765978
2020-09-11 23:39:42 -07:00
gaurank kathpalia
d69cadae0c qcacmn: Add changes to add and delete connection mgr req
Add changes in connection manager to add and delete connection mgr
request from the cm ctx list. Also make changes to add support
to get cm id for these requests.

Change-Id: I33706e01ea684e8c3524407ca9b4c67d438db8a5
CRs-Fixed: 2770693
2020-09-11 07:36:47 -07:00
gaurank kathpalia
a34d51b747 qcacmn: Add get API for assoc disallowed param
Add public API to get the value of assoc disallowed
param.

Change-Id: Id97219be71a54a2edc5fb266026710387dfee143
CRs-Fixed: 2767492
2020-09-02 23:52:00 -07:00
gaurank kathpalia
96fb5eb625 qcacmn: Take care of hw mode change in Connection mgr
Set hw mode before initiating connection request
and send vdev start to FW.

Change-Id: I658f0f03a68da923dbfa1213e278490bc1e874cf
CRs-Fixed: 2763364
2020-09-02 00:21:11 -07:00
Abhishek Singh
78dc32e86c qcacmn: Fix the connection manager state machine init failure
The state machine infra require the states in sequence and addition
of if define in the wlan_sm_state_info will lead to state machine
init failure.

Fix this by removing the if define from the wlan_sm_state_info and
adding the dummy func for not define cases.

Change-Id: I5c5cb7837774954183a8ea1683c401441fb48bab
CRs-Fixed: 2764953
2020-09-01 05:37:34 -07:00
Srinivas Girigowda
a4bf024bf1 qcacmn: umac: Change %pM/QDF_MAC_ADDR_STR/ARRAY to QDF_MAC_ADDR_FMT/REF
Change %pM/QDF_MAC_ADDR_STR/ARRAY to QDF_MAC_ADDR_FMT/REF.

CRs-Fixed: 2760938
Change-Id: I78b072b5cc623477135823512f9b8e7ef7ef4309
2020-08-23 23:09:36 -07:00
Ashish Kumar Dhanotiya
30f4cf7c40 qcacmn: Add mlme apis and callbacks for connection manager
Add support for mlme apis and callbacks for connection
manager infrastructure.

Change-Id: Ia7a4060dc2bda41962569a298875bde7cd7ba283
CRs-Fixed: 2758028
2020-08-21 11:42:22 -07:00
Santosh Anbu
857c046886 qcacmn: Update scoring weightage for AP platform
Since few of the BSS scoring weightage is not applicable to AP platform
i.e WIN, use macro to set the default values for both WIN and MCC
platform.

Change-Id: Ic40deaab2621215c7bfc02c7cde082b81761f27b
CRs-Fixed: 2746158
2020-08-21 04:46:46 -07:00
Santosh Anbu
ad52315b1f qcacmn: Add conn_mgr advance feature macro
Add advance feature macro to contain the feature set specific to
MCC.

Change-Id: Ifc537c720c518452d001b4b3587b8489d6c94e17
CRs-Fixed: 2758078
2020-08-20 23:08:18 -07:00
gaurank kathpalia
1c65e1b75b qcacmn: Handle assoc disallowed in MBO OCE IE
Handle the assoc disallowed case in MBO OCE IE
and remove candidate from the candidate list.

Change-Id: Ieb5ebdd9528a3179a215dcd5ce8083178ab68ae8
CRs-Fixed: 2753508
2020-08-13 06:13:37 -07:00
gaurank kathpalia
63854a8235 qcacmn: Fix compile and other issues in connect request
Fix minor compile and other issues in connect req in connection
manager

Change-Id: I6c5d3146f4022cc4d12ac847815bca311962400c
CRs-Fixed: 2753498
2020-08-12 19:53:16 -07:00
gaurank kathpalia
bd6a237677 qcacmn: Serialize connect and disconnect request
Serialize connect and disconnect request in CM

Change-Id: I7eacafaf2fb1c71d7c42a493d4acb855f399c698
CRs-Fixed: 2750754
2020-08-11 16:08:09 -07:00
gaurank kathpalia
6a2f984c06 qcacmn: Add get candidates logic in connection manager
Adds get candidates logic in Connection manager.

Change-Id: I852b0bfab51f9914734181e4f748ef962d63b8b7
CRs-Fixed: 2749185
2020-08-11 16:08:06 -07:00
Ashish Kumar Dhanotiya
64476bcd6c qcacmn: Add connect infra for connection manager
Add connect functions to convert kernel specific connect
request to connection manager specific connection request
for connection manager infrastructure.

Along with the above functions, add the file structure for
connect, disconnect and roam functions for connection
manager infrastructure.

Change-Id: Id4e389d06cea6e39327faef0c119275741574785
CRs-Fixed: 2739318
2020-08-05 13:25:30 -07:00
Abhishek Singh
9d14f9d71a qcacmn: Rename mlme_cm_* apis to cm_* apis
Rename connection manager mlme_cm_* apis to cm_* apis.

Change-Id: I90129b2b71b121dd684890677d2d23e921a57574
CRs-Fixed: 2740376
2020-07-30 02:05:56 -07:00
gaurank kathpalia
26ea02a1ea qcacmn: Handle connect and disconnect events in connection manager
Handle connect and disconnect events in connection manager state
machine.

Change-Id: I62cba42ed726c3cc61343109c4e3208eba0d7e9e
CRs-Fixed: 2740300
2020-07-29 23:59:06 -07:00
Abhishek Singh
de26e8e65e qcacmn: Add logs while removing/avoiding connect candidate
Enhance logs in candidate score by adding logs while
removing/avoiding connect candidate.

Change-Id: I36a455592ebfa1150fffaaad1ba87438fd3d390f
CRs-Fixed: 2740951
2020-07-27 00:38:18 -07:00
gaurank kathpalia
441725b6ef qcacmn: Restructure connection manager structures
Move few scoring params to uint8 from uint32 to save memory.
Also move the req and resp related IE to req and resp structures
instead of global structure.

Change-Id: I67f8dd3f381642083fc5f288ebd9055d2919faad
CRs-Fixed: 2737146
2020-07-22 21:35:20 -07:00
Abhishek Singh
09403ed7d0 qcacmn: Move Blacklist filter while scoring the BSS
While BSS are scored apply blacklist logic to remove
blacklist AP or move the avoid AP at the end.

Change-Id: I3071b63732dba6763e2f48d0613b36e86bd780d9
CRs-Fixed: 2725143
2020-07-16 23:46:21 -07:00
gaurank kathpalia
9fa7cd067f qcacmn: Update the Copyright year in bss score files
Update the Copyright year in new bss score file.

Change-Id: Iaafcd74fe7f4b2c1d71e98c2884333d14f5777ff
CRs-Fixed: 2720551
2020-06-29 23:46:59 -07:00
gaurank kathpalia
92354bad4d qcacmn: Update the Copyright year in new connection manager files
Update the Copyright year in new connection manager file.

Change-Id: I599d9fb56ac74d6147774f03683fbef19598d637
CRs-Fixed: 2720551
2020-06-29 23:46:56 -07:00
gaurank kathpalia
9375922ab2 qcacmn: Add basic infra for connection manager
Add basic infra for connection mgr state machine
to handle connect and disconnect requests.

Change-Id: I671f62f66ab511912886c1da84c3a69be0032872
CRs-Fixed: 2707901
2020-06-26 22:48:35 -07:00
gaurank kathpalia
506f49a0ff qcacmn: Move scoring logic to connection manager
Move bss scoring logic to connection manager.

Change-Id: If8484ec2fa8b3e2d153ae4a6caed76f3354b8965
CRs-Fixed: 2707106
2020-06-26 11:08:56 -07:00