mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add suports
This commit is contained in:
parent
237437e847
commit
b4dd5a0460
2 changed files with 4 additions and 2 deletions
|
@ -313,7 +313,7 @@ int support_ht(const char *ifname) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t ht_support_bitmask = (1 << 0) | (1 << 2);
|
uint32_t ht_support_bitmask = (1 << 0) | (1 << 2);
|
||||||
int ret = htmodes & ht_support_bitmask;
|
int ret = htmodes & ht_support_bitmask ? 1 : 0;
|
||||||
iwinfo_finish();
|
iwinfo_finish();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -331,7 +331,7 @@ int support_vht(const char *ifname) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t vht_support_bitmask = (1 << 2) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6);
|
uint32_t vht_support_bitmask = (1 << 2) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6);
|
||||||
int ret = htmodes & vht_support_bitmask;
|
int ret = htmodes & vht_support_bitmask ? 1 : 0;
|
||||||
iwinfo_finish();
|
iwinfo_finish();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
|
@ -725,6 +725,8 @@ static int add_subscriber(char *name) {
|
||||||
|
|
||||||
// TODO: here we need to add ht and vht supported!!!
|
// TODO: here we need to add ht and vht supported!!!
|
||||||
// actually we wanted to use an ubus call but for now we can use libiwinfo
|
// actually we wanted to use an ubus call but for now we can use libiwinfo
|
||||||
|
hostapd_entry->ht = (uint8_t) support_ht(name);
|
||||||
|
hostapd_entry->vht = (uint8_t) support_vht(name);
|
||||||
|
|
||||||
|
|
||||||
ret = ubus_register_subscriber(ctx, &hostapd_entry->subscriber);
|
ret = ubus_register_subscriber(ctx, &hostapd_entry->subscriber);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue