diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 6453184..02c349c 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -1115,7 +1115,6 @@ static int add_mac(struct ubus_context *ctx, struct ubus_object *obj, parse_add_mac_to_file(msg); // here we need to send it via the network! - // and we have to find some adaptive strategie to realize bad driver beahviour send_blob_attr_via_network(msg, "addmac"); return 0; diff --git a/src/utils/utils.c b/src/utils/utils.c index 656a06e..be007dc 100644 --- a/src/utils/utils.c +++ b/src/utils/utils.c @@ -19,6 +19,7 @@ int string_is_greater(uint8_t *str, uint8_t *str_2) { return length_1 > length_2; } +// source: https://elixir.bootlin.com/linux/v4.9/source/lib/hexdump.c#L28 int hex_to_bin(char ch) { if ((ch >= '0') && (ch <= '9')) return ch - '0'; ch = tolower(ch); @@ -26,6 +27,7 @@ int hex_to_bin(char ch) { return -1; } +// based on: hostapd src/utils/common.c int hwaddr_aton(const char *txt, uint8_t *addr) { int i;