Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Cc: linux-wireless@vger.kernel.org, javier@cozybit.com,
	linville@tuxdriver.com, devel@lists.open80211s.org
Subject: Re: [PATCH v2 2/4] mac80211: implement the proactive PREQ generation
Date: Sat, 09 Jun 2012 10:45:15 +0200	[thread overview]
Message-ID: <1339231515.4539.30.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1339043963-2043-3-git-send-email-yeohchunyeow@gmail.com> (sfid-20120607_063951_474534_792C09FB)

On Thu, 2012-06-07 at 12:39 +0800, Chun-Yeow Yeoh wrote:

> + * @IEEE80211_NO_ROOT: the mesh STA is not a root mesh STA (default)
> + * @IEEE80211_PROACTIVE_PREQ_NO_PREP: the mesh STA is a root mesh STA
> + * supports the proactive PREQ with proactive PREP subfield set to 0

please indent to make it readable

>  	mesh_path_tx_root_frame(sdata);
> +	interval = (ifmsh->mshcfg.dot11MeshHWMPRootMode ==
> +	    IEEE80211_PROACTIVE_RANN) ? ifmsh->mshcfg.dot11MeshHWMPRannInterval
> +	    : ifmsh->mshcfg.dot11MeshHWMProotInterval;

that's a horrible way to write this, I suppose an if statement could
actually be readable :-)

> +++ b/net/mac80211/mesh_hwmp.c
> @@ -33,9 +33,11 @@
>  /* Reply and forward */
>  #define MP_F_RF	0x2
>  /* Unknown Sequence Number */
> -#define MP_F_USN    0x01
> +#define MP_F_USN    0x04
>  /* Reason code Present */
>  #define MP_F_RCODE  0x02
> +/* Proactive PREQ with PREP */
> +#define PREQ_F_PREP 0x04

Should all of this really be here rather than in ieee80211.h?

johannes


  reply	other threads:[~2012-06-09  8:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07  4:39 [PATCH v2 0/4] Support proactive PREQ mechanism in Mesh Chun-Yeow Yeoh
2012-06-07  4:39 ` [PATCH v2 1/4] {nl,cfg,mac}80211: implement dot11MeshHWMProotInterval and dot11MeshHWMPactivePathToRootTimeout Chun-Yeow Yeoh
2012-06-09  8:40   ` Johannes Berg
2012-06-09  8:41   ` Johannes Berg
2012-06-09  8:43   ` Johannes Berg
2012-06-07  4:39 ` [PATCH v2 2/4] mac80211: implement the proactive PREQ generation Chun-Yeow Yeoh
2012-06-09  8:45   ` Johannes Berg [this message]
2012-06-07  4:39 ` [PATCH v2 3/4] mac80211: implement the proactive PREP generation Chun-Yeow Yeoh
2012-06-09  8:46   ` Johannes Berg
2012-06-07  4:39 ` [PATCH v2 4/4] mac80211: invoke the timer only with correct dot11MeshHWMPRootMode value Chun-Yeow Yeoh
2012-06-09  8:46   ` Johannes Berg
2012-06-09 16:11     ` Yeoh Chun-Yeow
2012-06-11  7:24       ` Johannes Berg

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=1339231515.4539.30.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=devel@lists.open80211s.org \
    --cc=javier@cozybit.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=yeohchunyeow@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox