mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
module: network: hardcode type to "wlan" when we see NL80211_CMD_NEW_INTERFACE
Wlan interfaces apparently report themselves as ARPHRD_ETHER in their ifinfomsg struct (despite there being a ARPHRD_IEEE80211 type...). "Fix" by hardcoding the type to "wlan" when we receive a NL80211_CMD_NEW_INTERFACE message.
This commit is contained in:
parent
699c563051
commit
54902f46ab
1 changed files with 2 additions and 0 deletions
|
@ -1370,6 +1370,8 @@ parse_genl_reply(struct module *mod, const struct nlmsghdr *hdr, size_t len)
|
|||
continue;
|
||||
|
||||
LOG_DBG("%s: got interface information", iface->name);
|
||||
free(iface->type);
|
||||
iface->type = strdup("wlan");
|
||||
foreach_nlattr(mod, iface, genl, msg_size, &handle_nl80211_new_interface, NULL);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue