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:
Author: Johannes Berg 2009-09-30 19:23:52 +03:00 committed by Jouni Malinen
parent 9fac49c15c
commit 1c766b094a

View file

@ -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);