]> err.no Git - linux-2.6/commitdiff
[PATCH] libertas: make libertas_wlan_data_rates static
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Fri, 25 May 2007 04:14:38 +0000 (00:14 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2007 18:28:37 +0000 (14:28 -0400)
Move libertas_wlan_data_rates into wext.c and make it static. wext.c is the
only user of this array.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/defs.h
drivers/net/wireless/libertas/main.c
drivers/net/wireless/libertas/wext.c

index 51050cf736b7d3565a39e3e32383a2d7bd9fb2fc..cd95977cf89aaf72c6170385d86fa8f00c09a7b0 100644 (file)
@@ -205,8 +205,6 @@ typedef struct _wlan_adapter wlan_adapter;
 extern const char libertas_driver_version[];
 extern u16 libertas_region_code_to_index[MRVDRV_MAX_REGION_CODE];
 
-extern u8 libertas_wlan_data_rates[WLAN_SUPPORTED_RATES];
-
 extern u8 libertas_supported_rates[G_SUPPORTED_RATES];
 
 extern u8 libertas_adhoc_rates_g[G_SUPPORTED_RATES];
index c407f23401333c38cd12553aeb6e21885d289aac..6bf162a107b0980fe8788c13b9cc4c79d862751d 100644 (file)
@@ -141,14 +141,6 @@ static struct region_cfp_table region_cfp_table[] = {
 /*Add new region here */
 };
 
-/**
- * the rates supported by the card
- */
-u8 libertas_wlan_data_rates[WLAN_SUPPORTED_RATES] =
-    { 0x02, 0x04, 0x0B, 0x16, 0x00, 0x0C, 0x12,
-       0x18, 0x24, 0x30, 0x48, 0x60, 0x6C, 0x00
-};
-
 /**
  * the rates supported
  */
index 69f52b6e59c865d58a7583d6521d00c370e56a7a..408bc0aa9567425a2e293c8eaa8603b72c7bf310 100644 (file)
 #include "assoc.h"
 
 
+/**
+ * the rates supported by the card
+ */
+static u8 libertas_wlan_data_rates[WLAN_SUPPORTED_RATES] =
+    { 0x02, 0x04, 0x0B, 0x16, 0x00, 0x0C, 0x12,
+      0x18, 0x24, 0x30, 0x48, 0x60, 0x6C, 0x00
+};
+
 /**
  *  @brief Convert mw value to dbm value
  *