linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] cfg80211: patches to allow setting the WDS peer
@ 2010-09-30 22:21 Bill Jordan
  2010-09-30 22:29 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Bill Jordan @ 2010-09-30 22:21 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, Luis R. Rodriguez, Johannes Berg

Added a nl interface to set the peer bssid of a WDS interface.

Signed-off-by: Bill Jordan <bjordan@rajant.com>
---
 include/linux/nl80211.h |    3 ++
 net/wireless/nl80211.c  |   49 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index f0518b0..35a9681 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -387,6 +387,8 @@
  *	of any other interfaces, and other interfaces will again take
  *	precedence when they are used.
  *
+ * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a
WDS interface.
+ *
  * @NL80211_CMD_MAX: highest used command number
  * @__NL80211_CMD_AFTER_LAST: internal use
  */
@@ -489,6 +491,7 @@ enum nl80211_commands {
 	NL80211_CMD_NOTIFY_CQM,

 	NL80211_CMD_SET_CHANNEL,
+	NL80211_CMD_SET_WDS_PEER,

 	/* add new commands above here */

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 9c84825..c401349 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -603,6 +603,7 @@ static int nl80211_send_wiphy(struct sk_buff *msg,
u32 pid, u32 seq, int flags,
 		NLA_PUT_U32(msg, i, NL80211_CMD_SET_WIPHY_NETNS);
 	}
 	CMD(set_channel, SET_CHANNEL);
+	CMD(set_wds_peer, SET_WDS_PEER);

 #undef CMD

@@ -831,6 +832,48 @@ static int nl80211_set_channel(struct sk_buff
*skb, struct genl_info *info)
 	return result;
 }

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH 0/3] patches for WDS interfaces
@ 2010-10-01 15:20 Bill Jordan
  2010-10-01 15:20 ` [PATCH 2/3] cfg80211: patches to allow setting the WDS peer Bill Jordan
  0 siblings, 1 reply; 7+ messages in thread
From: Bill Jordan @ 2010-10-01 15:20 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, Luis R. Rodriguez, Johannes Berg, Bill Jordan

Apologies to Luis Rodriguez and Johannes Berg.  Thanks for bearing with me.
I think I've got it right this time.

With these patches, I'm able to interoperate over WDS between
linux-wireless and MadWifi. I'm running wireless-testing plus OpenWRT
patches on a Cambria board with an AR9160 radio.

Bill Jordan (3):
  Patches to ath9k for WDS.
  Patches to cfg80211 to allow setting the WDS peer.
  Patches to mac80211 to allow WDS interfaces to pass packets.

 drivers/net/wireless/ath/ath9k/init.c |    1 +
 drivers/net/wireless/ath/ath9k/main.c |    3 ++
 include/linux/nl80211.h               |    3 ++
 net/mac80211/iface.c                  |    3 ++
 net/mac80211/main.c                   |    3 ++
 net/mac80211/rx.c                     |    1 +
 net/mac80211/tx.c                     |    3 ++
 net/wireless/nl80211.c                |   49 +++++++++++++++++++++++++++++++++
 8 files changed, 66 insertions(+), 0 deletions(-)

-- 
1.7.2.3


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

end of thread, other threads:[~2010-10-01 17:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 22:21 [PATCH 2/3] cfg80211: patches to allow setting the WDS peer Bill Jordan
2010-09-30 22:29 ` Johannes Berg
2010-10-01  0:25   ` Luis R. Rodriguez
  -- strict thread matches above, loose matches on Subject: below --
2010-10-01 15:20 [PATCH 0/3] patches for WDS interfaces Bill Jordan
2010-10-01 15:20 ` [PATCH 2/3] cfg80211: patches to allow setting the WDS peer Bill Jordan
2010-10-01 16:05   ` Johannes Berg
2010-10-01 16:06     ` Johannes Berg
2010-10-01 17:45       ` Bill Jordan

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).