[PATCH v9 0/2] Stop scheduled scan if netlink client disappears

2014-12-15 Thread Jukka Rissanen
is cancelled when interface is taken down in patch 2 Jukka Rissanen (2): nl80211: Convert sched_scan_req pointer to RCU pointer nl80211: Stop scheduled scan if netlink client disappears include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h | 3 +++ net/wireless/core.c

[PATCH v9 1/2] nl80211: Convert sched_scan_req pointer to RCU pointer

2014-12-15 Thread Jukka Rissanen
Because of possible races when accessing sched_scan_req pointer in rdev, the sched_scan_req is converted to RCU pointer. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + net/wireless/core.c| 10 +++--- net/wireless/core.h| 2 +- net

[PATCH v9 2/2] nl80211: Stop scheduled scan if netlink client disappears

2014-12-15 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + include/uapi/linux/nl80211.h | 3

[PATCH v8 1/2] nl80211: Stop scheduled scan if netlink client disappears

2014-11-27 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + include/uapi/linux/nl80211.h | 3

[PATCH v8 0/2] Stop scheduled scan if netlink client disappears

2014-11-27 Thread Jukka Rissanen
code that uses NL80211_ATTR_IFACE_SOCKET_OWNER to use the new value. A define is provided for backward compatibility. - Any pending schedule scan stop worker is cancelled when interface is taken down in patch 2 Jukka Rissanen (2): nl80211: Stop scheduled scan if netlink client disappears

[PATCH v8 2/2] nl80211: Convert sched_scan_req pointer to RCU pointer

2014-11-27 Thread Jukka Rissanen
Because of possible races when accessing sched_scan_req pointer in rdev, the sched_scan_req is converted to RCU pointer. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + net/wireless/core.c| 10 +++--- net/wireless/core.h| 2 +- net

Re: [PATCH v6] nl80211: Stop scheduled scan if netlink client disappears

2014-11-21 Thread Jukka Rissanen
Hi Johannes, On to, 2014-11-20 at 16:14 +0100, Johannes Berg wrote: On Thu, 2014-11-20 at 13:32 +0200, Jukka Rissanen wrote: - moved owner netlink port id from cfg80211_sched_scan_request to rdev in order to avoid possible races How does that really help though? You're not really

[PATCH v6] nl80211: Stop scheduled scan if netlink client disappears

2014-11-20 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- Hi, v6: - moved owner netlink port id from cfg80211_sched_scan_request

[PATCH v4 1/2] nl80211: Replace interface socket owner attribute with more generic one

2014-11-13 Thread Jukka Rissanen
Replace NL80211_ATTR_IFACE_SOCKET_OWNER attribute with more generic NL80211_ATTR_SOCKET_OWNER that can be used with other commands that interface creation. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/uapi/linux/nl80211.h | 7 --- net/wireless/nl80211.c | 4

[PATCH v4 2/2] nl80211: Stop scheduled scan if netlink client disappears

2014-11-13 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h | 3

[PATCH v4 0/2] Stop scheduled scan if netlink client disappears

2014-11-13 Thread Jukka Rissanen
to use the new value. A define is provided for backward compatibility. - Any pending schedule scan stop worker is cancelled when interface is taken down in patch 2 Cheers, Jukka Jukka Rissanen (2): nl80211: Replace interface socket owner attribute with more generic one nl80211: Stop

[PATCH v5 0/2] Stop scheduled scan if netlink client disappears

2014-11-13 Thread Jukka Rissanen
NL80211_ATTR_IFACE_SOCKET_OWNER to use the new value. A define is provided for backward compatibility. - Any pending schedule scan stop worker is cancelled when interface is taken down in patch 2 Cheers, Jukka Jukka Rissanen (2): nl80211: Replace interface socket owner attribute with more generic one

[PATCH v5 1/2] nl80211: Replace interface socket owner attribute with more generic one

2014-11-13 Thread Jukka Rissanen
Replace NL80211_ATTR_IFACE_SOCKET_OWNER attribute with more generic NL80211_ATTR_SOCKET_OWNER that can be used with other commands that interface creation. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/uapi/linux/nl80211.h | 7 --- net/wireless/nl80211.c | 4

[PATCH v5 2/2] nl80211: Stop scheduled scan if netlink client disappears

2014-11-13 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + include/uapi/linux/nl80211.h | 3

[PATCH v2 1/2] nl80211: Replace interface socket owner attribute with more generic one

2014-11-12 Thread Jukka Rissanen
Replace NL80211_ATTR_IFACE_SOCKET_OWNER attribute with more generic NL80211_ATTR_SOCKET_OWNER that can be used with other commands that interface creation. --- include/uapi/linux/nl80211.h | 8 +--- net/wireless/nl80211.c | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff

[PATCH v2 0/2] Stop scheduled scan if netlink client disappears

2014-11-12 Thread Jukka Rissanen
interface is taken down in patch 2 Cheers, Jukka Jukka Rissanen (2): nl80211: Replace interface socket owner attribute with more generic one nl80211: Stop scheduled scan if netlink client disappears include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h | 11 --- net

[PATCH v2 2/2] nl80211: Stop scheduled scan if netlink client disappears

2014-11-12 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. --- include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h | 3 +++ net/wireless/core.c | 10 +-

[PATCH v3 1/2] nl80211: Replace interface socket owner attribute with more generic one

2014-11-12 Thread Jukka Rissanen
Replace NL80211_ATTR_IFACE_SOCKET_OWNER attribute with more generic NL80211_ATTR_SOCKET_OWNER that can be used with other commands that interface creation. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/uapi/linux/nl80211.h | 7 --- net/wireless/nl80211.c | 4

[PATCH] nl80211: Stop scheduled scan if netlink client disappears

2014-11-11 Thread Jukka Rissanen
A new attribute NL80211_ATTR_SCAN_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h

Re: [PATCH] mac80211-hwsim: add frequency attribute to netlink pkts

2014-10-31 Thread Jukka Rissanen
Hi Ben Johannes, while rebasing my hwsim patches on top of Ben's patches, I noticed that the freq attribute is not mentioned in hwsim_genl_policy struct. The same applies also to radio name and vif attributes. Just wondered should they be mentioned in the policy struct like the other attributes?

[PATCH v3 0/2] Add mcast event when hwsim radios are created and removed

2014-10-31 Thread Jukka Rissanen
for backward compatibility. Patches 2 and 3 use the newly named enums and provide a way to inform the listeners on the multicast group config when new radio is created and existing radio is deleted. Jukka Rissanen (2): mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO mac80211

Re: [PATCH 2/3] mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO

2014-10-30 Thread Jukka Rissanen
Hi Johannes, On ke, 2014-10-29 at 16:53 +0100, Johannes Berg wrote: On Wed, 2014-10-29 at 16:50 +0100, Johannes Berg wrote: On Mon, 2014-10-27 at 12:44 +0200, Jukka Rissanen wrote: +static void mcast_msg(struct sk_buff *mcast_skb, struct genl_info *info) +{ + if (info

[PATCH v2 2/2] mac80211-hwsim: Provide multicast event for HWSIM_CMD_DEL_RADIO

2014-10-30 Thread Jukka Rissanen
When deleting old radio via HWSIM_CMD_DEL_RADIO then listeners on the multicast group config are informed. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- drivers/net/wireless/mac80211_hwsim.c | 43 ++- 1 file changed, 37 insertions(+), 6

[PATCH v2 1/2] mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO

2014-10-30 Thread Jukka Rissanen
When adding new radio via HWSIM_CMD_NEW_RADIO then listeners on the multicast group config are informed. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- drivers/net/wireless/mac80211_hwsim.c | 242 +- 1 file changed, 179 insertions(+), 63

[PATCH v2 0/2] Add mcast event when hwsim radios are created and removed

2014-10-30 Thread Jukka Rissanen
the newly named enums and provide a way to inform the listeners on the multicast group config when new radio is created and existing radio is deleted. Jukka Rissanen (2): mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO mac80211-hwsim: Provide multicast event for HWSIM_CMD_DEL_RADIO

[PATCH 0/3] Add mcast event when hwsim radios are created and removed

2014-10-27 Thread Jukka Rissanen
and provide a way to inform the listeners on the multicast group config when new radio is created and existing radio is deleted. Cheers, Jukka Jukka Rissanen (3): mac80211-hwsim: Rename CREATE and DESTROY radio to NEW and DEL radio mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO

[PATCH 2/3] mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO

2014-10-27 Thread Jukka Rissanen
When adding new radio via HWSIM_CMD_NEW_RADIO then listeners on the multicast group config are informed. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- drivers/net/wireless/mac80211_hwsim.c | 141 +- 1 file changed, 123 insertions(+), 18

[PATCH 1/3] mac80211-hwsim: Rename CREATE and DESTROY radio to NEW and DEL radio

2014-10-27 Thread Jukka Rissanen
Using the name HWSIM_CMD_NEW_RADIO and HWSIM_CMD_DEL_RADIO is more fitting on how other pieces of the wireless system work. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- drivers/net/wireless/mac80211_hwsim.h | 14 +- 1 file changed, 9 insertions(+), 5 deletions

Re: [PATCH 0/3] Add mcast event when hwsim radios are created and removed

2014-10-27 Thread Jukka Rissanen
Hi Johannes, On ma, 2014-10-27 at 12:20 +0100, Johannes Berg wrote: On Mon, 2014-10-27 at 12:44 +0200, Jukka Rissanen wrote: Hi, patch 1 renames HWSIM_CMD_CREATE_RADIO to HWSIM_CMD_NEW_RADIO and HWSIM_CMD_DESTROY_RADIO to HWSIM_CMD_DEL_RADIO. They are more fitting on how other pieces

Re: [PATCH 0/3] Add mcast event when hwsim radios are created and removed

2014-10-27 Thread Jukka Rissanen
On ma, 2014-10-27 at 12:31 +0100, Johannes Berg wrote: On Mon, 2014-10-27 at 13:29 +0200, Jukka Rissanen wrote: Yes, but from generic nl80211 event you cannot know if event is from hwsim radio or not. With this patch, the listener can know that the radio new/del event is specifically

[PATCH] mac80211-hwsim: Add support for HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE

2014-10-09 Thread Jukka Rissanen
. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- drivers/net/wireless/mac80211_hwsim.c | 52 +-- drivers/net/wireless/mac80211_hwsim.h | 3 ++ 2 files changed, 52 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b

[PATCH v2] mac80211-hwsim: Add support for HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE

2014-10-09 Thread Jukka Rissanen
. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- Hi, v2: - embed the work_struct into mac80211_hwsim_data which makes the code simpler Cheers, Jukka drivers/net/wireless/mac80211_hwsim.c | 40 --- drivers/net/wireless/mac80211_hwsim.h | 3 +++ 2