This commit is contained in:
PolynomialDivision 2018-03-12 16:28:06 +01:00
parent 9fd9237edc
commit cfbc69e71a
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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;