mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add survey data
This commit is contained in:
parent
b92f984d5b
commit
058690f10f
1 changed files with 12 additions and 0 deletions
|
@ -274,4 +274,16 @@ int get_ssid(const char *ifname, char* ssid) {
|
|||
strcpy(ssid, buf);
|
||||
printf("SSID: %s\n", ssid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int get_channel_utilization(const char *ifname) {
|
||||
const struct iwinfo_ops *iw;
|
||||
struct iwinfo_survey_entry survey_entry;
|
||||
|
||||
iw = iwinfo_backend(ifname);
|
||||
if (iw->survey(ifname, &survey_entry))
|
||||
{
|
||||
printf("GOT SURVEY INFO!\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue