All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Thomas Pedersen <thomas@cozybit.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com
Subject: Re: [PATCH 1/6] mac80211: fix mesh beacon format
Date: Mon, 08 Aug 2011 15:21:30 +0200	[thread overview]
Message-ID: <1312809690.4372.31.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1311638357-28740-2-git-send-email-thomas@cozybit.com> (sfid-20110726_020028_218245_4C8AE607)

On Mon, 2011-07-25 at 16:59 -0700, Thomas Pedersen wrote:

> -void mesh_mgmt_ies_add(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata)
> +inline int
> +mesh_add_meshconf_ie(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata)

Please don't manually mark any functions as inline -- the compiler will
do it for you where it makes sense.

> +++ b/net/mac80211/mesh.h
> @@ -199,6 +199,20 @@ bool mesh_matches_local(struct ieee802_11_elems *ie,
>  void mesh_ids_set_default(struct ieee80211_if_mesh *mesh);
>  void mesh_mgmt_ies_add(struct sk_buff *skb,
>  		struct ieee80211_sub_if_data *sdata);
> +inline int mesh_add_meshconf_ie(struct sk_buff *skb,
> +				struct ieee80211_sub_if_data *sdata);

Except it can't even do it... are you confused about how inline works?


> -		mgmt->u.beacon.capab_info = 0x0; /* 0x0 for MPs */
> +		mgmt->u.beacon.capab_info |= sdata->u.mesh.security
> +					     ? WLAN_CAPABILITY_PRIVACY
> +					     : 0;

Not really important, but it'd probably look better to write as
		mgmt->u.beacon.capa_info |=
			mesh.security ? ... : 0;
 
since then the ternary might fit on one line.

johannes


  reply	other threads:[~2011-08-08 13:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-25 23:59 [PATCH 0/6] update mesh frame formats Thomas Pedersen
2011-07-25 23:59 ` [PATCH 1/6] mac80211: fix mesh beacon format Thomas Pedersen
2011-08-08 13:21   ` Johannes Berg [this message]
2011-07-25 23:59 ` [PATCH 2/6] ieee80211: introduce Self Protected Action codes Thomas Pedersen
2011-07-25 23:59 ` [PATCH 3/6] mac80211: update mesh peering frame codes Thomas Pedersen
2011-07-25 23:59 ` [PATCH 4/6] mac80211: update mesh peering frame format Thomas Pedersen
2011-08-08 13:24   ` Johannes Berg
2011-08-08 18:47     ` Thomas Pedersen
2011-08-08 19:10       ` Johannes Berg
2011-08-08 19:15         ` Thomas Pedersen
2011-07-25 23:59 ` [PATCH 5/6] ieee80211: add mesh action codes Thomas Pedersen
2011-07-25 23:59 ` [PATCH 6/6] mac80211: update mesh path selection frame format Thomas Pedersen
2011-07-29  0:37 ` [PATCH v2] " Thomas Pedersen
  -- strict thread matches above, loose matches on Subject: below --
2011-08-09 19:50 [PATCH 0/6] mac80211: mesh frame formats Thomas Pedersen
2011-08-09 19:50 ` [PATCH 1/6] mac80211: fix mesh beacon format Thomas Pedersen
2011-08-10 13:37   ` Johannes Berg
2011-08-10 18:20     ` 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=1312809690.4372.31.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=thomas@cozybit.com \
    /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.