Skip to contentSkip to conversation

lib80211 cleanup

PATCH Superseded Johannes Berg 1 participant 6 messages Oct 7, 2024

Subsystems (7)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

cover lib80211 cleanup

Prompted by Simon's review of the MAINTAINERS file and Kalle's remark that lib80211.h wasn't covered, I decided to see why it was even still there. Turns out that indeed it hasn't been used for real (other than rtl8192e) since the removal of the hostap driver last year, in commit d0172d5f7576 ("wifi: remove obsolete hostap driver").

Therefore, now clean up lib80211 as well and move its remaining code into libipw in the old Intel drivers.

Perhaps eventually those can also be removed at some point, but I know recently there was at least one airplane that still flies one of those in the onboard infotainment system ;-) (Undoubtedly with an ancient kernel, so that doesn't _actually_ matter.)

johannes

author maintainer
#1 lore raw

PATCH 1/5 wifi: qtnfmac: don't include lib80211.h

From: Johannes Berg <[email protected]>

This driver doesn't use it, and really can't, so don't include lib80211.h.

---
 drivers/net/wireless/quantenna/qtnfmac/core.h | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/quantenna/qtnfmac/core.h +0 -1
index b204a24074ab..b375a4751580 100644
@@ -13,7 +13,6 @@
 #include <linux/if_arp.h>
 #include <linux/etherdevice.h>
 #include <net/sock.h>
-#include <net/lib80211.h>
 #include <net/cfg80211.h>
 #include <linux/vmalloc.h>
 #include <linux/firmware.h>
Signature · 1 line
2.46.2
author maintainer
#2 lore raw

PATCH 2/5 wifi: mwifiex: don't include lib80211.h

In reply to Johannes Berg

From: Johannes Berg <[email protected]>

This really should never have been used, it's ancient code, but then the driver needs its own define for NUM_WEP_KEYS.

---
 drivers/net/wireless/marvell/mwifiex/ioctl.h | 2 +-
 drivers/net/wireless/marvell/mwifiex/main.h  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/ioctl.h +1 -1
index 516159b721d3..74747d3a379a 100644
@@ -8,7 +8,7 @@
 #ifndef _MWIFIEX_IOCTL_H_
 #define _MWIFIEX_IOCTL_H_
 
-#include <net/lib80211.h>
+#define NUM_WEP_KEYS	4
 
 enum {
 	MWIFIEX_SCAN_TYPE_UNCHANGED = 0,
drivers/net/wireless/marvell/mwifiex/main.h +0 -1
index 566adce3413c..366590236ed7 100644
@@ -19,7 +19,6 @@
 #include <linux/if_arp.h>
 #include <linux/etherdevice.h>
 #include <net/sock.h>
-#include <net/lib80211.h>
 #include <linux/vmalloc.h>
 #include <linux/firmware.h>
 #include <linux/ctype.h>
Signature · 1 line
2.46.2
author maintainer
#3 lore raw

PATCH 3/5 wifi: libertas: don't include lib80211.h

In reply to Johannes Berg

From: Johannes Berg <[email protected]>

This isn't used in this driver, and should't be, so remove the include.

---
 drivers/net/wireless/marvell/libertas/mesh.h | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/marvell/libertas/mesh.h +0 -1
index 44c4cd0230a8..e37db10e82a9 100644
@@ -7,7 +7,6 @@
 
 
 #include <net/iw_handler.h>
-#include <net/lib80211.h>
 
 #include "host.h"
 #include "dev.h"
Signature · 1 line
2.46.2
author maintainer
#4 lore raw

PATCH 4/5 staging: rtl8192e: delete the driver

In reply to Johannes Berg

From: Johannes Berg <[email protected]>

This driver is using lib80211 and any driver that plans to ever leave staging should never have done that, so remove the driver to enable cleaning up lib80211 into libipw inside the old Intel drivers.

---
 drivers/staging/Kconfig                       |    2 -
 drivers/staging/Makefile                      |    1 -
 drivers/staging/rtl8192e/Kconfig              |   61 -
 drivers/staging/rtl8192e/Makefile             |   19 -
 drivers/staging/rtl8192e/TODO                 |   18 -
 drivers/staging/rtl8192e/rtl8192e/Kconfig     |   10 -
 drivers/staging/rtl8192e/rtl8192e/Makefile    |   19 -
 .../staging/rtl8192e/rtl8192e/r8190P_def.h    |  265 --
 .../rtl8192e/rtl8192e/r8190P_rtl8256.c        |  198 --
 .../rtl8192e/rtl8192e/r8190P_rtl8256.h        |   17 -
 .../staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c |   79 -
 .../staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h |   12 -
 .../staging/rtl8192e/rtl8192e/r8192E_dev.c    | 1920 ------------
 .../staging/rtl8192e/rtl8192e/r8192E_dev.h    |   34 -
 .../rtl8192e/rtl8192e/r8192E_firmware.c       |  189 --
 .../rtl8192e/rtl8192e/r8192E_firmware.h       |   52 -
 drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h |  244 --
 .../staging/rtl8192e/rtl8192e/r8192E_phy.c    | 1109 -------
 .../staging/rtl8192e/rtl8192e/r8192E_phy.h    |   57 -
 .../staging/rtl8192e/rtl8192e/r8192E_phyreg.h |  773 -----
 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c   |  123 -
 drivers/staging/rtl8192e/rtl8192e/rtl_cam.h   |   25 -
 drivers/staging/rtl8192e/rtl8192e/rtl_core.c  | 2016 -------------
 drivers/staging/rtl8192e/rtl8192e/rtl_core.h  |  402 ---
 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c    | 1857 ------------
 drivers/staging/rtl8192e/rtl8192e/rtl_dm.h    |  155 -
 .../staging/rtl8192e/rtl8192e/rtl_eeprom.c    |   84 -
 .../staging/rtl8192e/rtl8192e/rtl_eeprom.h    |   12 -
 .../staging/rtl8192e/rtl8192e/rtl_ethtool.c   |   37 -
 drivers/staging/rtl8192e/rtl8192e/rtl_pci.c   |   79 -
 drivers/staging/rtl8192e/rtl8192e/rtl_pci.h   |   20 -
 drivers/staging/rtl8192e/rtl8192e/rtl_pm.c    |   89 -
 drivers/staging/rtl8192e/rtl8192e/rtl_pm.h    |   16 -
 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c    |  231 --
 drivers/staging/rtl8192e/rtl8192e/rtl_ps.h    |   31 -
 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c    |  866 ------
 drivers/staging/rtl8192e/rtl8192e/rtl_wx.h    |   13 -
 drivers/staging/rtl8192e/rtl8192e/table.c     |  543 ----
 drivers/staging/rtl8192e/rtl8192e/table.h     |   27 -
 drivers/staging/rtl8192e/rtl819x_BA.h         |   60 -
 drivers/staging/rtl8192e/rtl819x_BAProc.c     |  544 ----
 drivers/staging/rtl8192e/rtl819x_HT.h         |  223 --
 drivers/staging/rtl8192e/rtl819x_HTProc.c     |  699 -----
 drivers/staging/rtl8192e/rtl819x_Qos.h        |   43 -
 drivers/staging/rtl8192e/rtl819x_TS.h         |   50 -
 drivers/staging/rtl8192e/rtl819x_TSProc.c     |  450 ---
 drivers/staging/rtl8192e/rtllib.h             | 1810 ------------
 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c  |  411 ---
 drivers/staging/rtl8192e/rtllib_crypt_tkip.c  |  712 -----
 drivers/staging/rtl8192e/rtllib_crypt_wep.c   |  242 --
 drivers/staging/rtl8192e/rtllib_module.c      |  179 --
 drivers/staging/rtl8192e/rtllib_rx.c          | 2564 -----------------
 drivers/staging/rtl8192e/rtllib_softmac.c     | 2309 ---------------
 drivers/staging/rtl8192e/rtllib_softmac_wx.c  |  534 ----
 drivers/staging/rtl8192e/rtllib_tx.c          |  901 ------
 drivers/staging/rtl8192e/rtllib_wx.c          |  752 -----
 56 files changed, 24188 deletions(-)
 delete mode 100644 drivers/staging/rtl8192e/Kconfig
 delete mode 100644 drivers/staging/rtl8192e/Makefile
 delete mode 100644 drivers/staging/rtl8192e/TODO
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/Kconfig
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/Makefile
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_core.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_core.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_pci.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_pm.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_pm.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_ps.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/rtl_wx.h
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/table.c
 delete mode 100644 drivers/staging/rtl8192e/rtl8192e/table.h
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_BA.h
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_BAProc.c
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_HT.h
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_HTProc.c
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_Qos.h
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_TS.h
 delete mode 100644 drivers/staging/rtl8192e/rtl819x_TSProc.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib.h
 delete mode 100644 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_crypt_tkip.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_crypt_wep.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_module.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_rx.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_softmac.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_softmac_wx.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_tx.c
 delete mode 100644 drivers/staging/rtl8192e/rtllib_wx.c
drivers/staging/Kconfig +0 -2
index db4a392841b1..3f46446a84fa 100644
@@ -26,8 +26,6 @@ if STAGING
 
 source "drivers/staging/olpc_dcon/Kconfig"
 
-source "drivers/staging/rtl8192e/Kconfig"
-
 source "drivers/staging/rtl8723bs/Kconfig"
 
 source "drivers/staging/rtl8712/Kconfig"
drivers/staging/Makefile +0 -1
index 5390879b5d1b..5f32a5d1957b 100644
@@ -3,7 +3,6 @@
 
 obj-y				+= media/
 obj-$(CONFIG_FB_OLPC_DCON)	+= olpc_dcon/
-obj-$(CONFIG_RTL8192E)		+= rtl8192e/
 obj-$(CONFIG_RTL8723BS)		+= rtl8723bs/
 obj-$(CONFIG_R8712U)		+= rtl8712/
 obj-$(CONFIG_RTS5208)		+= rts5208/
drivers/staging/rtl8192e/Kconfig deleted +0 -61

61 lines not on this page · raw message

drivers/staging/rtl8192e/Makefile deleted +0 -19
deleted file mode 100644
index a1492215dab1..000000000000
@@ -1,19 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-rtllib-objs :=			\
-	rtllib_module.o		\
-	rtllib_rx.o		\
-	rtllib_tx.o		\
-	rtllib_wx.o		\
-	rtllib_softmac.o	\
-	rtllib_softmac_wx.o	\
-	rtl819x_BAProc.o	\
-	rtl819x_HTProc.o	\
-	rtl819x_TSProc.o
-
-obj-$(CONFIG_RTLLIB) += rtllib.o
-
-obj-$(CONFIG_RTLLIB_CRYPTO_CCMP) += rtllib_crypt_ccmp.o
-obj-$(CONFIG_RTLLIB_CRYPTO_TKIP) += rtllib_crypt_tkip.o
-obj-$(CONFIG_RTLLIB_CRYPTO_WEP) += rtllib_crypt_wep.o
-
-obj-$(CONFIG_RTL8192E) += rtl8192e/
drivers/staging/rtl8192e/TODO deleted +0 -18
deleted file mode 100644
index 7221ae65d63e..000000000000
@@ -1,18 +0,0 @@
-To-do list:
-
-* merge into drivers/net/wireless/realtek/rtlwifi/rtl8192*
-* clean up function naming
-* Correct the coding style according to Linux guidelines; please read the document
-  at https://www.kernel.org/doc/html/latest/process/coding-style.html.
-* Remove unnecessary debugging/printing macros; for those that are still needed
-  use the proper kernel API (pr_debug(), dev_dbg(), netdev_dbg()).
-* Remove dead code such as unusued functions, variables, fields, etc..
-* Use in-kernel API and remove unnecessary wrappers where possible.
-* Fix bugs due to code that sleeps in atomic context.
-* Remove the HAL layer and migrate its functionality into the relevant parts of
-  the driver.
-* Switch to use LIB80211.
-* Switch to use MAC80211.
-* Switch to use CFG80211.
-* Improve the error handling of various functions, particularly those that use
-  existing kernel APIs.
drivers/staging/rtl8192e/rtl8192e/Kconfig deleted +0 -10
deleted file mode 100644
index f8f774a16295..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-config RTL8192E
-	tristate "RealTek RTL8192E Wireless LAN NIC driver"
-	depends on PCI && WLAN && RTLLIB
-	depends on m
-	select CFG80211
-	select WIRELESS_EXT
-	select WEXT_PRIV
-	select CRYPTO
-	select FW_LOADER
drivers/staging/rtl8192e/rtl8192e/Makefile deleted +0 -19
deleted file mode 100644
index a442d79ea71e..000000000000
@@ -1,19 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-r8192e_pci-objs :=		\
-	r8192E_dev.o		\
-	r8192E_phy.o		\
-	r8192E_firmware.o	\
-	r8192E_cmdpkt.o		\
-	table.o			\
-	r8190P_rtl8256.o	\
-	rtl_cam.o		\
-	rtl_core.o		\
-	rtl_dm.o		\
-	rtl_eeprom.o		\
-	rtl_ethtool.o		\
-	rtl_pci.o		\
-	rtl_pm.o		\
-	rtl_ps.o		\
-	rtl_wx.o		\
-
-obj-$(CONFIG_RTL8192E) += r8192e_pci.o
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h deleted +0 -265

265 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c deleted +0 -198

198 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h deleted +0 -17
deleted file mode 100644
index 3c52e2b43095..000000000000
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
- *
- * Contact Information: wlanfae <[email protected]>
- */
-#ifndef RTL8225H
-#define RTL8225H
-
-#define RTL819X_TOTAL_RF_PATH 2
-void rtl92e_set_bandwidth(struct net_device *dev,
-			  enum ht_channel_width bandwidth);
-bool rtl92e_config_rf(struct net_device *dev);
-void rtl92e_set_cck_tx_power(struct net_device *dev, u8	powerlevel);
-void rtl92e_set_ofdm_tx_power(struct net_device *dev, u8 powerlevel);
-
-#endif
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c deleted +0 -79

79 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h deleted +0 -12
deleted file mode 100644
index c63909199e93..000000000000
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
- *
- * Contact Information: wlanfae <[email protected]>
- */
-#ifndef R819XUSB_CMDPKT_H
-#define R819XUSB_CMDPKT_H
-
-bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,
-			 u32 len);
-#endif
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c deleted +0 -1920

1,920 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h deleted +0 -34
deleted file mode 100644
index 9d9c5051c7fe..000000000000
@@ -1,34 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
- *
- * Contact Information: wlanfae <[email protected]>
- */
-#ifndef _RTL8192E_H
-#define _RTL8192E_H
-
-#include "r8190P_def.h"
-
-bool rtl92e_is_halfn_supported_by_ap(struct net_device *dev);
-bool rtl92e_get_nmode_support_by_sec(struct net_device *dev);
-bool rtl92e_is_tx_stuck(struct net_device *dev);
-bool rtl92e_is_rx_stuck(struct net_device *dev);
-void rtl92e_ack_irq(struct net_device *dev, u32 *p_inta);
-void rtl92e_enable_rx(struct net_device *dev);
-void rtl92e_enable_tx(struct net_device *dev);
-void rtl92e_init_variables(struct net_device  *dev);
-void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val);
-void rtl92e_get_eeprom_size(struct net_device *dev);
-bool rtl92e_start_adapter(struct net_device *dev);
-void rtl92e_link_change(struct net_device *dev);
-void rtl92e_set_monitor_mode(struct net_device *dev, bool allow_all_da,
-			     bool write_into_reg);
-void  rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
-			  struct cb_desc *cb_desc, struct sk_buff *skb);
-void  rtl92e_fill_tx_cmd_desc(struct net_device *dev, struct tx_desc_cmd *entry,
-			      struct cb_desc *cb_desc, struct sk_buff *skb);
-bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
-			 struct rx_desc *pdesc, struct sk_buff *skb);
-void rtl92e_stop_adapter(struct net_device *dev, bool reset);
-void rtl92e_update_ratr_table(struct net_device *dev);
-#endif
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c deleted +0 -189

189 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h deleted +0 -52

52 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h deleted +0 -244

92 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c deleted +0 -1109

1,109 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h deleted +0 -57

57 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h deleted +0 -773

773 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_cam.c deleted +0 -123

123 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_cam.h deleted +0 -25
deleted file mode 100644
index 9deffdf96072..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/rtl_core.c deleted +0 -2016

2,016 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_core.h deleted +0 -402

402 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_dm.c deleted +0 -1857

1,857 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_dm.h deleted +0 -155

155 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c deleted +0 -84

84 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h deleted +0 -12
deleted file mode 100644
index 66f1979bb1d5..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c deleted +0 -37
deleted file mode 100644
index fab8932e67da..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/rtl_pci.c deleted +0 -79

79 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_pci.h deleted +0 -20
deleted file mode 100644
index 3e39c4835ac8..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/rtl_pm.c deleted +0 -89

89 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_pm.h deleted +0 -16
deleted file mode 100644
index fd8611495975..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/rtl_ps.c deleted +0 -231

231 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_ps.h deleted +0 -31
deleted file mode 100644
index 70fe5d39be9a..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/rtl_wx.c deleted +0 -866

866 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/rtl_wx.h deleted +0 -13
deleted file mode 100644
index d70a747ac1dd..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl8192e/table.c deleted +0 -543

543 lines not on this page · raw message

drivers/staging/rtl8192e/rtl8192e/table.h deleted +0 -27
deleted file mode 100644
index 82be44a9d4e8..000000000000

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8192e/rtl819x_BA.h deleted +0 -60

60 lines not on this page · raw message

drivers/staging/rtl8192e/rtl819x_BAProc.c deleted +0 -544

544 lines not on this page · raw message

drivers/staging/rtl8192e/rtl819x_HT.h deleted +0 -223

223 lines not on this page · raw message

drivers/staging/rtl8192e/rtl819x_HTProc.c deleted +0 -699

699 lines not on this page · raw message

drivers/staging/rtl8192e/rtl819x_Qos.h deleted +0 -43

43 lines not on this page · raw message

drivers/staging/rtl8192e/rtl819x_TS.h deleted +0 -50

50 lines not on this page · raw message

drivers/staging/rtl8192e/rtl819x_TSProc.c deleted +0 -450

450 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib.h deleted +0 -1810

1,810 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_crypt_ccmp.c deleted +0 -411

411 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_crypt_tkip.c deleted +0 -712

712 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_crypt_wep.c deleted +0 -242

242 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_module.c deleted +0 -179

179 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_rx.c deleted +0 -2564

2,564 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_softmac.c deleted +0 -2309

2,309 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_softmac_wx.c deleted +0 -534

534 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_tx.c deleted +0 -901

901 lines not on this page · raw message

drivers/staging/rtl8192e/rtllib_wx.c deleted +0 -752

752 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.46.2

Part of the diff is not shown here. View the raw message.

author maintainer
#5 lore raw

PATCH 5/5 wifi: ipw2x00/lib80211: move remaining lib80211 into libipw

In reply to Johannes Berg

From: Johannes Berg <[email protected]>

There's already much code in libipw that used to be shared with more drivers, but now with the prior cleanups, those old Intel ipw2x00 drivers are also the only ones using whatever is now left of lib80211. Move lib80211 entirely into libipw.

---
 drivers/net/wireless/intel/ipw2x00/Kconfig    |   6 -
 drivers/net/wireless/intel/ipw2x00/Makefile   |   6 +-
 drivers/net/wireless/intel/ipw2x00/ipw2100.c  |   7 +-
 drivers/net/wireless/intel/ipw2x00/ipw2200.c  |   4 +-
 drivers/net/wireless/intel/ipw2x00/ipw2200.h  |   2 -
 drivers/net/wireless/intel/ipw2x00/libipw.h   | 101 ++++++-
 .../wireless/intel/ipw2x00/libipw_crypto.c    | 247 +++++++++++++++++
 .../intel/ipw2x00/libipw_crypto_ccmp.c        |  74 +++--
 .../intel/ipw2x00/libipw_crypto_tkip.c        | 102 ++++---
 .../intel/ipw2x00/libipw_crypto_wep.c         |  73 +++--
 .../wireless/intel/ipw2x00/libipw_module.c    |  36 ++-
 .../net/wireless/intel/ipw2x00/libipw_rx.c    |   9 +-
 .../net/wireless/intel/ipw2x00/libipw_tx.c    |   4 +-
 .../net/wireless/intel/ipw2x00/libipw_wx.c    |  43 ++-
 include/net/lib80211.h                        | 122 ---------
 net/wireless/Makefile                         |   4 -
 net/wireless/lib80211.c                       | 257 ------------------
 17 files changed, 523 insertions(+), 574 deletions(-)
 create mode 100644 drivers/net/wireless/intel/ipw2x00/libipw_crypto.c
 rename net/wireless/lib80211_crypt_ccmp.c => drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c (83%)
 rename net/wireless/lib80211_crypt_tkip.c => drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c (87%)
 rename net/wireless/lib80211_crypt_wep.c => drivers/net/wireless/intel/ipw2x00/libipw_crypto_wep.c (72%)
 delete mode 100644 include/net/lib80211.h
 delete mode 100644 net/wireless/lib80211.c
drivers/net/wireless/intel/ipw2x00/Kconfig +0 -6
index 1650d5865aa0..d9c042772399 100644
@@ -10,7 +10,6 @@ config IPW2100
 	select WEXT_SPY
 	select WEXT_PRIV
 	select FW_LOADER
-	select LIB80211
 	select LIBIPW
 	help
 	  A driver for the Intel PRO/Wireless 2100 Network
@@ -72,7 +71,6 @@ config IPW2200
 	select WEXT_SPY
 	select WEXT_PRIV
 	select FW_LOADER
-	select LIB80211
 	select LIBIPW
 	help
 	  A driver for the Intel PRO/Wireless 2200BG and 2915ABG Network
@@ -162,10 +160,6 @@ config LIBIPW
 	select CRYPTO
 	select CRYPTO_MICHAEL_MIC
 	select CRC32
-	select LIB80211
-	select LIB80211_CRYPT_WEP
-	select LIB80211_CRYPT_TKIP
-	select LIB80211_CRYPT_CCMP
 	help
 	This option enables the hardware independent IEEE 802.11
 	networking stack.  This component is deprecated in favor of the
drivers/net/wireless/intel/ipw2x00/Makefile +5 -1
index e1ec50359dff..60c5faccbe15 100644
@@ -12,4 +12,8 @@ libipw-objs := \
 	libipw_tx.o \
 	libipw_rx.o \
 	libipw_wx.o \
-	libipw_geo.o
+	libipw_geo.o \
+	libipw_crypto.o \
+	libipw_crypto_ccmp.o \
+	libipw_crypto_tkip.o \
+	libipw_crypto_wep.o
drivers/net/wireless/intel/ipw2x00/ipw2100.c +2 -5
index b6636002c7d2..a89e06c1b8ee 100644
@@ -148,9 +148,6 @@ that only one external action is invoked at a time.
 #include <linux/acpi.h>
 #include <linux/ctype.h>
 #include <linux/pm_qos.h>
-
-#include <net/lib80211.h>
-
 #include "ipw2100.h"
 #include "ipw.h"
 
@@ -7571,7 +7568,7 @@ static int ipw2100_wx_set_auth(struct net_device *dev,
 	struct ipw2100_priv *priv = libipw_priv(dev);
 	struct libipw_device *ieee = priv->ieee;
 	struct iw_param *param = &wrqu->param;
-	struct lib80211_crypt_data *crypt;
+	struct libipw_crypt_data *crypt;
 	unsigned long flags;
 	int ret = 0;
 
@@ -7663,7 +7660,7 @@ static int ipw2100_wx_get_auth(struct net_device *dev,
 {
 	struct ipw2100_priv *priv = libipw_priv(dev);
 	struct libipw_device *ieee = priv->ieee;
-	struct lib80211_crypt_data *crypt;
+	struct libipw_crypt_data *crypt;
 	struct iw_param *param = &wrqu->param;
 
 	switch (param->flags & IW_AUTH_INDEX) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c +2 -2
index eed9ef17bc29..f4fd1fc784b7 100644
@@ -6549,7 +6549,7 @@ static int ipw_wx_set_auth(struct net_device *dev,
 	struct ipw_priv *priv = libipw_priv(dev);
 	struct libipw_device *ieee = priv->ieee;
 	struct iw_param *param = &wrqu->param;
-	struct lib80211_crypt_data *crypt;
+	struct libipw_crypt_data *crypt;
 	unsigned long flags;
 	int ret = 0;
 
@@ -6648,7 +6648,7 @@ static int ipw_wx_get_auth(struct net_device *dev,
 {
 	struct ipw_priv *priv = libipw_priv(dev);
 	struct libipw_device *ieee = priv->ieee;
-	struct lib80211_crypt_data *crypt;
+	struct libipw_crypt_data *crypt;
 	struct iw_param *param = &wrqu->param;
 
 	switch (param->flags & IW_AUTH_INDEX) {
drivers/net/wireless/intel/ipw2x00/ipw2200.h +0 -2
index 8ebf09121e17..46f119123b49 100644
@@ -31,8 +31,6 @@
 #include <linux/wireless.h>
 #include <linux/jiffies.h>
 #include <asm/io.h>
-
-#include <net/lib80211.h>
 #include <net/ieee80211_radiotap.h>
 
 #define DRV_NAME	"ipw2200"
drivers/net/wireless/intel/ipw2x00/libipw.h +98 -3

123 lines not on this page · raw message

drivers/net/wireless/intel/ipw2x00/libipw_crypto.c new file +247 -0

247 lines not on this page · raw message

drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c renamed from net/wireless/lib80211_crypt_ccmp.c +32 -42

173 lines not on this page · raw message

drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c renamed from net/wireless/lib80211_crypt_tkip.c +46 -56

239 lines not on this page · raw message

drivers/net/wireless/intel/ipw2x00/libipw_crypto_wep.c renamed from net/wireless/lib80211_crypt_wep.c +32 -41

163 lines not on this page · raw message

drivers/net/wireless/intel/ipw2x00/libipw_module.c +34 -2
index 43bab92a4148..0a16127bfd68 100644
@@ -169,7 +169,7 @@ struct net_device *alloc_libipw(int sizeof_priv, int monitor)
 
 	spin_lock_init(&ieee->lock);
 
-	lib80211_crypt_info_init(&ieee->crypt_info, dev->name, &ieee->lock);
+	libipw_crypt_info_init(&ieee->crypt_info, dev->name, &ieee->lock);
 
 	ieee->wpa_enabled = 0;
 	ieee->drop_unencrypted = 0;
@@ -191,7 +191,7 @@ void free_libipw(struct net_device *dev, int monitor)
 {
 	struct libipw_device *ieee = netdev_priv(dev);
 
-	lib80211_crypt_info_free(&ieee->crypt_info);
+	libipw_crypt_info_free(&ieee->crypt_info);
 
 	libipw_networks_free(ieee);
 
@@ -251,6 +251,7 @@ static const struct proc_ops debug_level_proc_ops = {
 
 static int __init libipw_init(void)
 {
+	int err;
 #ifdef CONFIG_LIBIPW_DEBUG
 	struct proc_dir_entry *e;
 
@@ -273,7 +274,33 @@ static int __init libipw_init(void)
 	printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n");
 	printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
 
+	err = libipw_crypto_init();
+	if (err)
+		goto remove_debugfs;
+	err = libipw_crypto_ccmp_init();
+	if (err)
+		goto uninit_crypto;
+	err = libipw_crypto_tkip_init();
+	if (err)
+		goto uninit_crypto_ccmp;
+	err = libipw_crypto_wep_init();
+	if (err)
+		goto uninit_crypto_tkip;
+
 	return 0;
+uninit_crypto_tkip:
+	libipw_crypto_tkip_exit();
+uninit_crypto_ccmp:
+	libipw_crypto_ccmp_exit();
+uninit_crypto:
+	libipw_crypto_exit();
+remove_debugfs:
+#ifdef CONFIG_LIBIPW_DEBUG
+	remove_proc_entry("debug_level", libipw_proc);
+	remove_proc_entry(DRV_PROCNAME, init_net.proc_net);
+	libipw_proc = NULL;
+#endif
+	return err;
 }
 
 static void __exit libipw_exit(void)
@@ -285,6 +312,11 @@ static void __exit libipw_exit(void)
 		libipw_proc = NULL;
 	}
 #endif				/* CONFIG_LIBIPW_DEBUG */
+
+	libipw_crypto_ccmp_exit();
+	libipw_crypto_tkip_exit();
+	libipw_crypto_wep_exit();
+	libipw_crypto_exit();
 }
 
 #ifdef CONFIG_LIBIPW_DEBUG
drivers/net/wireless/intel/ipw2x00/libipw_rx.c +3 -6
index 48d6870bbf4e..1fe05e73a17c 100644
@@ -27,9 +27,6 @@
 #include <linux/etherdevice.h>
 #include <linux/uaccess.h>
 #include <linux/ctype.h>
-
-#include <net/lib80211.h>
-
 #include "libipw.h"
 
 static void libipw_monitor_rx(struct libipw_device *ieee,
@@ -266,7 +263,7 @@ static int libipw_is_eapol_frame(struct libipw_device *ieee,
 /* Called only as a tasklet (software IRQ), by libipw_rx */
 static int
 libipw_rx_frame_decrypt(struct libipw_device *ieee, struct sk_buff *skb,
-			   struct lib80211_crypt_data *crypt)
+			   struct libipw_crypt_data *crypt)
 {
 	struct libipw_hdr_3addr *hdr;
 	int res, hdrlen;
@@ -298,7 +295,7 @@ libipw_rx_frame_decrypt(struct libipw_device *ieee, struct sk_buff *skb,
 static int
 libipw_rx_frame_decrypt_msdu(struct libipw_device *ieee,
 				struct sk_buff *skb, int keyidx,
-				struct lib80211_crypt_data *crypt)
+				struct libipw_crypt_data *crypt)
 {
 	struct libipw_hdr_3addr *hdr;
 	int res, hdrlen;
@@ -345,7 +342,7 @@ int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb,
 #endif
 	u8 dst[ETH_ALEN];
 	u8 src[ETH_ALEN];
-	struct lib80211_crypt_data *crypt = NULL;
+	struct libipw_crypt_data *crypt = NULL;
 	int keyidx = 0;
 	int can_be_decrypted = 0;
 
drivers/net/wireless/intel/ipw2x00/libipw_tx.c +2 -2
index e22a6732a4c3..80edaa3dea9c 100644
@@ -138,7 +138,7 @@ static int libipw_copy_snap(u8 * data, __be16 h_proto)
 static int libipw_encrypt_fragment(struct libipw_device *ieee,
 					     struct sk_buff *frag, int hdr_len)
 {
-	struct lib80211_crypt_data *crypt =
+	struct libipw_crypt_data *crypt =
 		ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
 	int res;
 
@@ -255,7 +255,7 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
 		.qos_ctl = 0
 	};
 	u8 dest[ETH_ALEN], src[ETH_ALEN];
-	struct lib80211_crypt_data *crypt;
+	struct libipw_crypt_data *crypt;
 	int priority = skb->priority;
 	int snapped = 0;
 
drivers/net/wireless/intel/ipw2x00/libipw_wx.c +20 -23

128 lines not on this page · raw message

include/net/lib80211.h deleted +0 -122

122 lines not on this page · raw message

net/wireless/Makefile +0 -4
index 1d49cc8b6da1..27f211bd9954 100644
@@ -1,9 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-$(CONFIG_CFG80211) += cfg80211.o
-obj-$(CONFIG_LIB80211) += lib80211.o
-obj-$(CONFIG_LIB80211_CRYPT_WEP) += lib80211_crypt_wep.o
-obj-$(CONFIG_LIB80211_CRYPT_CCMP) += lib80211_crypt_ccmp.o
-obj-$(CONFIG_LIB80211_CRYPT_TKIP) += lib80211_crypt_tkip.o
 obj-y += tests/
 
 obj-$(CONFIG_WEXT_CORE) += wext-core.o
net/wireless/lib80211.c deleted +0 -257

257 lines not on this page · raw message

Signature · 1 line
2.46.2