| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2002-2005, Instant802 Networks, Inc. | 2  * Copyright 2002-2005, Instant802 Networks, Inc. | 
| 3  * Copyright 2005-2006, Devicescape Software, Inc. | 3  * Copyright 2005-2006, Devicescape Software, Inc. | 
| 4  * Copyright 2006-2007  Jiri Benc <jbenc@suse.cz> | 4  * Copyright 2006-2007  Jiri Benc <jbenc@suse.cz> | 
| 5  * | 5  * | 
| 6  * This program is free software; you can redistribute it and/or modify | 6  * This program is free software; you can redistribute it and/or modify | 
| 7  * it under the terms of the GNU General Public License version 2 as | 7  * it under the terms of the GNU General Public License version 2 as | 
| 8  * published by the Free Software Foundation. | 8  * published by the Free Software Foundation. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 33 #include "led.h" | 33 #include "led.h" | 
| 34 #include "cfg.h" | 34 #include "cfg.h" | 
| 35 #include "debugfs.h" | 35 #include "debugfs.h" | 
| 36 | 36 | 
| 37 | 37 | 
| 38 bool ieee80211_disable_40mhz_24ghz; | 38 bool ieee80211_disable_40mhz_24ghz; | 
| 39 module_param(ieee80211_disable_40mhz_24ghz, bool, 0644); | 39 module_param(ieee80211_disable_40mhz_24ghz, bool, 0644); | 
| 40 MODULE_PARM_DESC(ieee80211_disable_40mhz_24ghz, | 40 MODULE_PARM_DESC(ieee80211_disable_40mhz_24ghz, | 
| 41                  "Disable 40MHz support in the 2.4GHz band"); | 41                  "Disable 40MHz support in the 2.4GHz band"); | 
| 42 | 42 | 
|  | 43 #ifdef CONFIG_MAC80211_DEBUGFS | 
|  | 44 static bool ieee80211_default_disable_rx_ba = 0; | 
|  | 45 module_param(ieee80211_default_disable_rx_ba, bool, 0644); | 
|  | 46 MODULE_PARM_DESC(ieee80211_default_disable_rx_ba, | 
|  | 47                  "Disable received HT aggregation requests by default"); | 
|  | 48 | 
|  | 49 static bool ieee80211_default_disable_tx_ba = 0; | 
|  | 50 module_param(ieee80211_default_disable_tx_ba, bool, 0644); | 
|  | 51 MODULE_PARM_DESC(ieee80211_default_disable_tx_ba, | 
|  | 52                  "Disable transmitted HT aggregation requests by default"); | 
|  | 53 #endif | 
|  | 54 | 
| 43 void ieee80211_configure_filter(struct ieee80211_local *local) | 55 void ieee80211_configure_filter(struct ieee80211_local *local) | 
| 44 { | 56 { | 
| 45         u64 mc; | 57         u64 mc; | 
| 46         unsigned int changed_flags; | 58         unsigned int changed_flags; | 
| 47         unsigned int new_flags = 0; | 59         unsigned int new_flags = 0; | 
| 48 | 60 | 
| 49         if (atomic_read(&local->iff_promiscs)) | 61         if (atomic_read(&local->iff_promiscs)) | 
| 50                 new_flags |= FIF_PROMISC_IN_BSS; | 62                 new_flags |= FIF_PROMISC_IN_BSS; | 
| 51 | 63 | 
| 52         if (atomic_read(&local->iff_allmultis)) | 64         if (atomic_read(&local->iff_allmultis)) | 
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 382 | 394 | 
| 383         /* set up some defaults */ | 395         /* set up some defaults */ | 
| 384         local->hw.queues = 1; | 396         local->hw.queues = 1; | 
| 385         local->hw.max_rates = 1; | 397         local->hw.max_rates = 1; | 
| 386         local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; | 398         local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; | 
| 387         local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; | 399         local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; | 
| 388         local->user_power_level = -1; | 400         local->user_power_level = -1; | 
| 389         local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES; | 401         local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES; | 
| 390         local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; | 402         local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; | 
| 391 | 403 | 
|  | 404 #ifdef CONFIG_MAC80211_DEBUGFS | 
|  | 405         local->debug_disable_rx_ba = ieee80211_default_disable_rx_ba; | 
|  | 406         local->debug_disable_tx_ba = ieee80211_default_disable_tx_ba; | 
|  | 407 #endif | 
|  | 408 | 
| 392         INIT_LIST_HEAD(&local->interfaces); | 409         INIT_LIST_HEAD(&local->interfaces); | 
| 393         mutex_init(&local->iflist_mtx); | 410         mutex_init(&local->iflist_mtx); | 
| 394         mutex_init(&local->scan_mtx); | 411         mutex_init(&local->scan_mtx); | 
| 395 | 412 | 
| 396         spin_lock_init(&local->key_lock); | 413         spin_lock_init(&local->key_lock); | 
| 397         spin_lock_init(&local->filter_lock); | 414         spin_lock_init(&local->filter_lock); | 
| 398         spin_lock_init(&local->queue_stop_reason_lock); | 415         spin_lock_init(&local->queue_stop_reason_lock); | 
| 399 | 416 | 
| 400         INIT_DELAYED_WORK(&local->scan_work, ieee80211_scan_work); | 417         INIT_DELAYED_WORK(&local->scan_work, ieee80211_scan_work); | 
| 401 | 418 | 
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 747 | 764 | 
| 748         ieee80211_iface_exit(); | 765         ieee80211_iface_exit(); | 
| 749 } | 766 } | 
| 750 | 767 | 
| 751 | 768 | 
| 752 subsys_initcall(ieee80211_init); | 769 subsys_initcall(ieee80211_init); | 
| 753 module_exit(ieee80211_exit); | 770 module_exit(ieee80211_exit); | 
| 754 | 771 | 
| 755 MODULE_DESCRIPTION("IEEE 802.11 subsystem"); | 772 MODULE_DESCRIPTION("IEEE 802.11 subsystem"); | 
| 756 MODULE_LICENSE("GPL"); | 773 MODULE_LICENSE("GPL"); | 
| OLD | NEW | 
|---|