All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cfg80211: allow the plink state blocking for user managed mesh
@ 2015-04-16  5:15 Chun-Yeow Yeoh
  2015-04-16  9:24 ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Chun-Yeow Yeoh @ 2015-04-16  5:15 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, linville, Chun-Yeow Yeoh

User managed peering has no way to block the plink state
for mesh peering setup by wpa_supp or authsae. Try to do
allow this in kernel space, so that we can use iw utility
to do that.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.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 dd78445..8a33bba 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4061,7 +4061,8 @@ int cfg80211_check_station_change(struct wiphy *wiphy,
 			return -EINVAL;
 		break;
 	case CFG80211_STA_MESH_PEER_USER:
-		if (params->plink_action != NL80211_PLINK_ACTION_NO_ACTION)
+		if (params->plink_action != NL80211_PLINK_ACTION_NO_ACTION &&
+		    params->plink_action != NL80211_PLINK_ACTION_BLOCK)
 			return -EINVAL;
 		break;
 	}
-- 
2.3.0


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

* Re: [PATCH] cfg80211: allow the plink state blocking for user managed mesh
  2015-04-16  5:15 [PATCH] cfg80211: allow the plink state blocking for user managed mesh Chun-Yeow Yeoh
@ 2015-04-16  9:24 ` Johannes Berg
  2015-04-16  9:53   ` Yeoh Chun-Yeow
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2015-04-16  9:24 UTC (permalink / raw)
  To: Chun-Yeow Yeoh; +Cc: linux-wireless, linville

On Thu, 2015-04-16 at 13:15 +0800, Chun-Yeow Yeoh wrote:
> User managed peering has no way to block the plink state
> for mesh peering setup by wpa_supp or authsae. Try to do
> allow this in kernel space, so that we can use iw utility
> to do that.

I have no idea what you're trying to say here.

johannes

PS: don't CC John any more :)


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

* Re: [PATCH] cfg80211: allow the plink state blocking for user managed mesh
  2015-04-16  9:24 ` Johannes Berg
@ 2015-04-16  9:53   ` Yeoh Chun-Yeow
  2015-04-17 11:21     ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Yeoh Chun-Yeow @ 2015-04-16  9:53 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Kalle Valo

On Thu, Apr 16, 2015 at 5:24 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Thu, 2015-04-16 at 13:15 +0800, Chun-Yeow Yeoh wrote:
>> User managed peering has no way to block the plink state
>> for mesh peering setup by wpa_supp or authsae. Try to do
>> allow this in kernel space, so that we can use iw utility
>> to do that.
>
> I have no idea what you're trying to say here.
>

wpa_supplicant and authsae allows us to do mesh peering in user space,
but the plink state is still managed in kernel space.

But AFAIK, there is no implementation by wpa_supplicant or authsae to
block the plink state.

By applying this patch, we can use the "iw mesh0 station set
xx:xx:xx:xx:xx:xx plink_action block" to block the peer mesh STA. This
is useful for experimenting purposes.

> johannes
>
> PS: don't CC John any more :)
>

Oops, ok.

----
Chun-Yeow

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

* Re: [PATCH] cfg80211: allow the plink state blocking for user managed mesh
  2015-04-16  9:53   ` Yeoh Chun-Yeow
@ 2015-04-17 11:21     ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2015-04-17 11:21 UTC (permalink / raw)
  To: Yeoh Chun-Yeow; +Cc: linux-wireless, Kalle Valo

On Thu, 2015-04-16 at 17:53 +0800, Yeoh Chun-Yeow wrote:
> On Thu, Apr 16, 2015 at 5:24 PM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
> > On Thu, 2015-04-16 at 13:15 +0800, Chun-Yeow Yeoh wrote:
> >> User managed peering has no way to block the plink state
> >> for mesh peering setup by wpa_supp or authsae. Try to do
> >> allow this in kernel space, so that we can use iw utility
> >> to do that.
> >
> > I have no idea what you're trying to say here.
> >
> 
> wpa_supplicant and authsae allows us to do mesh peering in user space,
> but the plink state is still managed in kernel space.
> 
> But AFAIK, there is no implementation by wpa_supplicant or authsae to
> block the plink state.
> 
> By applying this patch, we can use the "iw mesh0 station set
> xx:xx:xx:xx:xx:xx plink_action block" to block the peer mesh STA. This
> is useful for experimenting purposes.

Can you please respin with a bit more detail in the commit log?

Thanks.

johannes


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

end of thread, other threads:[~2015-04-17 11:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-16  5:15 [PATCH] cfg80211: allow the plink state blocking for user managed mesh Chun-Yeow Yeoh
2015-04-16  9:24 ` Johannes Berg
2015-04-16  9:53   ` Yeoh Chun-Yeow
2015-04-17 11:21     ` Johannes Berg

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.