@@ -48,7 +48,7 @@ int wifi_mgmr_profile_add(wifi_mgmr_t *mgmr, wifi_mgmr_profile_msg_t *profile_ms
48
48
for (i = 0 ; i < sizeof (mgmr -> profiles )/sizeof (mgmr -> profiles [0 ]); i ++ ) {
49
49
if (0 == mgmr -> profiles [i ].isUsed ) {
50
50
profile = & (mgmr -> profiles [i ]);
51
-
51
+
52
52
mgmr -> profile_active_index = i ;
53
53
os_printf ("[WF][PF] Using free profile, idx is @%d\r\n" , i );
54
54
break ;
@@ -65,10 +65,10 @@ int wifi_mgmr_profile_add(wifi_mgmr_t *mgmr, wifi_mgmr_profile_msg_t *profile_ms
65
65
profile -> psk_len = profile_msg -> psk_len ;
66
66
profile -> pmk_len = profile_msg -> pmk_len ;
67
67
profile -> priority = 255 ;
68
- memcpy (profile -> ssid , profile_msg -> ssid , sizeof (profile -> ssid ));
69
- memcpy (profile -> psk , profile_msg -> psk , sizeof (profile -> psk ));
70
- memcpy (profile -> pmk , profile_msg -> pmk , sizeof (profile -> pmk ));
71
- memcpy (profile -> mac , profile_msg -> mac , sizeof (profile -> mac ));
68
+ memcpy (profile -> ssid , profile_msg -> ssid , sizeof (profile_msg -> ssid ));
69
+ memcpy (profile -> psk , profile_msg -> psk , sizeof (profile_msg -> psk ));
70
+ memcpy (profile -> pmk , profile_msg -> pmk , sizeof (profile_msg -> pmk ));
71
+ memcpy (profile -> mac , profile_msg -> mac , sizeof (profile_msg -> mac ));
72
72
profile -> dhcp_use = profile_msg -> dhcp_use ;
73
73
74
74
return 0 ;
@@ -122,10 +122,10 @@ int wifi_mgmr_profile_get(wifi_mgmr_t *mgmr, wifi_mgmr_profile_msg_t *profile_ms
122
122
profile_msg -> psk_len = profile -> psk_len ;
123
123
profile_msg -> pmk_len = profile -> pmk_len ;
124
124
profile_msg -> dhcp_use = profile -> dhcp_use ;
125
- memcpy (profile_msg -> ssid , profile -> ssid , sizeof (profile -> ssid ));
126
- memcpy (profile_msg -> psk , profile -> psk , sizeof (profile -> psk ));
127
- memcpy (profile_msg -> pmk , profile -> pmk , sizeof (profile -> pmk ));
128
- memcpy (profile_msg -> mac , profile -> mac , sizeof (profile -> mac ));
125
+ memcpy (profile_msg -> ssid , profile -> ssid , sizeof (profile_msg -> ssid ));
126
+ memcpy (profile_msg -> psk , profile -> psk , sizeof (profile_msg -> psk ));
127
+ memcpy (profile_msg -> pmk , profile -> pmk , sizeof (profile_msg -> pmk ));
128
+ memcpy (profile_msg -> mac , profile -> mac , sizeof (profile_msg -> mac ));
129
129
130
130
return 0 ;
131
131
}
@@ -149,7 +149,7 @@ int wifi_mgmr_profile_autoreconnect_is_enabled(wifi_mgmr_t *mgmr, int index)
149
149
{
150
150
#if 0
151
151
wifi_mgmr_profile_t * profile ;
152
-
152
+
153
153
profile = __lookup_profile (mgmr , index );
154
154
if (NULL == profile ) {
155
155
return -1 ;
0 commit comments