]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix sending proper VLAN ID attr value when using VLAN offload
authorSeevalamuthu Mariappan <seevalam@codeaurora.org>
Thu, 11 Jun 2020 11:37:35 +0000 (17:07 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 15 Jul 2020 21:25:14 +0000 (00:25 +0300)
commitcc6153a8a4555407562a4200f298554e6a27eea1
tree4b1a8b39167db21eedd20d356897cdbb802224f9
parenta57f98754e255e928f5da6b641ca643a75bc2c4a
nl80211: Fix sending proper VLAN ID attr value when using VLAN offload

The NL80211_ATTR_VLAN_ID attribute expects non-zero values, but vlan_id
with value 0 has been set in VLAN offload case. Due to this, station
connection failure is observed if the driver advertises VLAN_OFFLOAD
support:

nl80211: NL80211_ATTR_STA_VLAN (addr=8c:fd:f0:22:19:15 ifname=wlan0
         vlan_id=0) failed: -34 (Result not representable)
wlan0: STA 8c:fd:f0:22:19:15 IEEE 802.11: could not bind the STA
         entry to vlan_id=0

Fix this by setting only non-zero values.

Fixes: 0f903f37dca1 ("nl80211: VLAN offload support")
Signed-off-by: Seevalamuthu Mariappan <seevalam@codeaurora.org>
src/drivers/driver_nl80211.c