From: Pavel Roskin <proski@gnu.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [RFC] ath9k_htc: Add support for NL80211_IFTYPE_MESH_POINT interfaces
Date: Tue, 07 Jun 2011 12:43:22 -0400 [thread overview]
Message-ID: <4DEE552A.50307@gnu.org> (raw)
In-Reply-To: <1307408139-24489-1-git-send-email-javier@cozybit.com>
Hello!
You may want to copy to linux-wireless as well. You'll get more
eyeballs looking at your code.
On 06/06/2011 08:55 PM, Javier Cardona wrote:
> More specifically, enable AP-style beaconing on mesh ifaces, honor
> FIF_OTHER_BSS filter and change the hw capabilities to reflect mesh
> support.
>
> Tested on two TP-Link TL-WN821N and with this patch we could establish peer
> links and ping.
...
> + case NL80211_IFTYPE_MESH_POINT:
> + /* 802.11s defines a different beaconing method for mesh points
> + * that closely resembles AP-style beaconing. Until that is
> + * implemented, just use AP-style beaconing for mesh points. */
> + /* Fall through */
> case NL80211_IFTYPE_AP:
> ath9k_htc_beacon_config_ap(priv, cur_conf);
Is it fundamentally impossible for AP and mesh VIFs to coexist? If it's
possible, you may want to use NL80211_IFTYPE_AP even if there is a mesh
VIF and use num_ap_vif and num_mbss_vif to code needed for AP and mesh
respectively.
Having distinct global opmodes would stand in the way if AP and mesh
coexistence is to be implemented.
By the way, we may want to use distinctive names for the common opmodes
to avoid confusion with the VIF modes.
> + if (priv->num_mbss_vif ||
> + (priv->nvifs&& vif->type == NL80211_IFTYPE_MESH_POINT)) {
> + ath_err(common, "Mesh BSS coexistence with other modes is not allowed\n");
> + mutex_unlock(&priv->mutex);
> + return -ENOBUFS;
> + }
This code appears to allow only one mesh interface. Is that your
intention? I think you just copied the code from Ad-Hoc without
realizing what it does.
> + if (priv->rxfilter& FIF_OTHER_BSS)
> + rfilt |= ATH9K_RX_FILTER_MCAST_BCAST_ALL;
I think this could be a separate patch. It may have effect beyond mesh
support.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2011-06-07 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 0:55 [ath9k-devel] [RFC] ath9k_htc: Add support for NL80211_IFTYPE_MESH_POINT interfaces Javier Cardona
2011-06-07 16:43 ` Pavel Roskin [this message]
2011-06-10 18:22 ` Javier Cardona
-- strict thread matches above, loose matches on Subject: below --
2011-11-29 0:40 Thomas Pedersen
2011-12-07 21:00 ` [ath9k-devel] " Thomas Pedersen
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=4DEE552A.50307@gnu.org \
--to=proski@gnu.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.