nl80211: use small state buffer for wiphy_dump
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Jun 2013 08:57:22 +0000 (10:57 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Jun 2013 16:55:38 +0000 (18:55 +0200)
commit86e8cf98de3e74bbfb0003501e0004bf1e5e2618
tree89713ea44449ff036a5bbc5236357a382e5b0ed2
parentf93beba705842af466e7c916b39630cacb40e9c6
nl80211: use small state buffer for wiphy_dump

Avoid parsing the original dump message again and again by
allocating a small state struct that is used by the functions
involved in the dump, storing this struct in cb->args[0].
This reduces the memory allocation size as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c