]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Fix max_remain_on_chan capability reading
authorIlan Peer <ilan.peer@intel.com>
Sat, 4 May 2013 08:28:54 +0000 (11:28 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 May 2013 08:28:54 +0000 (11:28 +0300)
commitb691dcb129b09d42a1740a1706d28bc6562e7fa0
tree2eb600ebda641dca5ea1b576eacd9bd9c8e68374
parent41b1a76a9608f42a89ff4a68a277bd28b308e8ff
nl80211: Fix max_remain_on_chan capability reading

In case that NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP is supported,
wiphy_info_handler() is called several times, where
NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION is present only in one
of these calls. Thus capa->max_remain_on_chan is overridden in
all other calls.

Fix it so the default value is set only after all the wiphy info was
received.

Signed-hostap: Ilan Peer <ilan.peer@intel.com>
src/drivers/driver_nl80211.c