]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit701220bd6a2cec160eb14659e265f64fac4bc384
tree89713ea44449ff036a5bbc5236357a382e5b0ed2
parent2d941e76841b34b23663f3e9b645afa203783977
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