* [PATCH] mac80211: allow re-open the blocked peer link in mesh
@ 2012-09-14 6:18 Chun-Yeow Yeoh
2012-09-14 12:25 ` Johannes Berg
2012-09-14 12:29 ` 李申
0 siblings, 2 replies; 5+ messages in thread
From: Chun-Yeow Yeoh @ 2012-09-14 6:18 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes, devel, Chun-Yeow Yeoh
Peer link which is blocked using the "iw mesh0 station
set <MAC addr> plink_action block" is previously not able
to re-open using "iw mesh0 station set <MAC addr>
plink_action open". This patch is intended to solve this.
If the station plink state remains at OPN_SNT once open,
try block and open again should solve this problem.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
---
net/mac80211/mesh_plink.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index 9d7ad36..3ab34d8 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -537,7 +537,8 @@ int mesh_plink_open(struct sta_info *sta)
spin_lock_bh(&sta->lock);
get_random_bytes(&llid, 2);
sta->llid = llid;
- if (sta->plink_state != NL80211_PLINK_LISTEN) {
+ if (sta->plink_state != NL80211_PLINK_LISTEN &&
+ sta->plink_state != NL80211_PLINK_BLOCKED) {
spin_unlock_bh(&sta->lock);
return -EBUSY;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: allow re-open the blocked peer link in mesh
2012-09-14 6:18 [PATCH] mac80211: allow re-open the blocked peer link in mesh Chun-Yeow Yeoh
@ 2012-09-14 12:25 ` Johannes Berg
2012-09-14 12:29 ` 李申
1 sibling, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2012-09-14 12:25 UTC (permalink / raw)
To: Chun-Yeow Yeoh; +Cc: linux-wireless, devel
On Fri, 2012-09-14 at 14:18 +0800, Chun-Yeow Yeoh wrote:
> Peer link which is blocked using the "iw mesh0 station
> set <MAC addr> plink_action block" is previously not able
> to re-open using "iw mesh0 station set <MAC addr>
> plink_action open". This patch is intended to solve this.
Applied.
> If the station plink state remains at OPN_SNT once open,
> try block and open again should solve this problem.
Not really sure I understand this part, but whatever :)
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re:[PATCH] mac80211: allow re-open the blocked peer link in mesh
2012-09-14 6:18 [PATCH] mac80211: allow re-open the blocked peer link in mesh Chun-Yeow Yeoh
2012-09-14 12:25 ` Johannes Berg
@ 2012-09-14 12:29 ` 李申
2012-09-14 12:52 ` 李申
1 sibling, 1 reply; 5+ messages in thread
From: 李申 @ 2012-09-14 12:29 UTC (permalink / raw)
To: devel; +Cc: linux-wireless, johannes
I have modified the souce code as the patch shows.I'm sorry that it doesn't work and station plink state is still BLOCKED.
At 2012-09-14 14:18:31,"Chun-Yeow Yeoh" <yeohchunyeow@gmail.com> wrote:
>Peer link which is blocked using the "iw mesh0 station
>set <MAC addr> plink_action block" is previously not able
>to re-open using "iw mesh0 station set <MAC addr>
>plink_action open". This patch is intended to solve this.
>
>If the station plink state remains at OPN_SNT once open,
>try block and open again should solve this problem.
>
>Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
>---
> net/mac80211/mesh_plink.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
>diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
>index 9d7ad36..3ab34d8 100644
>--- a/net/mac80211/mesh_plink.c
>+++ b/net/mac80211/mesh_plink.c
>@@ -537,7 +537,8 @@ int mesh_plink_open(struct sta_info *sta)
> spin_lock_bh(&sta->lock);
> get_random_bytes(&llid, 2);
> sta->llid = llid;
>- if (sta->plink_state != NL80211_PLINK_LISTEN) {
>+ if (sta->plink_state != NL80211_PLINK_LISTEN &&
>+ sta->plink_state != NL80211_PLINK_BLOCKED) {
> spin_unlock_bh(&sta->lock);
> return -EBUSY;
> }
>--
>1.7.0.4
>
>_______________________________________________
>Devel mailing list
>Devel@lists.open80211s.org
>http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re:Re:[PATCH] mac80211: allow re-open the blocked peer link in mesh
2012-09-14 12:29 ` 李申
@ 2012-09-14 12:52 ` 李申
2012-09-14 15:10 ` Yeoh Chun-Yeow
0 siblings, 1 reply; 5+ messages in thread
From: 李申 @ 2012-09-14 12:52 UTC (permalink / raw)
To: devel; +Cc: johannes, linux-wireless
I'm sorry that I made a mistake in the process of modifying the source code.Now it works well.Thank you for your help!
At 2012-09-14 20:29:32,"李申" <lishen565@126.com> wrote:
>I have modified the souce code as the patch shows.I'm sorry that it doesn't work and station plink state is still BLOCKED.
>At 2012-09-14 14:18:31,"Chun-Yeow Yeoh" <yeohchunyeow@gmail.com> wrote:
>>Peer link which is blocked using the "iw mesh0 station
>>set <MAC addr> plink_action block" is previously not able
>>to re-open using "iw mesh0 station set <MAC addr>
>>plink_action open". This patch is intended to solve this.
>>
>>If the station plink state remains at OPN_SNT once open,
>>try block and open again should solve this problem.
>>
>>Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
>>---
>> net/mac80211/mesh_plink.c | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>>diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
>>index 9d7ad36..3ab34d8 100644
>>--- a/net/mac80211/mesh_plink.c
>>+++ b/net/mac80211/mesh_plink.c
>>@@ -537,7 +537,8 @@ int mesh_plink_open(struct sta_info *sta)
>> spin_lock_bh(&sta->lock);
>> get_random_bytes(&llid, 2);
>> sta->llid = llid;
>>- if (sta->plink_state != NL80211_PLINK_LISTEN) {
>>+ if (sta->plink_state != NL80211_PLINK_LISTEN &&
>>+ sta->plink_state != NL80211_PLINK_BLOCKED) {
>> spin_unlock_bh(&sta->lock);
>> return -EBUSY;
>> }
>>--
>>1.7.0.4
>>
>>_______________________________________________
>>Devel mailing list
>>Devel@lists.open80211s.org
>>http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
>
>_______________________________________________
>Devel mailing list
>Devel@lists.open80211s.org
>http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re:[PATCH] mac80211: allow re-open the blocked peer link in mesh
2012-09-14 12:52 ` 李申
@ 2012-09-14 15:10 ` Yeoh Chun-Yeow
0 siblings, 0 replies; 5+ messages in thread
From: Yeoh Chun-Yeow @ 2012-09-14 15:10 UTC (permalink / raw)
To: devel; +Cc: johannes, linux-wireless
Great to hear that it works.
---
Chun-Yeow
On Fri, Sep 14, 2012 at 8:52 PM, 李申 <lishen565@126.com> wrote:
> I'm sorry that I made a mistake in the process of modifying the source code.Now it works well.Thank you for your help!
> At 2012-09-14 20:29:32,"李申" <lishen565@126.com> wrote:
>>I have modified the souce code as the patch shows.I'm sorry that it doesn't work and station plink state is still BLOCKED.
>>At 2012-09-14 14:18:31,"Chun-Yeow Yeoh" <yeohchunyeow@gmail.com> wrote:
>>>Peer link which is blocked using the "iw mesh0 station
>>>set <MAC addr> plink_action block" is previously not able
>>>to re-open using "iw mesh0 station set <MAC addr>
>>>plink_action open". This patch is intended to solve this.
>>>
>>>If the station plink state remains at OPN_SNT once open,
>>>try block and open again should solve this problem.
>>>
>>>Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
>>>---
>>> net/mac80211/mesh_plink.c | 3 ++-
>>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>>
>>>diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
>>>index 9d7ad36..3ab34d8 100644
>>>--- a/net/mac80211/mesh_plink.c
>>>+++ b/net/mac80211/mesh_plink.c
>>>@@ -537,7 +537,8 @@ int mesh_plink_open(struct sta_info *sta)
>>> spin_lock_bh(&sta->lock);
>>> get_random_bytes(&llid, 2);
>>> sta->llid = llid;
>>>- if (sta->plink_state != NL80211_PLINK_LISTEN) {
>>>+ if (sta->plink_state != NL80211_PLINK_LISTEN &&
>>>+ sta->plink_state != NL80211_PLINK_BLOCKED) {
>>> spin_unlock_bh(&sta->lock);
>>> return -EBUSY;
>>> }
>>>--
>>>1.7.0.4
>>>
>>>_______________________________________________
>>>Devel mailing list
>>>Devel@lists.open80211s.org
>>>http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
>>
>>_______________________________________________
>>Devel mailing list
>>Devel@lists.open80211s.org
>>http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
>
> _______________________________________________
> Devel mailing list
> Devel@lists.open80211s.org
> http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-14 15:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 6:18 [PATCH] mac80211: allow re-open the blocked peer link in mesh Chun-Yeow Yeoh
2012-09-14 12:25 ` Johannes Berg
2012-09-14 12:29 ` 李申
2012-09-14 12:52 ` 李申
2012-09-14 15:10 ` Yeoh Chun-Yeow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).