mwifiex: remove USB8897 chipset support
PATCH 1/2 mwifiex: remove USB8897 chipset support
We don't have any customer using this chipset via USB interface. if both mwifiex_pcie and mwifiex_usb modules are enabled by user, sometimes mwifiex_usb wins the race even if user wants wlan interface to be on PCIe and USB for bluetooth. This patch solves the problem.
--- drivers/net/wireless/mwifiex/Kconfig | 4 ++-- drivers/net/wireless/mwifiex/usb.c | 14 -------------- drivers/net/wireless/mwifiex/usb.h | 3 --- 3 files changed, 2 insertions(+), 19 deletions(-)
drivers/net/wireless/mwifiex/Kconfig +2 -2
@@ -33,12 +33,12 @@ config MWIFIEX_PCIE mwifiex_pcie. config MWIFIEX_USB - tristate "Marvell WiFi-Ex Driver for USB8766/8797/8897/8997" + tristate "Marvell WiFi-Ex Driver for USB8766/8797/8997" depends on MWIFIEX && USB select FW_LOADER ---help--- This adds support for wireless adapters based on Marvell - 8797/8897/8997 chipset with USB interface. + 8797/8997 chipset with USB interface. If you choose to build it as a module, it will be called mwifiex_usb.
drivers/net/wireless/mwifiex/usb.c +0 -14
@@ -42,11 +42,6 @@ static struct usb_device_id mwifiex_usb_table[] = { {USB_DEVICE_AND_INTERFACE_INFO (USB8XXX_VID ,USB8801_PID_2 ,USB_CLASS_VENDOR_SPEC , USB_SUBCLASS_VENDOR_SPEC, 0xff)}, -/* 8897 */ - {USB_DEVICE(USB8XXX_VID, USB8897_PID_1)}, - {USB_DEVICE_AND_INTERFACE_INFO(USB8XXX_VID, USB8897_PID_2, -USB_CLASS_VENDOR_SPEC , - USB_SUBCLASS_VENDOR_SPEC, 0xff)},/* 8997 */ {USB_DEVICE(USB8XXX_VID, USB8997_PID_1)}, {USB_DEVICE_AND_INTERFACE_INFO(USB8XXX_VID, USB8997_PID_2,
@@ -386,14 +381,12 @@ static int mwifiex_usb_probe(struct usb_interface *intf,case USB8766_PID_1 :case USB8797_PID_1 :case USB8801_PID_1 : -case USB8897_PID_1 :case USB8997_PID_1 : card->usb_boot_state =USB8XXX_FW_DNLD ;break ;case USB8766_PID_2 :case USB8797_PID_2 :case USB8801_PID_2 : -case USB8897_PID_2 :case USB8997_PID_2 : card->usb_boot_state =USB8XXX_FW_READY ;break ;
@@ -827,12 +820,6 @@ static int mwifiex_register_dev(struct mwifiex_adapter *adapter)strcpy (adapter->fw_name,USB8997_DEFAULT_FW_NAME ); adapter->ext_scan = true;break ; -case USB8897_PID_1 : -case USB8897_PID_2 : - adapter->tx_buf_size =MWIFIEX_TX_DATA_BUF_SIZE_4K ; -strcpy (adapter->fw_name,USB8897_DEFAULT_FW_NAME ); - adapter->ext_scan = true; -break ;case USB8766_PID_1 :case USB8766_PID_2 : adapter->tx_buf_size =MWIFIEX_TX_DATA_BUF_SIZE_2K ;
@@ -1135,5 +1122,4 @@ MODULE_LICENSE("GPL v2");MODULE_FIRMWARE (USB8766_DEFAULT_FW_NAME );MODULE_FIRMWARE (USB8797_DEFAULT_FW_NAME );MODULE_FIRMWARE (USB8801_DEFAULT_FW_NAME ); -MODULE_FIRMWARE (USB8897_DEFAULT_FW_NAME );MODULE_FIRMWARE (USB8997_DEFAULT_FW_NAME );
drivers/net/wireless/mwifiex/usb.h +0 -3
@@ -28,8 +28,6 @@#define USB8766_PID_2 0x2042#define USB8797_PID_1 0x2043#define USB8797_PID_2 0x2044 -#define USB8897_PID_1 0x2045 -#define USB8897_PID_2 0x2046#define USB8801_PID_1 0x2049#define USB8801_PID_2 0x204a#define USB8997_PID_1 0x204d
@@ -47,7 +45,6 @@#define USB8766_DEFAULT_FW_NAME "mrvl/usb8766_uapsta.bin"#define USB8797_DEFAULT_FW_NAME "mrvl/usb8797_uapsta.bin"#define USB8801_DEFAULT_FW_NAME "mrvl/usb8801_uapsta.bin" -#define USB8897_DEFAULT_FW_NAME "mrvl/usb8897_uapsta.bin"#define USB8997_DEFAULT_FW_NAME "mrvl/usb8997_uapsta.bin"#define FW_DNLD_TX_BUF_SIZE 620
Signature · 1 line
1.8.1.4
PATCH 2/2 mwifiex: correction in USB8997 chipset's product ID
For 8897 chipset, mwifiex_usb unnecessarily used to come into picture when wlan is supposed to be used via PCIe interface and USB interface is for bluetooth.
This problem has been resolved for newer chipset by having separate USB product ids for USB-USB8997 and PCIe-USB8997 chipset variants. This patch ensures to use wlan specific product id.
--- drivers/net/wireless/mwifiex/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mwifiex/usb.h +1 -1
@@ -30,7 +30,7 @@#define USB8797_PID_2 0x2044#define USB8801_PID_1 0x2049#define USB8801_PID_2 0x204a -#define USB8997_PID_1 0x204d +#define USB8997_PID_1 0x2052#define USB8997_PID_2 0x204e
Signature · 1 line
1.8.1.4
Quoted 11 lines
We don't have any customer using this chipset via USB interface. if both
mwifiex_pcieandmwifiex_usbmodules are enabled by user, sometimesmwifiex_usbwins the race even if user wants wlan interface to be on PCIe and USB for bluetooth. This patch solves the problem.Signed-off-by Amitkumar Karwar <[email protected]>Signed-off-by Frank Huang <[email protected]>Signed-off-by Nishant Sarmukadam <[email protected]>Signed-off-by Cathy Luo <[email protected]>
Thanks, 2 patches applied to wireless-drivers-next.git:
60a188a2715f mwifiex: remove USB8897 chipset support ce03966a16b0 mwifiex: correction in USB8997 chipset's product ID
Kalle Valo