Replace custom #define WLAN_MAX_SSID_LENGTH with IW_ESSID_MAX_SIZE

Dan Williams dcbw at localhost.unroutablelocaldomain
Fri Nov 10 21:24:36 EST 2006


Commit:     0dcc4998dc8d50b5edc409a0f31a5fc8c5e9f2e1
Parent:     88ffd1af6ceedb45731a94769b588b4b501d2d31
commit 0dcc4998dc8d50b5edc409a0f31a5fc8c5e9f2e1
Author:     Dan Williams <dcbw at localhost.localdomain>
AuthorDate: Fri Nov 10 09:50:12 2006 -0500
Commit:     Dan Williams <dcbw at localhost.localdomain>
CommitDate: Fri Nov 10 09:50:12 2006 -0500

    Replace custom #define WLAN_MAX_SSID_LENGTH with IW_ESSID_MAX_SIZE
---
 drivers/net/wireless/libertas/hostcmd.h   |    3 ++-
 drivers/net/wireless/libertas/wlan_defs.h |    1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/libertas/hostcmd.h b/drivers/net/wireless/libertas/hostcmd.h
index d3c9206..118027b 100644
--- a/drivers/net/wireless/libertas/hostcmd.h
+++ b/drivers/net/wireless/libertas/hostcmd.h
@@ -34,6 +34,7 @@ Change log:
 #ifndef __HOSTCMD__H
 #define __HOSTCMD__H
 
+#include <linux/wireless.h>
 #include "wlan_11d.h"
 #include "wlan_types.h"
 
@@ -199,7 +200,7 @@ struct WLAN_802_11_SSID {
 	u32 SsidLength;
 
 	/* SSID information field */
-	u8 Ssid[WLAN_MAX_SSID_LENGTH];
+	u8 Ssid[IW_ESSID_MAX_SIZE];
 };
 
 struct WPA_SUPPLICANT {
diff --git a/drivers/net/wireless/libertas/wlan_defs.h b/drivers/net/wireless/libertas/wlan_defs.h
index f192191..ba85c82 100644
--- a/drivers/net/wireless/libertas/wlan_defs.h
+++ b/drivers/net/wireless/libertas/wlan_defs.h
@@ -341,7 +341,6 @@ #define B_SUPPORTED_RATES		8
 #define G_SUPPORTED_RATES		14
 
 #define	WLAN_SUPPORTED_RATES		14
-#define WLAN_MAX_SSID_LENGTH		32
 
 #define	MAX_LEDS			8
 


More information about the Commits-kernel mailing list