linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bing Zhao <bzhao@marvell.com>
To: linux-wireless@vger.kernel.org
Cc: "John W. Linville" <linville@tuxdriver.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Amitkumar Karwar <akarwar@marvell.com>,
	Kiran Divekar <dkiran@marvell.com>,
	Yogesh Powar <yogeshp@marvell.com>,
	Marc Yang <yangyang@marvell.com>,
	Frank Huang <frankh@marvell.com>, Bing Zhao <bzhao@marvell.com>
Subject: [PATCH 4/4] mwifiex: remove unused macros
Date: Thu, 10 Mar 2011 16:25:49 -0800	[thread overview]
Message-ID: <1299803149-25996-4-git-send-email-bzhao@marvell.com> (raw)
In-Reply-To: <1299803149-25996-1-git-send-email-bzhao@marvell.com>

MWIFIEX_MIN_SSID_LENGTH is never used.
MWIFIEX_MAX_SSID_LENGTH can be replaced by
IEEE80211_MAX_SSID_LEN

Signed-off-by: Bing Zhao <bzhao@marvell.com>
---
 drivers/net/wireless/mwifiex/debugfs.c |    2 +-
 drivers/net/wireless/mwifiex/main.h    |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/mwifiex/debugfs.c b/drivers/net/wireless/mwifiex/debugfs.c
index 6207f6b..eec43b3 100644
--- a/drivers/net/wireless/mwifiex/debugfs.c
+++ b/drivers/net/wireless/mwifiex/debugfs.c
@@ -1949,7 +1949,7 @@ mwifiex_passphrase_write(struct file *file,
 			ret = -EINVAL;
 			break;
 		} else if (!strnicmp(opt, "ssid", strlen(opt))) {
-			if (strlen(end) > MWIFIEX_MAX_SSID_LENGTH) {
+			if (strlen(end) > IEEE80211_MAX_SSID_LEN) {
 				dev_err(priv->adapter->dev, "SSID length "
 						"exceeds max length\n");
 				ret = -EFAULT;
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index f85f2ea..79cf048 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -132,10 +132,6 @@ struct mwifiex_drv_mode {
 
 #define MAX_BITMAP_RATES_SIZE			10
 
-#define MWIFIEX_MAX_SSID_LENGTH					32
-
-#define MWIFIEX_MIN_SSID_LENGTH					1
-
 #define MAX_CHANNEL_BAND_BG     14
 
 #define MAX_FREQUENCY_BAND_BG   2484
-- 
1.7.0.2


      parent reply	other threads:[~2011-03-11  0:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  0:25 [PATCH 1/4] mwifiex: remove unnecessory external function declarations Bing Zhao
2011-03-11  0:25 ` [PATCH 2/4] mwifiex: use dynamic allocation for large size structure Bing Zhao
2011-03-11  0:25 ` [PATCH 3/4] mwifiex: remove ieee.h Bing Zhao
2011-03-11  0:25 ` Bing Zhao [this message]

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=1299803149-25996-4-git-send-email-bzhao@marvell.com \
    --to=bzhao@marvell.com \
    --cc=akarwar@marvell.com \
    --cc=dkiran@marvell.com \
    --cc=frankh@marvell.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=yangyang@marvell.com \
    --cc=yogeshp@marvell.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;
as well as URLs for NNTP newsgroup(s).