mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Fix client dump function
This commit is contained in:
parent
8531beee52
commit
c696b8c16e
3 changed files with 4 additions and 2 deletions
|
@ -34,7 +34,7 @@ typedef struct {
|
|||
typedef struct client_s {
|
||||
uint8_t bssid_addr[ETH_ALEN];
|
||||
uint8_t client_addr[ETH_ALEN];
|
||||
uint8_t freq;
|
||||
uint32_t freq;
|
||||
uint8_t auth;
|
||||
uint8_t assoc;
|
||||
uint8_t authorized;
|
||||
|
|
|
@ -602,7 +602,7 @@ void print_client_entry(client entry) {
|
|||
sprintf(mac_buf_ap, "%x:%x:%x:%x:%x:%x", MAC2STR(entry.bssid_addr));
|
||||
sprintf(mac_buf_client, "%x:%x:%x:%x:%x:%x", MAC2STR(entry.client_addr));
|
||||
|
||||
printf("bssid_addr: %s, client_addr: %s, freq: ""%d\n",
|
||||
printf("bssid_addr: %s, client_addr: %s, freq: %d\n",
|
||||
mac_buf_ap, mac_buf_client, entry.freq);
|
||||
}
|
||||
|
||||
|
|
|
@ -246,9 +246,11 @@ dump_client(struct blob_attr **tb, uint8_t client_addr[], const char* bssid_addr
|
|||
|
||||
sprintf(mac_buf_ap, "%x:%x:%x:%x:%x:%x", MAC2STR(client_entry.bssid_addr));
|
||||
sprintf(mac_buf_client, "%x:%x:%x:%x:%x:%x", MAC2STR(client_entry.client_addr));
|
||||
client_entry.freq = freq;
|
||||
|
||||
printf("Client Address: %s\n", mac_buf_client);
|
||||
printf("AP Address: %s\n", mac_buf_ap);
|
||||
printf("Freq: %d\n", freq);
|
||||
|
||||
//hwaddr_aton(client_addr, client_entry.client_addr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue