diff options
author | Chaoming Li <chaoming_li@realsil.com.cn> | 2011-05-03 10:49:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-05 14:59:14 -0400 |
commit | 85e09b40405b44b049500702beb6856646b4be46 (patch) | |
tree | db40e410ec65fb8312438530d4adb58fe00354a6 | |
parent | 84f494cef7d98d67aa7d50ede12784464aa0c274 (diff) |
rtlwifi: rtl8192se: Modify Kconfig and Makefile routines for new driver
Modify rtlwifi routines for rtl8192se and set up Kconfig
and Makefile for new driver.
This patch also disables ASPM for the RTL8192SE to prevent some strange
crashes on LF's system.
Signed-off-by: Chaoming_Li <chaoming_li@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rtlwifi/Kconfig | 15 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/Makefile | 15 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/sw.c | 2 |
4 files changed, 30 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/Kconfig b/drivers/net/wireless/rtlwifi/Kconfig index ce49e0ce7cad..5aee8b22d74e 100644 --- a/drivers/net/wireless/rtlwifi/Kconfig +++ b/drivers/net/wireless/rtlwifi/Kconfig | |||
@@ -10,6 +10,17 @@ config RTL8192CE | |||
10 | 10 | ||
11 | If you choose to build it as a module, it will be called rtl8192ce | 11 | If you choose to build it as a module, it will be called rtl8192ce |
12 | 12 | ||
13 | config RTL8192SE | ||
14 | tristate "Realtek RTL8192SE/RTL8191SE PCIe Wireless Network Adapter" | ||
15 | depends on MAC80211 && EXPERIMENTAL | ||
16 | select FW_LOADER | ||
17 | select RTLWIFI | ||
18 | ---help--- | ||
19 | This is the driver for Realtek RTL8192SE/RTL8191SE 802.11n PCIe | ||
20 | wireless network adapters. | ||
21 | |||
22 | If you choose to build it as a module, it will be called rtl8192se | ||
23 | |||
13 | config RTL8192CU | 24 | config RTL8192CU |
14 | tristate "Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter" | 25 | tristate "Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter" |
15 | depends on MAC80211 && USB && EXPERIMENTAL | 26 | depends on MAC80211 && USB && EXPERIMENTAL |
@@ -24,10 +35,10 @@ config RTL8192CU | |||
24 | 35 | ||
25 | config RTLWIFI | 36 | config RTLWIFI |
26 | tristate | 37 | tristate |
27 | depends on RTL8192CE || RTL8192CU | 38 | depends on RTL8192CE || RTL8192CU || RTL8192SE |
28 | default m | 39 | default m |
29 | 40 | ||
30 | config RTL8192C_COMMON | 41 | config RTL8192C_COMMON |
31 | tristate | 42 | tristate |
32 | depends on RTL8192CE || RTL8192CU | 43 | depends on RTL8192CE || RTL8192CU || RTL8192SE |
33 | default m | 44 | default m |
diff --git a/drivers/net/wireless/rtlwifi/Makefile b/drivers/net/wireless/rtlwifi/Makefile index ec9393f24799..7acce83c3785 100644 --- a/drivers/net/wireless/rtlwifi/Makefile +++ b/drivers/net/wireless/rtlwifi/Makefile | |||
@@ -22,5 +22,6 @@ endif | |||
22 | obj-$(CONFIG_RTL8192C_COMMON) += rtl8192c/ | 22 | obj-$(CONFIG_RTL8192C_COMMON) += rtl8192c/ |
23 | obj-$(CONFIG_RTL8192CE) += rtl8192ce/ | 23 | obj-$(CONFIG_RTL8192CE) += rtl8192ce/ |
24 | obj-$(CONFIG_RTL8192CU) += rtl8192cu/ | 24 | obj-$(CONFIG_RTL8192CU) += rtl8192cu/ |
25 | obj-$(CONFIG_RTL8192SE) += rtl8192se/ | ||
25 | 26 | ||
26 | ccflags-y += -D__CHECK_ENDIAN__ | 27 | ccflags-y += -D__CHECK_ENDIAN__ |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/Makefile b/drivers/net/wireless/rtlwifi/rtl8192se/Makefile new file mode 100644 index 000000000000..b7eb13819cbc --- /dev/null +++ b/drivers/net/wireless/rtlwifi/rtl8192se/Makefile | |||
@@ -0,0 +1,15 @@ | |||
1 | rtl8192se-objs := \ | ||
2 | dm.o \ | ||
3 | fw.o \ | ||
4 | hw.o \ | ||
5 | led.o \ | ||
6 | phy.o \ | ||
7 | rf.o \ | ||
8 | sw.o \ | ||
9 | table.o \ | ||
10 | trx.o | ||
11 | |||
12 | obj-$(CONFIG_RTL8192SE) += rtl8192se.o | ||
13 | |||
14 | ccflags-y += -D__CHECK_ENDIAN__ | ||
15 | |||
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c index c5351b65b339..7cfd6a2cb140 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c | |||
@@ -58,7 +58,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw) | |||
58 | * 4 - Always Enable ASPM without Clock Req. | 58 | * 4 - Always Enable ASPM without Clock Req. |
59 | * set defult to RTL8192CE:3 RTL8192E:2 | 59 | * set defult to RTL8192CE:3 RTL8192E:2 |
60 | * */ | 60 | * */ |
61 | rtlpci->const_pci_aspm = 2; | 61 | rtlpci->const_pci_aspm = 0; /* changed from 2 due to crashes */ |
62 | 62 | ||
63 | /*Setting for PCI-E device */ | 63 | /*Setting for PCI-E device */ |
64 | rtlpci->const_devicepci_aspm_setting = 0x03; | 64 | rtlpci->const_devicepci_aspm_setting = 0x03; |