All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nl80211: make sure we check for DFS with mesh channel switch
@ 2014-02-14 10:22 Luciano Coelho
  2014-02-14 10:56 ` Yeoh Chun-Yeow
  0 siblings, 1 reply; 2+ messages in thread
From: Luciano Coelho @ 2014-02-14 10:22 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, yeohchunyeow, sw

From: Luciano Coelho <luciano.coelho@intel.com>

Since mesh support for DFS channels was added, we also need to check
for DFS channels when performing a channel switch with
NL80211_IFTYPE_MESHPOINT.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
---
 net/wireless/nl80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 1797864..b78d734 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -5912,7 +5912,8 @@ skip_beacons:
 
 	if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP ||
 	    dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO ||
-	    dev->ieee80211_ptr->iftype == NL80211_IFTYPE_ADHOC) {
+	    dev->ieee80211_ptr->iftype == NL80211_IFTYPE_ADHOC ||
+	    dev->ieee80211_ptr->iftype == NL80211_IFTYPE_MESH_POINT) {
 		err = cfg80211_chandef_dfs_required(wdev->wiphy,
 						    &params.chandef);
 		if (err < 0) {
-- 
1.8.5.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nl80211: make sure we check for DFS with mesh channel switch
  2014-02-14 10:22 [PATCH] nl80211: make sure we check for DFS with mesh channel switch Luciano Coelho
@ 2014-02-14 10:56 ` Yeoh Chun-Yeow
  0 siblings, 0 replies; 2+ messages in thread
From: Yeoh Chun-Yeow @ 2014-02-14 10:56 UTC (permalink / raw)
  To: Luciano Coelho; +Cc: linux-wireless, Johannes Berg, Simon Wunderlich

> From: Luciano Coelho <luciano.coelho@intel.com>
>
> Since mesh support for DFS channels was added, we also need to check
> for DFS channels when performing a channel switch with
> NL80211_IFTYPE_MESHPOINT.
>
> Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
> ---
>  net/wireless/nl80211.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
> index 1797864..b78d734 100644
> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -5912,7 +5912,8 @@ skip_beacons:
>
>         if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP ||
>             dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO ||
> -           dev->ieee80211_ptr->iftype == NL80211_IFTYPE_ADHOC) {
> +           dev->ieee80211_ptr->iftype == NL80211_IFTYPE_ADHOC ||
> +           dev->ieee80211_ptr->iftype == NL80211_IFTYPE_MESH_POINT) {
>                 err = cfg80211_chandef_dfs_required(wdev->wiphy,
>                                                     &params.chandef);
>                 if (err < 0) {
> --
> 1.8.5.3
>

Acked-by: Chun-Yeow Yeoh <yeohchunyeow@xxxxxxxxxxxxxxxxxx>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-14 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14 10:22 [PATCH] nl80211: make sure we check for DFS with mesh channel switch Luciano Coelho
2014-02-14 10:56 ` Yeoh Chun-Yeow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.