Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Tomas Winkler" <tomasw@gmail.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: linville@tuxdriver.com, yi.zhu@intel.com,
	linux-wireless@vger.kernel.org,
	"Assaf Krauss" <assaf.krauss@intel.com>
Subject: Re: [PATCH 2/2] mac80211: 11h - Handling measurement request
Date: Mon, 16 Jun 2008 12:08:26 +0300	[thread overview]
Message-ID: <1ba2fa240806160208l2926eeefh7f9eaf4f54d6c25c@mail.gmail.com> (raw)
In-Reply-To: <1213605673.3803.22.camel@johannes.berg>

On Mon, Jun 16, 2008 at 11:41 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
>
>> This patch handles the 11h measurement request information element.
>> This is minimal requested implementation - refuse measurement.
>
> I haven't really read 11h or the -2007 wrt. the added material, but this
> seems a bit odd to me:
>
>> +static void ieee80211_send_measurement_req(struct net_device *dev,
>> +                             struct ieee80211_msrment_ie *request_ie,
>> +                             const u8 *da, const u8 *bssid,
>> +                             u8 dialog_token)
>
>> +     msr_report->u.action.u.measurement.element_id = WLAN_EID_MEASURE_REPORT;
>
> It's sending a report after all, not a request. Maybe it should just be
> named "send_measurement_action"?

Will do.

>
>> +     msr_report->u.action.u.measurement.msr_elem.token = request_ie->token;
>> +     msr_report->u.action.u.measurement.msr_elem.mode |= MSR_REPORT_REFUSED;
>
> Also, it seems to me that should be part of the arguments or you won't
> be able to use this function for anything else but sending a 'refused'
> report?

Don't mind to put it into arguments, just the argument list have to be alter
anyway if real measurement is performed and results need to be sent out.
 Currently no plans to implement  more then necessary minimum to
comply with the spec.


>
>> +/* measurement report mode field - refuse to generate a report */
>> +#define MSR_REPORT_REFUSED       BIT(2)
>
> That seems completely misplaced in sta_info.h to me?

Yep will move it to
include/linux/ieee80211.h ?

Thanks
Tomas

  reply	other threads:[~2008-06-16  9:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15 15:23 [PATCH 1/2] mac80211: 11h Infrastructure - Parsing Tomas Winkler
2008-06-15 15:23 ` [PATCH 2/2] mac80211: 11h - Handling measurement request Tomas Winkler
2008-06-16  8:41   ` Johannes Berg
2008-06-16  9:08     ` Tomas Winkler [this message]
2008-06-16  9:11       ` 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=1ba2fa240806160208l2926eeefh7f9eaf4f54d6c25c@mail.gmail.com \
    --to=tomasw@gmail.com \
    --cc=assaf.krauss@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=yi.zhu@intel.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