Staging: fix assorted typos all over the place
[safe/jmp/linux-2.6] / drivers / staging / rtl8192su / ieee80211 / ieee80211_module.c
index b85ffa0..e8c67d5 100644 (file)
@@ -156,7 +156,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
        ieee->privacy_invoked = 0;
        ieee->ieee802_1x = 1;
        ieee->raw_tx = 0;
-       //ieee->hwsec_support = 1; //defalt support hw security. //use module_param instead.
+       //ieee->hwsec_support = 1; //default support hw security. //use module_param instead.
        ieee->hwsec_active = 0; //disable hwsec, switch it on when necessary.
 
        ieee80211_softmac_init(ieee);
@@ -170,9 +170,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
        HTUpdateDefaultSetting(ieee);
        HTInitializeHTInfo(ieee); //may move to other place.
        TSInitialize(ieee);
-#if 0
-       INIT_WORK(&ieee->ht_onAssRsp, (void(*)(void*)) HTOnAssocRsp_wq);
-#endif
+
        for (i = 0; i < IEEE_IBSS_MAC_HASH_SIZE; i++)
                INIT_LIST_HEAD(&ieee->ibss_mac_hash[i]);
 
@@ -218,25 +216,14 @@ void free_ieee80211(struct net_device *dev)
        for (i = 0; i < WEP_KEYS; i++) {
                struct ieee80211_crypt_data *crypt = ieee->crypt[i];
                if (crypt) {
-                       if (crypt->ops) {
+                       if (crypt->ops)
                                crypt->ops->deinit(crypt->priv);
-                               module_put(crypt->ops->owner);
-                       }
                        kfree(crypt);
                        ieee->crypt[i] = NULL;
                }
        }
 
        ieee80211_networks_free(ieee);
-#if 0
-       for (i = 0; i < IEEE_IBSS_MAC_HASH_SIZE; i++) {
-               list_for_each_safe(p, q, &ieee->ibss_mac_hash[i]) {
-                       kfree(list_entry(p, struct ieee_ibss_seq, list));
-                       list_del(p);
-               }
-       }
-
-#endif
        free_netdev(dev);
 }
 
@@ -275,7 +262,7 @@ static int store_debug_level(struct file *file, const char *buffer,
                             unsigned long count, void *data)
 {
        char buf[] = "0x00000000";
-       unsigned long len = min(sizeof(buf) - 1, (u32)count);
+       unsigned long len = min(sizeof(buf) - 1, count);
        char *p = (char *)buf;
        unsigned long val;
 
@@ -298,7 +285,7 @@ static int store_debug_level(struct file *file, const char *buffer,
        return strnlen(buf, count);
 }
 
-static int __init ieee80211_init(void)
+int __init ieee80211_debug_init(void)
 {
        struct proc_dir_entry *e;
 
@@ -324,7 +311,7 @@ static int __init ieee80211_init(void)
        return 0;
 }
 
-static void __exit ieee80211_exit(void)
+void __exit ieee80211_debug_exit(void)
 {
        if (ieee80211_proc) {
                remove_proc_entry("debug_level", ieee80211_proc);
@@ -336,11 +323,4 @@ static void __exit ieee80211_exit(void)
 #include <linux/moduleparam.h>
 module_param(debug, int, 0444);
 MODULE_PARM_DESC(debug, "debug output mask");
-
-
-module_exit(ieee80211_exit);
-module_init(ieee80211_init);
 #endif
-
-EXPORT_SYMBOL(alloc_ieee80211);
-EXPORT_SYMBOL(free_ieee80211);