#include <unistd.h>
usleep(100000); // 延遲 100,000 微秒 = 100 毫秒
●Delay
#include <time.h>
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 100 * 1000000L; // 100 毫秒
nanosleep(&ts, NULL);
| STA Channel Width | Secondary Channel Offset | 說明 |
|---|---|---|
| 0 | 0 | 使用 20 MHz |
| 1 | 1(Above) | 使用 40 MHz,副頻道在上面 |
| 1 | 3(Below) | 使用 40 MHz,副頻道在下面 |
1. static struct nl_sock * nl_create_handle(struct nl_cb *cb, const char *dbg)
主要是看beacon的RSN information tag
根據chatgpt解說
Identifying WPA2 vs. WPA3