* [PATCH] mac80211: add sta item when changing WDS address
@ 2007-03-27 16:01 Johannes Berg
2007-04-27 15:12 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2007-03-27 16:01 UTC (permalink / raw)
To: Jiri Benc; +Cc: linux-wireless
This patch adds a sta item for the new address when you change a WDS
link's address. If the sta item cannot be created return an error.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/ieee80211.c | 9 +++++++++
1 file changed, 9 insertions(+)
--- wireless-dev.orig/net/mac80211/ieee80211.c 2007-03-27 16:33:29.523155480 +0200
+++ wireless-dev/net/mac80211/ieee80211.c 2007-03-27 16:33:47.163155480 +0200
@@ -4418,6 +4418,15 @@ int ieee80211_if_update_wds(struct net_d
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
struct sta_info *sta;
+ if (compare_ether_addr(remote_addr, sdata->u.wds.remote_addr) == 0)
+ return 0;
+
+ /* Create STA entry for the new peer */
+ sta = sta_info_add(local, dev, remote_addr, GFP_KERNEL);
+ if (!sta)
+ return -ENOMEM;
+ sta_info_put(sta);
+
/* Remove STA entry for the old peer */
sta = sta_info_get(local, sdata->u.wds.remote_addr);
if (sta) {
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: add sta item when changing WDS address
2007-03-27 16:01 [PATCH] mac80211: add sta item when changing WDS address Johannes Berg
@ 2007-04-27 15:12 ` Johannes Berg
2007-04-27 15:21 ` John W. Linville
2007-04-27 15:23 ` Jiri Benc
0 siblings, 2 replies; 5+ messages in thread
From: Johannes Berg @ 2007-04-27 15:12 UTC (permalink / raw)
To: Jiri Benc; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
On Tue, 2007-03-27 at 18:01 +0200, Johannes Berg wrote:
> This patch adds a sta item for the new address when you change a WDS
> link's address. If the sta item cannot be created return an error.
Anything wrong with this patch? :)
> --- wireless-dev.orig/net/mac80211/ieee80211.c 2007-03-27 16:33:29.523155480 +0200
> +++ wireless-dev/net/mac80211/ieee80211.c 2007-03-27 16:33:47.163155480 +0200
> @@ -4418,6 +4418,15 @@ int ieee80211_if_update_wds(struct net_d
> struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
> struct sta_info *sta;
>
> + if (compare_ether_addr(remote_addr, sdata->u.wds.remote_addr) == 0)
> + return 0;
> +
> + /* Create STA entry for the new peer */
> + sta = sta_info_add(local, dev, remote_addr, GFP_KERNEL);
> + if (!sta)
> + return -ENOMEM;
> + sta_info_put(sta);
> +
> /* Remove STA entry for the old peer */
> sta = sta_info_get(local, sdata->u.wds.remote_addr);
> if (sta) {
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: add sta item when changing WDS address
2007-04-27 15:12 ` Johannes Berg
@ 2007-04-27 15:21 ` John W. Linville
2007-04-27 15:23 ` Jiri Benc
1 sibling, 0 replies; 5+ messages in thread
From: John W. Linville @ 2007-04-27 15:21 UTC (permalink / raw)
To: Johannes Berg; +Cc: Jiri Benc, linux-wireless
On Fri, Apr 27, 2007 at 05:12:52PM +0200, Johannes Berg wrote:
> On Tue, 2007-03-27 at 18:01 +0200, Johannes Berg wrote:
> > This patch adds a sta item for the new address when you change a WDS
> > link's address. If the sta item cannot be created return an error.
>
> Anything wrong with this patch? :)
Hopefully nothing...I merged it as commit d80bb18ca3444520b465f3006bbb78837a5e28d9.
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: add sta item when changing WDS address
2007-04-27 15:12 ` Johannes Berg
2007-04-27 15:21 ` John W. Linville
@ 2007-04-27 15:23 ` Jiri Benc
2007-04-27 15:29 ` Johannes Berg
1 sibling, 1 reply; 5+ messages in thread
From: Jiri Benc @ 2007-04-27 15:23 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Fri, 27 Apr 2007 17:12:52 +0200, Johannes Berg wrote:
> On Tue, 2007-03-27 at 18:01 +0200, Johannes Berg wrote:
> > This patch adds a sta item for the new address when you change a WDS
> > link's address. If the sta item cannot be created return an error.
>
> Anything wrong with this patch? :)
It's in wireless-dev for quite some time (commit
d80bb18ca3444520b465f3006bbb78837a5e28d9). Did I miss some problem when
I was looking at the patch?
Jiri
--
Jiri Benc
SUSE Labs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: add sta item when changing WDS address
2007-04-27 15:23 ` Jiri Benc
@ 2007-04-27 15:29 ` Johannes Berg
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2007-04-27 15:29 UTC (permalink / raw)
To: Jiri Benc; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
On Fri, 2007-04-27 at 17:23 +0200, Jiri Benc wrote:
> On Fri, 27 Apr 2007 17:12:52 +0200, Johannes Berg wrote:
> > On Tue, 2007-03-27 at 18:01 +0200, Johannes Berg wrote:
> > > This patch adds a sta item for the new address when you change a WDS
> > > link's address. If the sta item cannot be created return an error.
> >
> > Anything wrong with this patch? :)
>
> It's in wireless-dev for quite some time (commit
> d80bb18ca3444520b465f3006bbb78837a5e28d9). Did I miss some problem when
> I was looking at the patch?
No no! I just thought it wasn't because quilt managed to apply the patch
over it being applied already and so it was still in my patch queue.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-27 15:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27 16:01 [PATCH] mac80211: add sta item when changing WDS address Johannes Berg
2007-04-27 15:12 ` Johannes Berg
2007-04-27 15:21 ` John W. Linville
2007-04-27 15:23 ` Jiri Benc
2007-04-27 15:29 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox