]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: Reset split_start when netlink skb is exhausted
authorPontus Fuchs <pontus.fuchs@gmail.com>
Thu, 16 Jan 2014 14:00:40 +0000 (15:00 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Feb 2014 08:55:17 +0000 (09:55 +0100)
commit12469a5a94f1a9429df02165ef7908c1c4c9ad4d
tree5678173217dedde3d552221d9c7c602d50d75a61
parentab6c7db36ca6cc53ed833d350510c8e677befc7d
nl80211: Reset split_start when netlink skb is exhausted

When the netlink skb is exhausted split_start is left set. In the
subsequent retry, with a larger buffer, the dump is continued from the
failing point instead of from the beginning.

This was causing my rt28xx based USB dongle to now show up when
running "iw list" with an old iw version without split dump support.

Cc: stable@vger.kernel.org
Fixes: 50a7e603cf14 ("nl80211: allow splitting wiphy information in dumps")
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
[avoid the entire workaround when state->split is set]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c