Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Andrey Yurovsky <andrey@cozybit.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211_hwsim: enable Mesh Point operation
Date: Sat, 01 Nov 2008 09:02:58 +0100	[thread overview]
Message-ID: <1225526578.3550.8.camel@johannes.berg> (raw)
In-Reply-To: <490bf5e7.2a528c0a.3951.19a9@mx.google.com> (sfid-20081101_072403_704359_64603084)

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

On Fri, 2008-10-31 at 23:23 -0700, Andrey Yurovsky wrote:
> Initial mesh support: add Mesh Point to supported interfaces mask and allow 
> hwsim to send beacons in mesh mode.

That'll do AP beacons, right? And it won't really help because all
virtual stations see each other?

> Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
> index 430d8b1..34f643f 100644
> --- a/drivers/net/wireless/mac80211_hwsim.c
> +++ b/drivers/net/wireless/mac80211_hwsim.c
> @@ -370,7 +370,8 @@ static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac,
>  
>  	hwsim_check_magic(vif);
>  
> -	if (vif->type != NL80211_IFTYPE_AP)
> +	if (vif->type != NL80211_IFTYPE_AP && vif->type !=
> +			NL80211_IFTYPE_MESH_POINT)
>  		return;

I think I'd prefer if you'd write it as

if (vif->type != NL80211... &&
    vif->type != NL80211....)
	return;

but ultimately, I don't think it matters much. That above just looks a
little quirky, at least to me. :)

>  
>  	skb = ieee80211_beacon_get(hw, vif);
> @@ -777,7 +778,8 @@ static int __init init_mac80211_hwsim(void)
>  		hw->queues = 4;
>  		hw->wiphy->interface_modes =
>  			BIT(NL80211_IFTYPE_STATION) |
> -			BIT(NL80211_IFTYPE_AP);
> +			BIT(NL80211_IFTYPE_AP) |
> +			BIT(NL80211_IFTYPE_MESH_POINT);
>  		hw->ampdu_queues = 1;
>  
>  		/* ask mac80211 to reserve space for magic */
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2008-11-01  8:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-01  6:23 [PATCH] mac80211_hwsim: enable Mesh Point operation Andrey Yurovsky
2008-11-01  8:02 ` Johannes Berg [this message]

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=1225526578.3550.8.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=andrey@cozybit.com \
    --cc=linux-wireless@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox