@@ -381,11 +381,12 @@ void wpa_supplicant_event_wrapper(void *ctx,
381381 union wpa_event_data * data_tmp = msg .data ;
382382 char * bssid = os_zalloc (ETH_ALEN );
383383 char * ssid = os_zalloc (data -> external_auth .ssid_len );
384+
384385 if (!bssid || !ssid ) {
385386 wpa_printf (MSG_ERROR ,
386- "%s:%d event %u Failed to alloc ssid/bssid \n" ,
387- __func__ , __LINE__ , event );
388- os_free (msg .data );
387+ "%s:%d event %u Failed to alloc ssid/bssid \n" ,
388+ __func__ , __LINE__ , event );
389+ os_free (msg .data );
389390 return ;
390391 }
391392 os_memcpy (bssid , data -> external_auth .bssid , ETH_ALEN );
@@ -519,6 +520,7 @@ void wpa_drv_zep_event_proc_scan_res(struct zep_drv_if_ctx *if_ctx,
519520 }
520521
521522 struct wpa_scan_res * sr = os_zalloc (scan_res_len );
523+
522524 if (!sr ) {
523525 wpa_printf (MSG_ERROR , "%s: Failed to alloc scan results(%d bytes)" , __func__ , scan_res_len );
524526 if_ctx -> scan_res2 -> res = tmp ;
@@ -2056,7 +2058,7 @@ static int _wpa_drv_zep_set_key(void *priv,
20562058}
20572059
20582060
2059- static int wpa_drv_zep_set_key (void * priv ,
2061+ static int wpa_drv_zep_set_key (void * priv ,
20602062 struct wpa_driver_set_key_params * params )
20612063{
20622064 return _wpa_drv_zep_set_key (priv ,
@@ -2497,14 +2499,14 @@ static int register_mgmt_frames_ap(struct zep_drv_if_ctx *if_ctx)
24972499 }
24982500 }
24992501#ifdef CONFIG_P2P
2500- /* P2P Public Action */
2501- if (wpa_drv_register_action_frame (if_ctx , (u8 * ) "\x04\x09\x50\x6f\x9a\x09" , 6 ) < 0 ) {
2502- ret = -1 ;
2503- }
2504- /* P2P Action */
2505- if (wpa_drv_register_action_frame (if_ctx , (u8 * ) "\x7f\x50\x6f\x9a\x09" , 5 ) < 0 ) {
2506- ret = -1 ;
2507- }
2502+ /* P2P Public Action */
2503+ if (wpa_drv_register_action_frame (if_ctx , (u8 * ) "\x04\x09\x50\x6f\x9a\x09" , 6 ) < 0 ) {
2504+ ret = -1 ;
2505+ }
2506+ /* P2P Action */
2507+ if (wpa_drv_register_action_frame (if_ctx , (u8 * ) "\x7f\x50\x6f\x9a\x09" , 5 ) < 0 ) {
2508+ ret = -1 ;
2509+ }
25082510#endif /* CONFIG_P2P */
25092511
25102512out :
@@ -2551,8 +2553,7 @@ static int wpa_drv_zep_set_ap(void *priv,
25512553 if (params -> proberesp && params -> proberesp_len ) {
25522554 wpa_hexdump (MSG_EXCESSIVE , "proberesp (offload)" , params -> proberesp , params -> proberesp_len );
25532555 }
2554- switch (params -> hide_ssid )
2555- {
2556+ switch (params -> hide_ssid ) {
25562557 case NO_SSID_HIDING :
25572558 wpa_printf (MSG_EXCESSIVE , "hidden SSID not in use" );
25582559 break ;
@@ -2892,7 +2893,7 @@ int wpa_drv_zep_sta_remove(void *priv, const u8 *addr)
28922893}
28932894
28942895int wpa_drv_hapd_send_eapol (void * priv , const u8 * addr , const u8 * data , size_t data_len ,
2895- int encrypt , const u8 * own_addr , u32 flags , int link_id )
2896+ int encrypt , const u8 * own_addr , u32 flags , int link_id )
28962897{
28972898#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
28982899 struct zep_drv_if_ctx * if_ctx = priv ;
@@ -3091,7 +3092,7 @@ int wpa_drv_zep_probe_req_report(void *priv, int report)
30913092 }
30923093
30933094 if_ctx -> probe_req_listen = true;
3094- if (if_ctx -> probe_req_set ) {
3095+ if (if_ctx -> probe_req_set ) {
30953096 wpa_printf (MSG_DEBUG , "%s: Probe request already registered" , __func__ );
30963097 return 0 ;
30973098 }
0 commit comments