Re: [PATCH 1/2] mac80211-hwsim: Factor out netlink attribute appending

2014-11-12 Thread Patrik Flykt
On Mon, 2014-11-10 at 10:32 +0100, Johannes Berg wrote: You seem to have lost the nlmsg_free() in error cases. Indeed. Will fix. Patrik -- To unsubscribe from this list: send the line unsubscribe linux-wireless in the body of a message to majord...@vger.kernel.org More majordomo info

[PATCH v2 1/2] mac80211-hwsim: Factor out netlink attribute appending

2014-11-12 Thread Patrik Flykt
Factor out netlink message attribute appending in order to reuse it with later code. As a result move netlink skb allocation to the calling function. Signed-off-by: Patrik Flykt patrik.fl...@linux.intel.com --- v2: Free skb in error path drivers/net/wireless/mac80211_hwsim.c | 60

[PATCH v2 0/2] Add HWSIM_CMD_GET_RADIO command

2014-11-12 Thread Patrik Flykt
is saved to the hwsim struct as it seems difficult to access it otherwise when needed. Patrik Flykt (2): mac80211-hwsim: Factor out netlink attribute appending mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command drivers/net/wireless/mac80211_hwsim.c | 183 -- drivers

[PATCH v2 2/2] mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command

2014-11-12 Thread Patrik Flykt
alpha2 and struct ieee80211_regdomain in the hwsim data or else they will be lost in the depths of regulatory infrastructure. Signed-off-by: Patrik Flykt patrik.fl...@linux.intel.com --- v2: Fix dumping of hwsim radios by remembering the radio id from which to start the next netlink message

[PATCH 2/2] mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command

2014-11-07 Thread Patrik Flykt
. Save alpha2 and struct ieee80211_regdomain in the hwsim data or else they will be lost in the depths of regulatory infrastructure. Signed-off-by: Patrik Flykt patrik.fl...@linux.intel.com --- drivers/net/wireless/mac80211_hwsim.c | 107 +- drivers/net/wireless

[PATCH 0/2] Add HWSIM_CMD_GET_RADIO command

2014-11-07 Thread Patrik Flykt
all or one of the existing radios. Regulatory data is saved to the hwsim struct as it seems difficult to access it otherwise when needed. Cheers, Patrik Patrik Flykt (2): mac80211-hwsim: Factor out netlink attribute appending mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command drivers