* [PATCH] ath9k: Enable WDS for the ath9k
@ 2010-09-30 21:29 Bill Jordan
2010-09-30 21:43 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: Bill Jordan @ 2010-09-30 21:29 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless, Luis R. Rodriguez
As requested, I'm breaking up my previous patch.
This patch enables WDS for the ath9k driver.
For WDS to fully work, patches to mac80211 are also needed
(submitted separately).
Signed-off-by: Bill Jordan <bjordan@rajant.com>
---
drivers/net/wireless/ath/ath9k/init.c | 1 +
drivers/net/wireless/ath/ath9k/main.c | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/init.c
b/drivers/net/wireless/ath/ath9k/init.c
index de33938..c2792c9 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -639,6 +639,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc,
struct ieee80211_hw *hw)
hw->wiphy->interface_modes =
BIT(NL80211_IFTYPE_AP) |
+ BIT(NL80211_IFTYPE_WDS) |
BIT(NL80211_IFTYPE_STATION) |
BIT(NL80211_IFTYPE_ADHOC) |
BIT(NL80211_IFTYPE_MESH_POINT);
diff --git a/drivers/net/wireless/ath/ath9k/main.c
b/drivers/net/wireless/ath/ath9k/main.c
index a133878..d67067f 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1384,6 +1384,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
case NL80211_IFTYPE_STATION:
ic_opmode = NL80211_IFTYPE_STATION;
break;
+ case NL80211_IFTYPE_WDS:
+ ic_opmode = NL80211_IFTYPE_WDS;
+ break;
case NL80211_IFTYPE_ADHOC:
case NL80211_IFTYPE_AP:
case NL80211_IFTYPE_MESH_POINT:
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath9k: Enable WDS for the ath9k
2010-09-30 21:29 [PATCH] ath9k: Enable WDS for the ath9k Bill Jordan
@ 2010-09-30 21:43 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2010-09-30 21:43 UTC (permalink / raw)
To: Bill Jordan
Cc: John W. Linville, linux-wireless@vger.kernel.org, Luis Rodriguez
On Thu, Sep 30, 2010 at 02:29:37PM -0700, Bill Jordan wrote:
> As requested, I'm breaking up my previous patch.
Please resubmit but remove this verbose stuff above.
>
> This patch enables WDS for the ath9k driver.
>
> For WDS to fully work, patches to mac80211 are also needed
> (submitted separately).
and this too.
> Signed-off-by: Bill Jordan <bjordan@rajant.com>
> ---
If you want to add verbose messages that should not
be part of the commit log entry add them here after
the three dashes ("---").
Luis
> drivers/net/wireless/ath/ath9k/init.c | 1 +
> drivers/net/wireless/ath/ath9k/main.c | 3 +++
> 2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/init.c
> b/drivers/net/wireless/ath/ath9k/init.c
> index de33938..c2792c9 100644
> --- a/drivers/net/wireless/ath/ath9k/init.c
> +++ b/drivers/net/wireless/ath/ath9k/init.c
> @@ -639,6 +639,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc,
> struct ieee80211_hw *hw)
>
> hw->wiphy->interface_modes =
> BIT(NL80211_IFTYPE_AP) |
> + BIT(NL80211_IFTYPE_WDS) |
> BIT(NL80211_IFTYPE_STATION) |
> BIT(NL80211_IFTYPE_ADHOC) |
> BIT(NL80211_IFTYPE_MESH_POINT);
> diff --git a/drivers/net/wireless/ath/ath9k/main.c
> b/drivers/net/wireless/ath/ath9k/main.c
> index a133878..d67067f 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -1384,6 +1384,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
> case NL80211_IFTYPE_STATION:
> ic_opmode = NL80211_IFTYPE_STATION;
> break;
> + case NL80211_IFTYPE_WDS:
> + ic_opmode = NL80211_IFTYPE_WDS;
> + break;
> case NL80211_IFTYPE_ADHOC:
> case NL80211_IFTYPE_AP:
> case NL80211_IFTYPE_MESH_POINT:
> --
> 1.7.2.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-30 21:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 21:29 [PATCH] ath9k: Enable WDS for the ath9k Bill Jordan
2010-09-30 21:43 ` Luis R. Rodriguez
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).