]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix non-split wiphy information
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Sep 2020 11:07:18 +0000 (13:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Oct 2020 10:07:09 +0000 (12:07 +0200)
commit36c66e2f74d7d2f2337bcfa7fa676afa20a65ee6
tree78247e817982b35f2cde4e8cc3ccadeb27abbca0
parent95bb55681989239a0294a3aa81ada8409d7d8278
nl80211: fix non-split wiphy information

When dumping wiphy information, we try to split the data into
many submessages, but for old userspace we still support the
old mode where this doesn't happen.

However, in this case we were not resetting our state correctly
and dumping multiple messages for each wiphy, which would have
broken such older userspace.

This was broken pretty much immediately afterwards because it
only worked in the original commit where non-split dumps didn't
have any more data than split dumps...

Fixes: 773a07326b41 ("nl80211: re-add channel width and extended capa advertising")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200928130717.3e6d9c6bada2.Ie0f151a8d0d00a8e1e18f6a8c9244dd02496af67@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c