staging: wlags49_h2: Enable WPA in the HCF
authorDavid Kilroy <kilroyd@googlemail.com>
Sun, 9 Oct 2011 11:11:32 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Oct 2011 22:22:36 +0000 (15:22 -0700)
WPA has been disabled in the HCF layer. The firmware does
support it (it is used on other platforms). Enable it so
we can work through the issues.

Note that we also enable this for the HERMES 2.5 non-WARP
firmware cards.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/Makefile
drivers/staging/wlags49_h2/hcfcfg.h
drivers/staging/wlags49_h25/Makefile

index e604ebd5aeb554129956246af1be3f6ec870609e..c7220c61096169004c686d11aaf6eb14c54a54c7 100644 (file)
@@ -15,7 +15,6 @@ INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless
 ccflags-y := -I$(KERNELDIR)/include
 ccflags-y += -I$(src) \
                -DBUS_PCMCIA \
-               -DUSE_WPA \
                -DUSE_WEXT \
                -DSTA_ONLY \
                -DWVLAN_49 \
index 825550e1b9e851ab311ac65e538485fa5cc6adeb..7545bc554112730c80944356a6781a4cc8576e79 100644 (file)
@@ -316,16 +316,25 @@ typedef unsigned long                     hcf_32;
 //#define HCF_SLEEP (HCF_CDS | HCF_DDS )
 #define HCF_SLEEP (HCF_CDS)
 
-//#define HCF_TYPE    (HCF_TYPE_HII5|HCF_TYPE_STA|HCF_TYPE_AP)
+/* Note: Non-WARP firmware all support WPA. However the original Agere
+ * linux driver does not enable WPA. Enabling WPA here causes whatever
+ * preliminary WPA logic to be included, some of which may be specific
+ * to HERMESI.
+ *
+ * Various comment are clear that WARP and WPA are not compatible
+ * (which may just mean WARP does WPA in a different fashion).
+ */
+
+/* #define HCF_TYPE    (HCF_TYPE_HII5|HCF_TYPE_STA|HCF_TYPE_AP) */
 #ifdef HERMES25
 #ifdef WARP
 #define HCF_TYPE    ( HCF_TYPE_WARP | HCF_TYPE_HII5 )
 #else
-#define HCF_TYPE    HCF_TYPE_HII5
-#endif // WARP
+#define HCF_TYPE    (HCF_TYPE_HII5 | HCF_TYPE_WPA)
+#endif /* WARP */
 #else
-#define HCF_TYPE    HCF_TYPE_NONE
-#endif // HERMES25
+#define HCF_TYPE    HCF_TYPE_WPA
+#endif /* HERMES25 */
 
 #ifdef ENABLE_DMA
 #define HCF_DMA                1
index 7d4b5632c94a2d3efdaf82833ddd347c7e066d81..fe82929961088d00e099ee0dfde5d95c423d0b2c 100644 (file)
@@ -15,7 +15,6 @@ INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless
 ccflags-y := -I$(KERNELDIR)/include
 ccflags-y += -I$(src) \
                -DBUS_PCMCIA \
-               -DUSE_WPA \
                -DUSE_WEXT \
                -DSTA_ONLY \
                -DWVLAN_49 \