WiFi Connection establishment using WiFi Dongle

Hello Everyone,

I have connected USB RTL8188 Wi Fi Dongle
and added code to establish Wi Fi connection by using Wi Fi service : le_wifiClient api
le_wifiClient_GetFirstAccessPoint()
le_wifiClient_GetNextAccessPoint()
le_wifiClient_Create()
le_wifiClient_Connect() etc

It is giving me error as below:

Jun  6 09:14:24 | wifiService[532]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Connect() 759 | SSID length 7 SSID: "Connect"
Jun  6 09:14:24 | wifiService[532]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Connect() 772 | SwitchCase: LE_WIFICLIENT_SECURITY_NONE
Jun  6 09:14:24 | wifiService[532]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Connect() 774 | Step 2: SH script
**Jun  6 09:14:24 |  INFO | wifiService[532] | WIFICLIENT_CONNECT_SECURITY_NONE mode**
Jun  6 09:14:24 |  INFO | wifiService[532] | wpa_supplicant v2.1-devel random: Trying to read entropy from /dev/random Successfully initialized wpa_supplicant Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_i
Jun  6 09:14:24 |  INFO | wifiService[532] | _supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' update_config=1 ctrl_interface='/var/run/wpa_supplicant' eapol_version=1 ap_scan=1 fast_reauth=1 d
Jun  6 09:14:24 |  INFO | wifiService[532] |  model_number='wl18xx' serial_number='12345' driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1' p2p_go_max_inactivity=60 p2p_go_ht40=1 disassoc_low_ack=1 concurrent_sched_scan=1 p2p_
**Jun  6 09:14:24 |  INFO | wifiService[532] | button keypad' Could not read interface wlan0 flags: No such device nl80211: Driver does not support authentication/association or connect commands nl80211: Remove monitor interface: refcount=0 netlin**
**Jun  6 09:14:24 |  INFO | wifiService[532] | erface wlan0 flags: No such device nl80211: Set mode ifindex 0 iftype 2 (STATION) nl80211: Failed to set interface 0 to mode 2: -19 (No such device) wlan0: Failed to initialize driver interface Failed**
**Jun  6 09:14:24 |  INFO | wifiService[532] | lan0: P2P: Station mode scan operation not pending anymore (sta_scan_pending=0 p2p_cb_on_scan_complete=0) wlan0: Cancelling authentication timeout wlan0: cancel_sched_scan called when no sched scan**
**Jun  6 09:14:24 | wifiService[532]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Connect() 790 | WiFi Client Command /legato/systems/current/apps/wifiService/read-only/pa_wifi.sh wlan0 WIFICLIENT_CONNECT_SECURITY_NONE "Connect" Faile**
Jun  6 09:14:24 | wifiService[532]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Connect() 1186 | Sending response to client session 0x27d3c : 4 bytes sent
Jun  6 09:14:24 | wifisetupdemo[5247]/WiFiSetupDemoComponent T=main | WiFiSetupDemoComponent.c wifiConn() 74 |  not Connecting to AP...

Kindly give me solution for above errors

Hi ,

I am trying to connect to wifi using commands as follow:
$wifi client start
$wifi client scan
but it gave me error
> root@swi-mdm9x15:~# wifi client start
> successfully called start.
> root@swi-mdm9x15:~# wifi client scan
> starting scan.
> DEBUG: le_wifiClient_GetFirstAccessPoint ERROR

The list of WiFi available is not getting displayed .
How to recover this error, can any one please tell

Hi rups,
Kindly can you please stop any of the other Wi-Fi apps are running (wifiApTest, wifiClientTest,
wifiWebAp), and then can you please check it.

     You can also refer the document http://mangoh.io/wp-content/uploads/2017/05/4119378_mangOH-Green-Tutorial-Wi-Fi_r1.pdf 

Best Regards,
Bharath

1 Like

thank you. It get solved.