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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +-
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
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
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?
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
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
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
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
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
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
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
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
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
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
.
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
.
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
32 matches
Mail list logo