From: Author: Johannes Berg Date: Wed, 30 Sep 2009 16:23:52 +0000 (+0300) Subject: nl80211: Fix a typo in set_sta_vlan() X-Git-Tag: hostap_0_7_0~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c766b094a82a669a1d0bb7f8d132b322e56e81d;p=thirdparty%2Fhostap.git 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. --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index dcc27c6ab..662bf5ba3 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4271,7 +4271,7 @@ static int i802_set_sta_vlan(void *priv, const u8 *addr, NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(drv->ifname)); 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)); return send_and_recv_msgs(drv, msg, NULL, NULL);