@@ -178,13 +178,15 @@ static void handle_wifi_disconnect_result(struct net_mgmt_event_callback *cb)
178178
179179bool status_requested = false;
180180
181+ /* DaR TODO Unused
181182static void handle_wifi_status_result(struct net_mgmt_event_callback *cb)
182183{
183184 if (!status_requested) {
184185 return;
185186 } else {
186187 status_requested = false;
187188 }
189+
188190 const struct wifi_status_result *entry =
189191 (const struct wifi_status_result *)cb->info;
190192
@@ -195,7 +197,7 @@ static void handle_wifi_status_result(struct net_mgmt_event_callback *cb)
195197 "\n%-4s | %-12s | %-32s %-5s | %-4s | %-4s | %-5s | %-15s | %s\n",
196198 "Mode", "State", "SSID", "(len)", "Chan", "RSSI", "Sec", "IPv4", "IPv6");
197199 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];
199201 print(context.shell, SHELL_NORMAL, "%-4s | %-12s | %-32s %-5u | %-4u | %-4d | %-5s | %-15s | %s\n",
200202 (entry->ap_mode ? " AP" : " ST"),
201203 (entry->connected ? "Connected" : "Disconnected"),
@@ -207,8 +209,8 @@ static void handle_wifi_status_result(struct net_mgmt_event_callback *cb)
207209 sizeof(ip4_string_buf)) : ""),
208210 ((has_ip6) ?
209211 net_addr_ntop(AF_INET6, &entry->ip6, ip6_string_buf,
210- sizeof (ip6_string_buf )) : "" ));
211- }
212+ sizeof(ip6_string_buf)) : ""));
213+ } */
212214
213215static void wifi_mgmt_event_handler (struct net_mgmt_event_callback * cb ,
214216 uint32_t mgmt_event , struct net_if * iface )
@@ -226,9 +228,10 @@ static void wifi_mgmt_event_handler(struct net_mgmt_event_callback *cb,
226228 case NET_EVENT_WIFI_DISCONNECT_RESULT :
227229 handle_wifi_disconnect_result (cb );
228230 break ;
231+ /* DaR TODO
229232 case NET_EVENT_WIFI_STATUS_RESULT:
230233 handle_wifi_status_result(cb);
231- break ;
234+ break; */
232235 default :
233236 break ;
234237 }
@@ -447,12 +450,12 @@ int cmd_wifi_status(const struct shell *shell, size_t argc, char *argv[])
447450#endif
448451
449452 context .shell = shell ;
450-
453+ /* DaR TODO Remove Now what?
451454 if (net_mgmt(NET_REQUEST_WIFI_STATUS, iface, NULL, 0)) {
452455 shell_fprintf(shell, SHELL_WARNING, "Status request failed\n");
453456
454457 return -ENOEXEC;
455- }
458+ } */
456459 return 0 ;
457460}
458461
0 commit comments