mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Removed some local debugging code
This commit is contained in:
parent
3b30d1ba3e
commit
00020830b8
3 changed files with 3 additions and 8 deletions
|
@ -218,7 +218,6 @@ int add_tcp_conncection(char *ipv4, int port) {
|
||||||
uloop_fd_add(&tcp_entry->fd, ULOOP_WRITE | ULOOP_EDGE_TRIGGER);
|
uloop_fd_add(&tcp_entry->fd, ULOOP_WRITE | ULOOP_EDGE_TRIGGER);
|
||||||
|
|
||||||
printf("New TCP connection to %s:%d\n", ipv4, port);
|
printf("New TCP connection to %s:%d\n", ipv4, port);
|
||||||
fprintf(stderr, "New TCP connection to %s:%d\n", ipv4, port);
|
|
||||||
list_add(&tcp_entry->list, &tcp_sock_list);
|
list_add(&tcp_entry->list, &tcp_sock_list);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -62,7 +62,7 @@ void send_beacon_reports(uint8_t bssid[], int id) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Go through clients
|
// Go threw clients
|
||||||
int j;
|
int j;
|
||||||
for (j = i; j <= client_entry_last; j++) {
|
for (j = i; j <= client_entry_last; j++) {
|
||||||
if (!mac_is_equal(client_array[j].bssid_addr, bssid)) {
|
if (!mac_is_equal(client_array[j].bssid_addr, bssid)) {
|
||||||
|
@ -283,7 +283,7 @@ void kick_clients(uint8_t bssid[], uint32_t id) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Go through clients
|
// Go threw clients
|
||||||
int j;
|
int j;
|
||||||
for (j = i; j <= client_entry_last; j++) {
|
for (j = i; j <= client_entry_last; j++) {
|
||||||
if (!mac_is_equal(client_array[j].bssid_addr, bssid)) {
|
if (!mac_is_equal(client_array[j].bssid_addr, bssid)) {
|
||||||
|
|
|
@ -116,17 +116,13 @@ struct network_config_s uci_get_dawn_network() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *uci_get_dawn_hostapd_dir() {
|
const char *uci_get_dawn_hostapd_dir() {
|
||||||
const char *ret = NULL;
|
|
||||||
|
|
||||||
struct uci_element *e;
|
struct uci_element *e;
|
||||||
uci_foreach_element(&uci_pkg->sections, e)
|
uci_foreach_element(&uci_pkg->sections, e)
|
||||||
{
|
{
|
||||||
struct uci_section *s = uci_to_section(e);
|
struct uci_section *s = uci_to_section(e);
|
||||||
|
|
||||||
if (strcmp(s->type, "hostapd") == 0) {
|
if (strcmp(s->type, "hostapd") == 0) {
|
||||||
ret = uci_lookup_option_string(uci_ctx, s, "hostapd_dir");
|
return uci_lookup_option_string(uci_ctx, s, "hostapd_dir");
|
||||||
fprintf(stderr, "Found hostapd_dir = %s\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue