From: Johannes Berg <johannes@sipsolutions.net>
To: Tomas Winkler <tomas.winkler@intel.com>
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 10:41:13 +0200 [thread overview]
Message-ID: <1213605673.3803.22.camel@johannes.berg> (raw)
In-Reply-To: <1213543410-30890-2-git-send-email-tomas.winkler@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
> 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"?
> + 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?
> +/* 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?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2008-06-16 8:42 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 [this message]
2008-06-16 9:08 ` Tomas Winkler
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=1213605673.3803.22.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=assaf.krauss@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=tomas.winkler@intel.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