@@ -273,7 +273,7 @@ static void wfx_rsi_join_cb(uint16_t status, const uint8_t * buf, const uint16_t
273
273
/*
274
274
* We should enable retry.. (Need config variable for this)
275
275
*/
276
- SILABS_LOG ("%s : failed. retry: %d" , __func__ , wfx_rsi .join_retries );
276
+ SILABS_LOG ("wfx_rsi_join_cb : failed. retry: %d" , wfx_rsi .join_retries );
277
277
wfx_retry_connection (++ wfx_rsi .join_retries );
278
278
}
279
279
else
@@ -282,7 +282,7 @@ static void wfx_rsi_join_cb(uint16_t status, const uint8_t * buf, const uint16_t
282
282
* Join was complete - Do the DHCP
283
283
*/
284
284
memset (& temp_reset , 0 , sizeof (wfx_wifi_scan_ext_t ));
285
- SILABS_LOG ("%s : join completed." , __func__ );
285
+ SILABS_LOG ("wfx_rsi_join_cb : join completed." );
286
286
WfxEvent .eventType = WFX_EVT_STA_CONN ;
287
287
WfxPostEvent (& WfxEvent );
288
288
wfx_rsi .join_retries = 0 ;
@@ -301,7 +301,7 @@ static void wfx_rsi_join_cb(uint16_t status, const uint8_t * buf, const uint16_t
301
301
*********************************************************************/
302
302
static void wfx_rsi_join_fail_cb (uint16_t status , uint8_t * buf , uint32_t len )
303
303
{
304
- SILABS_LOG ("%s : error: failed status: %02x" , __func__ , status );
304
+ SILABS_LOG ("wfx_rsi_join_fail_cb : error: failed status: %02x" , status );
305
305
WfxEvent_t WfxEvent ;
306
306
wfx_rsi .join_retries += 1 ;
307
307
wfx_rsi .dev_state &= ~(WFX_RSI_ST_STA_CONNECTING | WFX_RSI_ST_STA_CONNECTED );
@@ -341,31 +341,31 @@ static int32_t wfx_rsi_init(void)
341
341
uint8_t buf [RSI_RESPONSE_HOLD_BUFF_SIZE ];
342
342
extern void rsi_hal_board_init (void );
343
343
344
- SILABS_LOG ("%s : starting(HEAP_SZ = %d)" , __func__ , SL_HEAP_SIZE );
344
+ SILABS_LOG ("wfx_rsi_init : starting(HEAP_SZ = %d)" , SL_HEAP_SIZE );
345
345
//! Driver initialization
346
346
status = rsi_driver_init (wfx_rsi_drv_buf , WFX_RSI_BUF_SZ );
347
347
if ((status < RSI_DRIVER_STATUS ) || (status > WFX_RSI_BUF_SZ ))
348
348
{
349
- SILABS_LOG ("%s : error: RSI Driver initialization failed with status: %02x" , __func__ , status );
349
+ SILABS_LOG ("wfx_rsi_init : error: RSI Driver initialization failed with status: %02x" , status );
350
350
return status ;
351
351
}
352
352
353
- SILABS_LOG ("%s : rsi_device_init" , __func__ );
353
+ SILABS_LOG ("wfx_rsi_init : rsi_device_init" , __func__ );
354
354
/* ! Redpine module intialisation */
355
355
if ((status = rsi_device_init (LOAD_NWP_FW )) != RSI_SUCCESS )
356
356
{
357
- SILABS_LOG ("%s : error: rsi_device_init failed with status: %02x" , __func__ , status );
357
+ SILABS_LOG ("wfx_rsi_init : error: rsi_device_init failed with status: %02x" , status );
358
358
return status ;
359
359
}
360
- SILABS_LOG ("%s : start wireless drv task" , __func__ );
360
+ SILABS_LOG ("wfx_rsi_init : start wireless drv task" , __func__ );
361
361
/*
362
362
* Create the driver task
363
363
*/
364
364
wfx_rsi .drv_task = xTaskCreateStatic ((TaskFunction_t ) rsi_wireless_driver_task , "rsi_drv" , WFX_RSI_WLAN_TASK_SZ , NULL ,
365
365
WLAN_TASK_PRIORITY , driverRsiTaskStack , & driverRsiTaskBuffer );
366
366
if (NULL == wfx_rsi .drv_task )
367
367
{
368
- SILABS_LOG ("%s : error: rsi_wireless_driver_task failed" , __func__ );
368
+ SILABS_LOG ("wfx_rsi_init : error: rsi_wireless_driver_task failed" , __func__ );
369
369
return RSI_ERROR_INVALID_PARAM ;
370
370
}
371
371
@@ -376,40 +376,40 @@ static int32_t wfx_rsi_init(void)
376
376
if ((status = rsi_wireless_init (OPER_MODE_0 , COEX_MODE_0 )) != RSI_SUCCESS )
377
377
{
378
378
#endif
379
- SILABS_LOG ("%s : error: Initialize WiSeConnect failed with status: %02x" , __func__ , status );
379
+ SILABS_LOG ("wfx_rsi_init : error: Initialize WiSeConnect failed with status: %02x" , status );
380
380
return status ;
381
381
}
382
382
383
- SILABS_LOG ("%s : get FW version.." , __func__ );
383
+ SILABS_LOG ("wfx_rsi_init : get FW version.." , __func__ );
384
384
/*
385
385
* Get the MAC and other info to let the user know about it.
386
386
*/
387
387
if (rsi_wlan_get (RSI_FW_VERSION , buf , sizeof (buf )) != RSI_SUCCESS )
388
388
{
389
- SILABS_LOG ("%s : error: rsi_wlan_get(RSI_FW_VERSION) failed with status: %02x" , __func__ , status );
389
+ SILABS_LOG ("wfx_rsi_init : error: rsi_wlan_get(RSI_FW_VERSION) failed with status: %02x" , status );
390
390
return status ;
391
391
}
392
392
393
393
buf [sizeof (buf ) - 1 ] = 0 ;
394
- SILABS_LOG ("%s : RSI firmware version: %s" , __func__ , buf );
394
+ SILABS_LOG ("wfx_rsi_init : RSI firmware version: %s" , buf );
395
395
//! Send feature frame
396
396
if ((status = rsi_send_feature_frame ()) != RSI_SUCCESS )
397
397
{
398
- SILABS_LOG ("%s : error: rsi_send_feature_frame failed with status: %02x" , __func__ , status );
398
+ SILABS_LOG ("wfx_rsi_init : error: rsi_send_feature_frame failed with status: %02x" , status );
399
399
return status ;
400
400
}
401
401
402
- SILABS_LOG ("%s : sent rsi_send_feature_frame" , __func__ );
402
+ SILABS_LOG ("wfx_rsi_init : sent rsi_send_feature_frame" , __func__ );
403
403
/* initializes wlan radio parameters and WLAN supplicant parameters.
404
404
*/
405
405
(void ) rsi_wlan_radio_init (); /* Required so we can get MAC address */
406
406
if ((status = rsi_wlan_get (RSI_MAC_ADDRESS , & wfx_rsi .sta_mac .octet [0 ], RESP_BUFF_SIZE )) != RSI_SUCCESS )
407
407
{
408
- SILABS_LOG ("%s : error: rsi_wlan_get failed with status: %02x" , __func__ , status );
408
+ SILABS_LOG ("wfx_rsi_init : error: rsi_wlan_get failed with status: %02x" , status );
409
409
return status ;
410
410
}
411
411
412
- SILABS_LOG ("%s : WLAN: MAC %02x:%02x:%02x %02x:%02x:%02x" , __func__ , wfx_rsi .sta_mac .octet [0 ], wfx_rsi .sta_mac .octet [1 ],
412
+ SILABS_LOG ("wfx_rsi_init : WLAN: MAC %02x:%02x:%02x %02x:%02x:%02x" , wfx_rsi .sta_mac .octet [0 ], wfx_rsi .sta_mac .octet [1 ],
413
413
wfx_rsi .sta_mac .octet [2 ], wfx_rsi .sta_mac .octet [3 ], wfx_rsi .sta_mac .octet [4 ], wfx_rsi .sta_mac .octet [5 ]);
414
414
415
415
// Create the message queue
@@ -432,12 +432,12 @@ static int32_t wfx_rsi_init(void)
432
432
*/
433
433
if ((status = rsi_wlan_register_callbacks (RSI_JOIN_FAIL_CB , wfx_rsi_join_fail_cb )) != RSI_SUCCESS )
434
434
{
435
- SILABS_LOG ("%s : RSI callback register join failed with status: %02x" , __func__ , status );
435
+ SILABS_LOG ("wfx_rsi_init : RSI callback register join failed with status: %02x" , status );
436
436
return status ;
437
437
}
438
438
if ((status = rsi_wlan_register_callbacks (RSI_WLAN_DATA_RECEIVE_NOTIFY_CB , wfx_rsi_wlan_pkt_cb )) != RSI_SUCCESS )
439
439
{
440
- SILABS_LOG ("%s : RSI callback register data-notify failed with status: %02x" , __func__ , status );
440
+ SILABS_LOG ("wfx_rsi_init : RSI callback register data-notify failed with status: %02x" , status );
441
441
return status ;
442
442
}
443
443
@@ -446,7 +446,7 @@ static int32_t wfx_rsi_init(void)
446
446
#endif
447
447
448
448
wfx_rsi .dev_state |= WFX_RSI_ST_DEV_READY ;
449
- SILABS_LOG ("%s : RSI: OK" , __func__ );
449
+ SILABS_LOG ("wfx_rsi_init : RSI: OK" , __func__ );
450
450
return RSI_SUCCESS ;
451
451
}
452
452
@@ -475,7 +475,7 @@ static void wfx_rsi_save_ap_info() // translation
475
475
#else /* !WIFI_ENABLE_SECURITY_WPA3_TRANSITION */
476
476
wfx_rsi .sec .security = WFX_SEC_WPA2 ;
477
477
#endif /* WIFI_ENABLE_SECURITY_WPA3_TRANSITION */
478
- SILABS_LOG ("%s : warn: failed with status: %02x" , __func__ , status );
478
+ SILABS_LOG ("wfx_rsi_save_ap_info : warn: failed with status: %02x" , status );
479
479
return ;
480
480
}
481
481
wfx_rsi .sec .security = WFX_SEC_UNSPECIFIED ;
@@ -511,7 +511,7 @@ static void wfx_rsi_save_ap_info() // translation
511
511
break ;
512
512
}
513
513
514
- SILABS_LOG ("%s : WLAN: connecting to %s, sec=%d, status=%02x" , __func__ , & wfx_rsi .sec .ssid [0 ], wfx_rsi .sec .security , status );
514
+ SILABS_LOG ("wfx_rsi_save_ap_info : WLAN: connecting to %s, sec=%d, status=%02x" , & wfx_rsi .sec .ssid [0 ], wfx_rsi .sec .security , status );
515
515
}
516
516
517
517
/********************************************************************************************
@@ -528,7 +528,7 @@ static void wfx_rsi_do_join(void)
528
528
529
529
if (wfx_rsi .dev_state & (WFX_RSI_ST_STA_CONNECTING | WFX_RSI_ST_STA_CONNECTED ))
530
530
{
531
- SILABS_LOG ("%s : not joining - already in progress" , __func__ );
531
+ SILABS_LOG ("wfx_rsi_do_join : not joining - already in progress" );
532
532
}
533
533
else
534
534
{
@@ -551,11 +551,11 @@ static void wfx_rsi_do_join(void)
551
551
connect_security_mode = RSI_OPEN ;
552
552
break ;
553
553
default :
554
- SILABS_LOG ("%s : error: unknown security type." , __func__ );
554
+ SILABS_LOG ("wfx_rsi_do_join : error: unknown security type." );
555
555
return ;
556
556
}
557
557
558
- SILABS_LOG ("%s : WLAN: connecting to %s, sec=%d" , __func__ , & wfx_rsi .sec .ssid [0 ], wfx_rsi .sec .security );
558
+ SILABS_LOG ("wfx_rsi_do_join : WLAN: connecting to %s, sec=%d" , & wfx_rsi .sec .ssid [0 ], wfx_rsi .sec .security );
559
559
560
560
/*
561
561
* Join the network
@@ -567,7 +567,7 @@ static void wfx_rsi_do_join(void)
567
567
568
568
if ((status = rsi_wlan_register_callbacks (RSI_JOIN_FAIL_CB , wfx_rsi_join_fail_cb )) != RSI_SUCCESS )
569
569
{
570
- SILABS_LOG ("%s : RSI callback register join failed with status: %02x" , __func__ , status );
570
+ SILABS_LOG ("wfx_rsi_do_join : RSI callback register join failed with status: %02x" , status );
571
571
}
572
572
573
573
/* Try to connect Wifi with given Credentials
@@ -577,12 +577,12 @@ static void wfx_rsi_do_join(void)
577
577
wfx_rsi_join_cb )) != RSI_SUCCESS )
578
578
{
579
579
wfx_rsi .dev_state &= ~WFX_RSI_ST_STA_CONNECTING ;
580
- SILABS_LOG ("%s : rsi_wlan_connect_async failed with status: %02x on try %d" , __func__ , status , wfx_rsi .join_retries );
580
+ SILABS_LOG ("wfx_rsi_do_join : rsi_wlan_connect_async failed with status: %02x on try %d" , status , wfx_rsi .join_retries );
581
581
wfx_retry_connection (++ wfx_rsi .join_retries );
582
582
}
583
583
else
584
584
{
585
- SILABS_LOG ("%s : starting JOIN to %s after %d tries\n" , __func__ , (char * ) & wfx_rsi .sec .ssid [0 ], wfx_rsi .join_retries );
585
+ SILABS_LOG ("wfx_rsi_do_join : starting JOIN to %s after %d tries\n" , (char * ) & wfx_rsi .sec .ssid [0 ], wfx_rsi .join_retries );
586
586
}
587
587
}
588
588
}
@@ -677,7 +677,7 @@ void ProcessEvent(WfxEvent_t inEvent)
677
677
switch (inEvent .eventType )
678
678
{
679
679
case WFX_EVT_STA_CONN :
680
- SILABS_LOG ("%s: starting LwIP STA" , __func__ );
680
+ SILABS_LOG ("Starting LwIP STA" );
681
681
wfx_rsi .dev_state |= WFX_RSI_ST_STA_CONNECTED ;
682
682
ResetDHCPNotificationFlags ();
683
683
wfx_lwip_set_sta_link_up ();
@@ -691,7 +691,7 @@ void ProcessEvent(WfxEvent_t inEvent)
691
691
// TODO: This event is not being posted anywhere, seems to be a dead code or we are missing something
692
692
wfx_rsi .dev_state &=
693
693
~(WFX_RSI_ST_STA_READY | WFX_RSI_ST_STA_CONNECTING | WFX_RSI_ST_STA_CONNECTED | WFX_RSI_ST_STA_DHCP_DONE );
694
- SILABS_LOG ("%s: disconnect notify" , __func__ );
694
+ SILABS_LOG ("Disconnect notify" );
695
695
/* TODO: Implement disconnect notify */
696
696
ResetDHCPNotificationFlags ();
697
697
wfx_lwip_set_sta_link_down (); // Internally dhcpclient_poll(netif) ->
@@ -789,7 +789,7 @@ void wfx_rsi_task(void * arg)
789
789
uint32_t rsi_status = wfx_rsi_init ();
790
790
if (rsi_status != RSI_SUCCESS )
791
791
{
792
- SILABS_LOG ("%s : error: wfx_rsi_init with status: %02x" , __func__ , rsi_status );
792
+ SILABS_LOG ("wfx_rsi_task : error: wfx_rsi_init with status: %02x" , rsi_status );
793
793
return ;
794
794
}
795
795
WfxEvent_t wfxEvent ;
@@ -829,7 +829,7 @@ void wfx_dhcp_got_ipv4(uint32_t ip)
829
829
wfx_rsi .ip4_addr [1 ] = (ip >> 8 ) & HEX_VALUE_FF ;
830
830
wfx_rsi .ip4_addr [2 ] = (ip >> 16 ) & HEX_VALUE_FF ;
831
831
wfx_rsi .ip4_addr [3 ] = (ip >> 24 ) & HEX_VALUE_FF ;
832
- SILABS_LOG ("%s : DHCP OK: IP=%d.%d.%d.%d" , __func__ , wfx_rsi .ip4_addr [0 ], wfx_rsi .ip4_addr [1 ], wfx_rsi .ip4_addr [2 ],
832
+ SILABS_LOG ("wfx_dhcp_got_ipv4 : DHCP OK: IP=%d.%d.%d.%d" , wfx_rsi .ip4_addr [0 ], wfx_rsi .ip4_addr [1 ], wfx_rsi .ip4_addr [2 ],
833
833
wfx_rsi .ip4_addr [3 ]);
834
834
/* Notify the Connectivity Manager - via the app */
835
835
wfx_rsi .dev_state |= WFX_RSI_ST_STA_DHCP_DONE ;
0 commit comments