-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iwlwifi: split the drivers for agn and legacy devices 3945/4965
Intel WiFi devices 3945 and 4965 now have their own driver in the folder drivers/net/wireless/iwlegacy Add support to build these drivers independently of the driver for AGN devices. Selecting the 3945 builds iwl3945.ko and iwl_legacy.ko, and selecting the 4965 builds iwl4965.ko and iwl_legacy.ko. iwl-legacy.ko contains code shared between both devices. The 3945 is an ABG/BG device, with no support for 802.11n. The 4965 is a 2x3 ABGN device. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Acked-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
- Loading branch information
Wey-Yi Guy
committed
Feb 21, 2011
1 parent
4bc85c1
commit be663ab
Showing
73 changed files
with
30,482 additions
and
2,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
config IWLWIFI_LEGACY | ||
tristate "Intel Wireless Wifi legacy devices" | ||
depends on PCI && MAC80211 | ||
select FW_LOADER | ||
select NEW_LEDS | ||
select LEDS_CLASS | ||
select LEDS_TRIGGERS | ||
select MAC80211_LEDS | ||
|
||
menu "Debugging Options" | ||
depends on IWLWIFI_LEGACY | ||
|
||
config IWLWIFI_LEGACY_DEBUG | ||
bool "Enable full debugging output in 4965 and 3945 drivers" | ||
depends on IWLWIFI_LEGACY | ||
---help--- | ||
This option will enable debug tracing output for the iwlwifilegacy | ||
drivers. | ||
|
||
This will result in the kernel module being ~100k larger. You can | ||
control which debug output is sent to the kernel log by setting the | ||
value in | ||
|
||
/sys/class/net/wlan0/device/debug_level | ||
|
||
This entry will only exist if this option is enabled. | ||
|
||
To set a value, simply echo an 8-byte hex value to the same file: | ||
|
||
% echo 0x43fff > /sys/class/net/wlan0/device/debug_level | ||
|
||
You can find the list of debug mask values in: | ||
drivers/net/wireless/iwlwifilegacy/iwl-debug.h | ||
|
||
If this is your first time using this driver, you should say Y here | ||
as the debug information can assist others in helping you resolve | ||
any problems you may encounter. | ||
|
||
config IWLWIFI_LEGACY_DEBUGFS | ||
bool "4965 and 3945 debugfs support" | ||
depends on IWLWIFI_LEGACY && MAC80211_DEBUGFS | ||
---help--- | ||
Enable creation of debugfs files for the iwlwifilegacy drivers. This | ||
is a low-impact option that allows getting insight into the | ||
driver's state at runtime. | ||
|
||
config IWLWIFI_LEGACY_DEVICE_TRACING | ||
bool "iwlwifilegacy legacy device access tracing" | ||
depends on IWLWIFI_LEGACY | ||
depends on EVENT_TRACING | ||
help | ||
Say Y here to trace all commands, including TX frames and IO | ||
accesses, sent to the device. If you say yes, iwlwifilegacy will | ||
register with the ftrace framework for event tracing and dump | ||
all this information to the ringbuffer, you may need to | ||
increase the ringbuffer size. See the ftrace documentation | ||
for more information. | ||
|
||
When tracing is not enabled, this option still has some | ||
(though rather small) overhead. | ||
|
||
If unsure, say Y so we can help you better when problems | ||
occur. | ||
endmenu | ||
|
||
config IWL4965 | ||
tristate "Intel Wireless WiFi 4965AGN (iwl4965)" | ||
depends on IWLWIFI_LEGACY | ||
---help--- | ||
This option enables support for | ||
|
||
Select to build the driver supporting the: | ||
|
||
Intel Wireless WiFi Link 4965AGN | ||
|
||
This driver uses the kernel's mac80211 subsystem. | ||
|
||
In order to use this driver, you will need a microcode (uCode) | ||
image for it. You can obtain the microcode from: | ||
|
||
<http://intellinuxwireless.org/>. | ||
|
||
The microcode is typically installed in /lib/firmware. You can | ||
look in the hotplug script /etc/hotplug/firmware.agent to | ||
determine which directory FIRMWARE_DIR is set to when the script | ||
runs. | ||
|
||
If you want to compile the driver as a module ( = code which can be | ||
inserted in and removed from the running kernel whenever you want), | ||
say M here and read <file:Documentation/kbuild/modules.txt>. The | ||
module will be called iwl4965. | ||
|
||
config IWL3945 | ||
tristate "Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)" | ||
depends on IWLWIFI_LEGACY | ||
---help--- | ||
Select to build the driver supporting the: | ||
|
||
Intel PRO/Wireless 3945ABG/BG Network Connection | ||
|
||
This driver uses the kernel's mac80211 subsystem. | ||
|
||
In order to use this driver, you will need a microcode (uCode) | ||
image for it. You can obtain the microcode from: | ||
|
||
<http://intellinuxwireless.org/>. | ||
|
||
The microcode is typically installed in /lib/firmware. You can | ||
look in the hotplug script /etc/hotplug/firmware.agent to | ||
determine which directory FIRMWARE_DIR is set to when the script | ||
runs. | ||
|
||
If you want to compile the driver as a module ( = code which can be | ||
inserted in and removed from the running kernel whenever you want), | ||
say M here and read <file:Documentation/kbuild/modules.txt>. The | ||
module will be called iwl3945. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
obj-$(CONFIG_IWLWIFI_LEGACY) += iwl-legacy.o | ||
iwl-legacy-objs := iwl-core.o iwl-eeprom.o iwl-hcmd.o iwl-power.o | ||
iwl-legacy-objs += iwl-rx.o iwl-tx.o iwl-sta.o | ||
iwl-legacy-objs += iwl-scan.o iwl-led.o | ||
iwl-legacy-$(CONFIG_IWLWIFI_LEGACY_DEBUGFS) += iwl-debugfs.o | ||
iwl-legacy-$(CONFIG_IWLWIFI_LEGACY_DEVICE_TRACING) += iwl-devtrace.o | ||
|
||
iwl-legacy-objs += $(iwl-legacy-m) | ||
|
||
CFLAGS_iwl-devtrace.o := -I$(src) | ||
|
||
# 4965 | ||
obj-$(CONFIG_IWL4965) += iwl4965.o | ||
iwl4965-objs := iwl-4965.o iwl4965-base.o iwl-4965-rs.o iwl-4965-led.o | ||
iwl4965-objs += iwl-4965-ucode.o iwl-4965-tx.o | ||
iwl4965-objs += iwl-4965-lib.o iwl-4965-rx.o iwl-4965-calib.o | ||
iwl4965-objs += iwl-4965-sta.o iwl-4965-eeprom.o | ||
iwl4965-$(CONFIG_IWLWIFI_LEGACY_DEBUGFS) += iwl-4965-debugfs.o | ||
|
||
# 3945 | ||
obj-$(CONFIG_IWL3945) += iwl3945.o | ||
iwl3945-objs := iwl3945-base.o iwl-3945.o iwl-3945-rs.o iwl-3945-led.o | ||
iwl3945-$(CONFIG_IWLWIFI_LEGACY_DEBUGFS) += iwl-3945-debugfs.o | ||
|
||
ccflags-y += -D__CHECK_ENDIAN__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
drivers/net/wireless/iwlwifi/iwl-3945-led.h → drivers/net/wireless/iwlegacy/iwl-3945-led.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.