feat: wi-fi - expand support and fix issues, add GUI components
This commit is contained in:
@@ -196,6 +196,15 @@ int main() {
|
||||
int n = unhex(line.substr(6), buf);
|
||||
bool ok = IwxConnectSendEthernet(buf, (uint32_t)n);
|
||||
printf("TXETH-OK %d\n", ok ? 1 : 0);
|
||||
} else if (line.rfind("TXSTATUS ", 0) == 0) {
|
||||
// TXSTATUS <acked> <count> -- report N transmit outcomes, the way
|
||||
// IwxTxComplete does off the firmware's TX response. Drives the
|
||||
// link supervision that notices an access point which stopped
|
||||
// acknowledging without ever deauthenticating.
|
||||
unsigned acked, count;
|
||||
sscanf(line.c_str(), "TXSTATUS %u %u", &acked, &count);
|
||||
for (unsigned i = 0; i < count; i++) IwxConnectNoteTx(acked != 0);
|
||||
printf("DONE STATE %d LINK %d\n", IwxConnectState(), IwxLinkUp() ? 1 : 0);
|
||||
} else if (line.rfind("SERVICE", 0) == 0) {
|
||||
IwxConnectService();
|
||||
printf("DONE STATE %d LINK %d\n", IwxConnectState(), IwxLinkUp() ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user