nl80211: Fix a typo in set_sta_vlan()
The VLAN interface index needs to use NL80211_ATTR_STA_VLAN. It was adding a duplicate NL80211_ATTR_IFINDEX.
This commit is contained in:
parent
9fac49c15c
commit
1c766b094a
1 changed files with 1 additions and 1 deletions
|
@ -4271,7 +4271,7 @@ static int i802_set_sta_vlan(void *priv, const u8 *addr,
|
||||||
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX,
|
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX,
|
||||||
if_nametoindex(drv->ifname));
|
if_nametoindex(drv->ifname));
|
||||||
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr);
|
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr);
|
||||||
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX,
|
NLA_PUT_U32(msg, NL80211_ATTR_STA_VLAN,
|
||||||
if_nametoindex(ifname));
|
if_nametoindex(ifname));
|
||||||
|
|
||||||
return send_and_recv_msgs(drv, msg, NULL, NULL);
|
return send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||||
|
|
Loading…
Reference in a new issue