aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlags49_h2/hcfcfg.h
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2011-10-09 12:11:32 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-17 15:22:36 -0700
commitadd54e5c8ac3a11b4fabe34fcea6c62d6b22a006 (patch)
treee8fea004080eee8bd1a5e44cc7a90bb8a6775e66 /drivers/staging/wlags49_h2/hcfcfg.h
parentstaging: wlags49_h2: Handle sysfs_create_group return correctly (diff)
downloadlinux-dev-add54e5c8ac3a11b4fabe34fcea6c62d6b22a006.tar.xz
linux-dev-add54e5c8ac3a11b4fabe34fcea6c62d6b22a006.zip
staging: wlags49_h2: Enable WPA in the HCF
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>
Diffstat (limited to 'drivers/staging/wlags49_h2/hcfcfg.h')
-rw-r--r--drivers/staging/wlags49_h2/hcfcfg.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/staging/wlags49_h2/hcfcfg.h b/drivers/staging/wlags49_h2/hcfcfg.h
index 825550e1b9e8..7545bc554112 100644
--- a/drivers/staging/wlags49_h2/hcfcfg.h
+++ b/drivers/staging/wlags49_h2/hcfcfg.h
@@ -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