All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <ordex@autistici.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 1/2] ath9k_htc: Add support for NL80211_IFTYPE_MESH_POINT interfaces
Date: Fri, 26 Oct 2012 17:18:32 +0200	[thread overview]
Message-ID: <20121026151832.GW7023@ritirata.org> (raw)
In-Reply-To: <CAPjQAd9BgoE_sHyWoeUHmsqeOMm+-AwNGvAdV8Gf0NMBg4f9pA@mail.gmail.com>

Hello,

On Thu, Oct 25, 2012 at 11:44:19AM -0700, Javier Cardona wrote:
> >> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> >> index d98255e..9c5c63c 100644
> >> --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> >> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> >> @@ -707,6 +707,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
> >>                 IEEE80211_HW_SUPPORTS_PS |
> >>                 IEEE80211_HW_PS_NULLFUNC_STACK |
> >>                 IEEE80211_HW_REPORTS_TX_ACK_STATUS |
> >> +               IEEE80211_HW_SUPPORTS_PER_STA_GTK |
> >> +               IEEE80211_HW_MFP_CAPABLE |
> >>                 IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING;
> >>
> >>         hw->wiphy->interface_modes =
> >> @@ -714,9 +716,11 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
> >>                 BIT(NL80211_IFTYPE_ADHOC) |
> >>                 BIT(NL80211_IFTYPE_AP) |
> >>                 BIT(NL80211_IFTYPE_P2P_GO) |
> >> -               BIT(NL80211_IFTYPE_P2P_CLIENT);
> >> +               BIT(NL80211_IFTYPE_P2P_CLIENT) |
> >> +               BIT(NL80211_IFTYPE_MESH_POINT);
> >>
> >>         hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
> >> +       hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
> >>
> >>         hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN |
> >
> > Ahem. Antonio added this in:
> > http://comments.gmane.org/gmane.linux.kernel.wireless.general/84066,
> > but that patch also seems to suggest per-STA GTKs are not supported by
> > the HW, so we shouldn't claim support above?
> 
> (Just to let the list know what we just discussed in person...)
> 
> I removed the redundant WIPHY_FLAG_IBSS_RSN and the setting of
> IEEE80211_HW_SUPPORTS_PER_STA_GTK.  We'll retest the series and
> resubmit.
> If anyone interested, the reworked series lives here:
> https://github.com/cozybit/open80211s/tree/ft-ath9k-htc-support
> 

IIRC, per-STA GTK is missing the driver support, so it should not be a HW
constraint. However it is not a problem because group frames are encrypted in
SW.

Cheers,

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20121026/83b62808/attachment.pgp 

WARNING: multiple messages have this Message-ID (diff)
From: Antonio Quartulli <ordex@autistici.org>
To: Javier Cardona <javier@cozybit.com>
Cc: devel@lists.open80211s.org, johannes@sipsolutions.net,
	ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org,
	linville@tuxdriver.com
Subject: Re: [PATCH 1/2] ath9k_htc: Add support for NL80211_IFTYPE_MESH_POINT interfaces
Date: Fri, 26 Oct 2012 17:18:32 +0200	[thread overview]
Message-ID: <20121026151832.GW7023@ritirata.org> (raw)
In-Reply-To: <CAPjQAd9BgoE_sHyWoeUHmsqeOMm+-AwNGvAdV8Gf0NMBg4f9pA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2244 bytes --]

Hello,

On Thu, Oct 25, 2012 at 11:44:19AM -0700, Javier Cardona wrote:
> >> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> >> index d98255e..9c5c63c 100644
> >> --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> >> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> >> @@ -707,6 +707,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
> >>                 IEEE80211_HW_SUPPORTS_PS |
> >>                 IEEE80211_HW_PS_NULLFUNC_STACK |
> >>                 IEEE80211_HW_REPORTS_TX_ACK_STATUS |
> >> +               IEEE80211_HW_SUPPORTS_PER_STA_GTK |
> >> +               IEEE80211_HW_MFP_CAPABLE |
> >>                 IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING;
> >>
> >>         hw->wiphy->interface_modes =
> >> @@ -714,9 +716,11 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
> >>                 BIT(NL80211_IFTYPE_ADHOC) |
> >>                 BIT(NL80211_IFTYPE_AP) |
> >>                 BIT(NL80211_IFTYPE_P2P_GO) |
> >> -               BIT(NL80211_IFTYPE_P2P_CLIENT);
> >> +               BIT(NL80211_IFTYPE_P2P_CLIENT) |
> >> +               BIT(NL80211_IFTYPE_MESH_POINT);
> >>
> >>         hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
> >> +       hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
> >>
> >>         hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN |
> >
> > Ahem. Antonio added this in:
> > http://comments.gmane.org/gmane.linux.kernel.wireless.general/84066,
> > but that patch also seems to suggest per-STA GTKs are not supported by
> > the HW, so we shouldn't claim support above?
> 
> (Just to let the list know what we just discussed in person...)
> 
> I removed the redundant WIPHY_FLAG_IBSS_RSN and the setting of
> IEEE80211_HW_SUPPORTS_PER_STA_GTK.  We'll retest the series and
> resubmit.
> If anyone interested, the reworked series lives here:
> https://github.com/cozybit/open80211s/tree/ft-ath9k-htc-support
> 

IIRC, per-STA GTK is missing the driver support, so it should not be a HW
constraint. However it is not a problem because group frames are encrypted in
SW.

Cheers,

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-10-26 15:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24 19:59 [PATCH v2 0/2] Mesh support for ath9k_htc Javier Cardona
2012-10-24 19:59 ` [PATCH 1/2] ath9k_htc: Add support for NL80211_IFTYPE_MESH_POINT interfaces Javier Cardona
2012-10-24 22:17   ` [ath9k-devel] " Thomas Pedersen
2012-10-24 22:17     ` Thomas Pedersen
2012-10-25 18:44     ` [ath9k-devel] " Javier Cardona
2012-10-25 18:44       ` Javier Cardona
2012-10-26 15:18       ` Antonio Quartulli [this message]
2012-10-26 15:18         ` Antonio Quartulli
2012-10-24 19:59 ` [PATCH 2/2] ath9k_htc: Honor FIF_OTHER_BSS Javier Cardona

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121026151832.GW7023@ritirata.org \
    --to=ordex@autistici.org \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.