ath5k: qualify global modparam_nohwcrypt variable
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Jan 2011 14:39:59 +0000 (09:39 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Jan 2011 19:36:27 +0000 (14:36 -0500)
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/mac80211-ops.c

index fce9a987789c0ee6e906199f09424a408ae37726..019a74d533a6e88caaa1cf26078ffd5e57d06159 100644 (file)
@@ -61,8 +61,8 @@
 #include "debug.h"
 #include "ani.h"
 
-int modparam_nohwcrypt;
-module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
+int ath5k_modparam_nohwcrypt;
+module_param_named(nohwcrypt, ath5k_modparam_nohwcrypt, bool, S_IRUGO);
 MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
 
 static int modparam_all_channels;
index de257a3430be5cfbeb25cf8b2d0103a15bd2696c..d76d68c99f7204b1daae1f1fb8f8bcc68547d61e 100644 (file)
@@ -46,7 +46,7 @@
 #include "base.h"
 #include "reg.h"
 
-extern int modparam_nohwcrypt;
+extern int ath5k_modparam_nohwcrypt;
 
 /* functions used from base.c */
 void set_beacon_filter(struct ieee80211_hw *hw, bool enable);
@@ -485,7 +485,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
        struct ath_common *common = ath5k_hw_common(ah);
        int ret = 0;
 
-       if (modparam_nohwcrypt)
+       if (ath5k_modparam_nohwcrypt)
                return -EOPNOTSUPP;
 
        switch (key->cipher) {