diff options
| author | Jo-Philipp Wich | 2018-07-23 14:37:28 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2018-07-23 15:08:44 +0000 |
| commit | 49c0a4b1a2ad6f7dbb869d22b26c8d000d2ebe64 (patch) | |
| tree | f799c8d636639dca513f470d57890f5e8f30322e | |
| parent | 305f6955d6cc22ca88dae513638065134eb45b86 (diff) | |
| download | iwinfo-49c0a4b1a2ad6f7dbb869d22b26c8d000d2ebe64.tar.gz | |
nl80211: handle Mesh ID IE
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
| -rw-r--r-- | iwinfo_nl80211.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 49a1831..d135d30 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2074,9 +2074,12 @@ static void nl80211_get_scanlist_ie(struct nlattr **bss, switch (ie[0]) { case 0: /* SSID */ - len = min(ie[1], IWINFO_ESSID_MAX_SIZE); - memcpy(e->ssid, ie + 2, len); - e->ssid[len] = 0; + case 114: /* Mesh ID */ + if (e->ssid[0] == 0) { + len = min(ie[1], IWINFO_ESSID_MAX_SIZE); + memcpy(e->ssid, ie + 2, len); + e->ssid[len] = 0; + } break; case 48: /* RSN */ |