Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find channel db for wifi technology on 19.11.5.0ef29c90_8ed9680b55b5e75cfddc628d0694da13_modified #68

Open
ClaudioBaldo opened this issue Aug 6, 2021 · 1 comment

Comments

@ClaudioBaldo
Copy link

ClaudioBaldo commented Aug 6, 2021

I am using the default wifi app, have initialized the drivers using the script and then assigned passphrase and security protocol to the interface, I can connect to the wifi AP but the dcs is unable to find a valid channel for this which is preventing AirVantage connection to the server.

Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | pa_wifi_client.c pa_wifiClient_Connect() 1067 | WiFi Client connected
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | pa_wifi_client.c FirstLayerWifiClientEventIndHandler() 248 | WiFi event: 0, interface: wlan0, bssid: fc:ec:da:a1:5b:35
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | le_wifiClient.c PaEventIndicationHandler() 176 | WiFi event: 0, interface: wlan0, bssid: fc:ec:da:a1:5b:35
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | pa_wifi_client.c FirstLayerWifiClientEventHandler() 219 | Event: 0
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | le_wifiClient.c PaEventHandler() 199 | Event: 0
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | le_wifiClient.c le_wifiClient_RemoveConnectionEventHandler() 786 | Remove event handler
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/framework T=main | le_wifiClient_server.c CleanupClientData() 163 | Client 0x7f56c268 is closed !!!
Jan 6 10:18:45 fx30s user.info Legato: INFO | supervisor[1221]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process 'wifi@0' (PID: 3115) has exited with exit code 0.
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/framework T=main | le_wifiClient_server.c CleanupClientData() 185 | Found session ref 0x7f56c388; does not match
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/framework T=main | le_wifiAp_server.c CleanupClientData() 163 | Client 0x7f56c2f8 is closed !!!
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | le_wifiClient.c le_wifiClient_GetCurrentConnection() 1177 | AP reference of currently selected connection: 0x211
Jan 6 10:18:45 fx30s user.info Legato: INFO | supervisor[1221]/supervisor T=main | app.c app_StopComplete() 4753 | app 'wifi' has stopped.
Jan 6 10:18:45 fx30s user.info Legato: INFO | supervisor[1221]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application 'wifi' has stopped.
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | le_wifiClient.c le_wifiClient_GetSsid() 1134 | AP ref 0x211
Jan 6 10:18:45 fx30s user.debug Legato: DBUG | wifiService[1407]/daemon T=main | le_wifiClient.c le_wifiClient_GetSsid() 1154 | apPtr->AccessPoint.ssidLength 9
Jan 6 10:18:45 fx30s user.warn Legato: -WRN- | dcsDaemon[1310]/dcsWifi T=main | dcsWifi.c DcsWifiGetSelectedDb() 171 | Found currently selected Wifi connection to get established: TR-OFFICE, reference 0x211
Jan 6 10:18:45 fx30s user.warn Legato: -WRN- | dcsDaemon[1310]/dcsWifi T=main | dcsWifi.c DcsWifiGetSelectedDb() 175 | Failed to find channel db for SSID TR-OFFICE

I have also setup the dataConnectionService and wifiService as follow from shell:
config set wifiService:/wifi/channel/TR-OFFICE/secProtcol 3

config set dataConnectionService:/wifi/SSID TR-OFFICE
config set dataConnectionService:/wifi/secProtocol 3
config set dataConnectionService:/wifi/passphrase "my password"

When I try to manually start the avcService with at command AT+WDSS=1,1
Jan 6 10:23:48 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c UpdateTechnologyStatus() 1040 | Technology retry to connect will happen after 8 sec Jan 6 10:23:48 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcsTech.c le_dcsTech_Stop() 399 | Request to stop channel 1 of technology cellular Jan 6 10:23:48 fx30s user.err Legato: =ERR= | modemDaemon[1349]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_GET_PKT_STATISTICS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=70.[0x46] Jan 6 10:23:48 fx30s user.err Legato: =ERR= | modemDaemon[1349]/le_pa T=main | pa_mdc_qmi.c pa_mdc_StopSession() 3378 | Bad input parameter Jan 6 10:23:48 fx30s user.warn Legato: -WRN- | dcsDaemon[1310]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Stop() 1156 | Failed to stop cellular connection 1; error: -15 Jan 6 10:23:48 fx30s user.warn Legato: -WRN- | dcsDaemon[1310]/dcs T=main | dcsTech.c le_dcsTech_Stop() 422 | Failed to stop channel 1; error: -15 Jan 6 10:23:48 fx30s user.warn Legato: -WRN- | avcDaemon[1290]/avcDaemon T=main | avcClient.c ConnectionStateHandler() 474 | Disconnected from data connection service, current state 0 Jan 6 10:23:56 fx30s user.err Legato: =ERR= | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_GetReference() 216 | Failed to find channel with name TR-OFFICE of technology 1 Jan 6 10:23:56 fx30s user.err Legato: =ERR= | dcsDaemon[1310]/dcsDaemon T=main | dcsTechRank.c dcsTechRank_SelectDataChannel() 234 | Failed to select Wifi SSID TR-OFFICE due to invalid channel reference Jan 6 10:23:56 fx30s user.err Legato: =ERR= | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c TryStartTechSession() 1057 | Failed to pick technology 0 to start a data connection Jan 6 10:23:56 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c UpdateTechnologyStatus() 1040 | Technology retry to connect will happen after 16 sec Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsTechRank.c dcsTechRank_SelectDataChannel() 220 | Selected channel name 1 Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_RemoveEventHandler() 695 | Channel event handler for channel 1 of technology cellular removed Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_AddEventHandler() 635 | Adding channel handler for channel 1 of technology cellular Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_AddEventHandler() 675 | Event handler with reference 0xcf5 and event ID 0xf3d added Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_Start() 421 | Starting channel 1 of technology cellular by app session with reference 0x7f5abe28 Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_Start() 478 | Initiating technology to start channel 1 for app session 0x7f5abe28, request reference 0x30f Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c TryStartTechSession() 1105 | Successfully initiated data channel 1 of technology 1 Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcsTech.c le_dcsTech_Start() 338 | Request to start channel 1 of technology cellular Jan 6 10:24:12 fx30s user.err Legato: =ERR= | dcsDaemon[1310]/dcs T=main | dcsTech.c le_dcsTech_Start() 361 | Failed to start channel 1; error: -21 Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0x3 event Down Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_Stop() 538 | Stopping channel 1 of technology cellular Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcs.c le_dcs_Stop() 563 | Channel 1 requested to be stopped Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c TryStopTechSession() 1157 | Successfully initiated stopping active data connection 1 of technology 1 Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcsDaemon T=main | dcsServer.c UpdateTechnologyStatus() 1040 | Technology retry to connect will happen after 32 sec Jan 6 10:24:12 fx30s user.info Legato: INFO | dcsDaemon[1310]/dcs T=main | dcsTech.c le_dcsTech_Stop() 399 | Request to stop channel 1 of technology cellular Jan 6 10:24:12 fx30s user.err Legato: =ERR= | modemDaemon[1349]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_GET_PKT_STATISTICS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=70.[0x46] Jan 6 10:24:12 fx30s user.err Legato: =ERR= | modemDaemon[1349]/le_pa T=main | pa_mdc_qmi.c pa_mdc_StopSession() 3378 | Bad input parameter Jan 6 10:24:12 fx30s user.warn Legato: -WRN- | dcsDaemon[1310]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Stop() 1156 | Failed to stop cellular connection 1; error: -15 Jan 6 10:24:12 fx30s user.warn Legato: -WRN- | dcsDaemon[1310]/dcs T=main | dcsTech.c le_dcsTech_Stop() 422 | Failed to stop channel 1; error: -15 Jan 6 10:24:12 fx30s user.warn Legato: -WRN- | avcDaemon[1290]/avcDaemon T=main | avcClient.c ConnectionStateHandler() 474 | Disconnected from data connection service, current state

Where this sounds like a bug to me when it says technology 1 but name it cellular while this should be wifi.
I believe these two are the key points:
Jan 6 10:35:06 fx30s user.debug Legato: DBUG | wifiService[1311]/daemon T=main | le_wifiClient.c le_wifiClient_GetCurrentConnection() 1177 | AP reference of currently selected connection: 0x213
Jan 6 10:35:06 fx30s user.debug Legato: DBUG | wifiService[1311]/daemon T=main | le_wifiClient.c le_wifiClient_GetSsid() 1134 | AP ref 0x213
Jan 6 10:35:06 fx30s user.debug Legato: DBUG | wifiService[1311]/daemon T=main | le_wifiClient.c le_wifiClient_GetSsid() 1154 | apPtr->AccessPoint.ssidLength 9
Jan 6 10:35:06 fx30s user.warn Legato: -WRN- | dcsDaemon[1223]/dcsWifi T=main | dcsWifi.c DcsWifiGetSelectedDb() 171 | Found currently selected Wifi connection to get established: TR-OFFICE, reference 0x213
Jan 6 10:35:06 fx30s user.warn Legato: -WRN- | dcsDaemon[1223]/dcsWifi T=main | dcsWifi.c DcsWifiGetSelectedDb() 175 | Failed to find channel db for SSID TR-OFFICE

Once the wifi client is started and connected, the dcs service cannot find the channel in the database, so I assume I haven`t setup this properly?
Or it should be something handled by the wifiClient itself and possibly a bug?

Wifi is working so I don`t this has anything to do with the drivers, but likely with the legato.

@ClaudioBaldo
Copy link
Author

This is how I setup the channel for the wifiService which should be aligned with the legato docs.

root@fx30s:~# config get wifiService:/
/
wifi/
channel/
TR-OFFICE/
secProtocol == 3

So this is a malfunctioning of the le_dcs api?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant