@@ -178,13 +178,15 @@ static void handle_wifi_disconnect_result(struct net_mgmt_event_callback *cb)
178
178
179
179
bool status_requested = false;
180
180
181
+ /* DaR TODO Unused
181
182
static void handle_wifi_status_result(struct net_mgmt_event_callback *cb)
182
183
{
183
184
if (!status_requested) {
184
185
return;
185
186
} else {
186
187
status_requested = false;
187
188
}
189
+
188
190
const struct wifi_status_result *entry =
189
191
(const struct wifi_status_result *)cb->info;
190
192
@@ -195,7 +197,7 @@ static void handle_wifi_status_result(struct net_mgmt_event_callback *cb)
195
197
"\n%-4s | %-12s | %-32s %-5s | %-4s | %-4s | %-5s | %-15s | %s\n",
196
198
"Mode", "State", "SSID", "(len)", "Chan", "RSSI", "Sec", "IPv4", "IPv6");
197
199
bool has_ip6 = entry->ip6.s6_addr32[0] || entry->ip6.s6_addr32[1]
198
- || entry -> ip6 .s6_addr32 [2 ] || entry -> ip6 .s6_addr32 [3 ];
200
+ || entry->ip6.s6_addr32[2] || entry->ip6.s6_addr32[3];
199
201
print(context.shell, SHELL_NORMAL, "%-4s | %-12s | %-32s %-5u | %-4u | %-4d | %-5s | %-15s | %s\n",
200
202
(entry->ap_mode ? " AP" : " ST"),
201
203
(entry->connected ? "Connected" : "Disconnected"),
@@ -207,8 +209,8 @@ static void handle_wifi_status_result(struct net_mgmt_event_callback *cb)
207
209
sizeof(ip4_string_buf)) : ""),
208
210
((has_ip6) ?
209
211
net_addr_ntop(AF_INET6, &entry->ip6, ip6_string_buf,
210
- sizeof (ip6_string_buf )) : "" ));
211
- }
212
+ sizeof(ip6_string_buf)) : ""));
213
+ } */
212
214
213
215
static void wifi_mgmt_event_handler (struct net_mgmt_event_callback * cb ,
214
216
uint32_t mgmt_event , struct net_if * iface )
@@ -226,9 +228,10 @@ static void wifi_mgmt_event_handler(struct net_mgmt_event_callback *cb,
226
228
case NET_EVENT_WIFI_DISCONNECT_RESULT :
227
229
handle_wifi_disconnect_result (cb );
228
230
break ;
231
+ /* DaR TODO
229
232
case NET_EVENT_WIFI_STATUS_RESULT:
230
233
handle_wifi_status_result(cb);
231
- break ;
234
+ break; */
232
235
default :
233
236
break ;
234
237
}
@@ -447,12 +450,12 @@ int cmd_wifi_status(const struct shell *shell, size_t argc, char *argv[])
447
450
#endif
448
451
449
452
context .shell = shell ;
450
-
453
+ /* DaR TODO Remove Now what?
451
454
if (net_mgmt(NET_REQUEST_WIFI_STATUS, iface, NULL, 0)) {
452
455
shell_fprintf(shell, SHELL_WARNING, "Status request failed\n");
453
456
454
457
return -ENOEXEC;
455
- }
458
+ } */
456
459
return 0 ;
457
460
}
458
461
0 commit comments