From: Greg KH <gregkh@suse.de>
To: Kalle Valo <kvalo@adurom.com>
Cc: devel@linuxdriverproject.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2] ath6kl: iw dev wlan0 link implementation
Date: Tue, 10 May 2011 19:23:09 -0700 [thread overview]
Message-ID: <20110511022309.GA8427@suse.de> (raw)
In-Reply-To: <20110511020257.1752.97603.stgit@localhost6.localdomain6>
On Wed, May 11, 2011 at 05:02:57AM +0300, Kalle Valo wrote:
> From: Naveen Singh <nsingh@atheros.com>
>
> implementing the cfg ops that gets called when iw dev wlan0
> link is issued by user. The ops that needs to be implemented
> is get_station.
>
> kvalo: check the mac address, remove signal_pending() and fix style issues
>
> Signed-off-by: Naveen Singh <nsingh@atheros.com>
> Signed-off-by: Kalle Valo <kalle.valo@atheros.com>
> ---
> drivers/staging/ath6kl/os/linux/cfg80211.c | 128 ++++++++++++++++++++++++++++
> 1 files changed, 128 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/staging/ath6kl/os/linux/cfg80211.c b/drivers/staging/ath6kl/os/linux/cfg80211.c
> index efd4ae5..3a89e33 100644
> --- a/drivers/staging/ath6kl/os/linux/cfg80211.c
> +++ b/drivers/staging/ath6kl/os/linux/cfg80211.c
> @@ -1460,6 +1460,133 @@ u32 cipher_suites[] = {
> WLAN_CIPHER_SUITE_CCMP,
> };
>
> +bool is_rate_legacy(s32 rate)
> +{
> + static const s32 legacy[] = { 1000, 2000, 5500, 11000,
> + 6000, 9000, 12000, 18000, 24000,
> + 36000, 48000, 54000 };
> + u8 i;
> +
> + for (i = 0; i < 12; i++) {
Please use ARRAY_SIZE for this, and your other loop variables to ensure
that you got it right.
thanks,
greg k-h
next prev parent reply other threads:[~2011-05-11 2:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-11 2:02 [PATCH v2] ath6kl: iw dev wlan0 link implementation Kalle Valo
2011-05-11 2:23 ` Greg KH [this message]
2011-05-11 2:38 ` Kalle Valo
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=20110511022309.GA8427@suse.de \
--to=gregkh@suse.de \
--cc=devel@linuxdriverproject.org \
--cc=kvalo@adurom.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;
as well as URLs for NNTP newsgroup(s).