Search Linux Wireless

[PATCH 4/4] mwifiex: remove unused macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux