Skip to contentSkip to conversation

net: remove ax25 and amateur radio (hamradio) subsystem

PATCH In review Jakub Kicinski 11 participants 23 messages Apr 21 – Jun 30 1 message not in the archive

Subsystems (10)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 net: remove ax25 and amateur radio (hamradio) subsystem

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 MAINTAINERS                                   |   73 -
 Documentation/.renames.txt                    |    2 -
 .../admin-guide/kernel-parameters.txt         |   18 -
 Documentation/networking/6pack.rst            |  191 --
 Documentation/networking/ax25.rst             |   17 -
 .../device_drivers/hamradio/baycom.rst        |  174 --
 .../device_drivers/hamradio/index.rst         |   12 -
 .../device_drivers/hamradio/z8530drv.rst      |  686 ------
 .../networking/device_drivers/index.rst       |    1 -
 Documentation/networking/index.rst            |    2 -
 Documentation/staging/magic-number.rst        |    3 -
 .../it_IT/staging/magic-number.rst            |    3 -
 .../sp_SP/process/magic-number.rst            |    3 -
 .../zh_CN/process/magic-number.rst            |    3 -
 .../zh_TW/process/magic-number.rst            |    3 -
 drivers/net/hamradio/Kconfig                  |  162 --
 net/Kconfig                                   |    1 -
 net/ax25/Kconfig                              |  108 -
 drivers/net/Makefile                          |    1 -
 drivers/net/hamradio/Makefile                 |   22 -
 net/Makefile                                  |    3 -
 net/ax25/Makefile                             |   12 -
 net/netrom/Makefile                           |   10 -
 net/rose/Makefile                             |   10 -
 drivers/net/hamradio/z8530.h                  |  246 --
 include/linux/hdlcdrv.h                       |  276 ---
 include/linux/netdevice.h                     |    5 +-
 include/linux/scc.h                           |   86 -
 include/linux/yam.h                           |   67 -
 include/net/ax25.h                            |  476 +---
 include/net/netrom.h                          |  273 ---
 include/net/rose.h                            |  263 +-
 include/uapi/linux/baycom.h                   |   40 -
 include/uapi/linux/hdlcdrv.h                  |  111 -
 include/uapi/linux/netrom.h                   |   37 -
 include/uapi/linux/rose.h                     |   91 -
 include/uapi/linux/scc.h                      |  174 --
 drivers/net/hamradio/6pack.c                  |  912 -------
 drivers/net/hamradio/baycom_epp.c             | 1316 ----------
 drivers/net/hamradio/baycom_par.c             |  598 -----
 drivers/net/hamradio/baycom_ser_fdx.c         |  678 -----
 drivers/net/hamradio/baycom_ser_hdx.c         |  727 ------
 drivers/net/hamradio/bpqether.c               |  593 -----
 drivers/net/hamradio/hdlcdrv.c                |  747 ------
 drivers/net/hamradio/mkiss.c                  |  980 --------
 drivers/net/hamradio/scc.c                    | 2179 -----------------
 drivers/net/hamradio/yam.c                    | 1191 ---------
 net/ax25/af_ax25.c                            | 2089 ----------------
 net/ax25/ax25_addr.c                          |  303 ---
 net/ax25/ax25_dev.c                           |  200 --
 net/ax25/ax25_ds_in.c                         |  298 ---
 net/ax25/ax25_ds_subr.c                       |  204 --
 net/ax25/ax25_ds_timer.c                      |  235 --
 net/ax25/ax25_iface.c                         |  214 --
 net/ax25/ax25_in.c                            |  455 ----
 net/ax25/ax25_ip.c                            |  247 --
 net/ax25/ax25_out.c                           |  398 ---
 net/ax25/ax25_route.c                         |  416 ----
 net/ax25/ax25_std_in.c                        |  443 ----
 net/ax25/ax25_std_subr.c                      |   83 -
 net/ax25/ax25_std_timer.c                     |  175 --
 net/ax25/ax25_subr.c                          |  296 ---
 net/ax25/ax25_timer.c                         |  224 --
 net/ax25/ax25_uid.c                           |  204 --
 net/ax25/sysctl_net_ax25.c                    |  181 --
 net/ipv4/arp.c                                |    1 -
 net/netrom/af_netrom.c                        | 1536 ------------
 net/netrom/nr_dev.c                           |  178 --
 net/netrom/nr_in.c                            |  301 ---
 net/netrom/nr_loopback.c                      |   73 -
 net/netrom/nr_out.c                           |  272 --
 net/netrom/nr_route.c                         |  989 --------
 net/netrom/nr_subr.c                          |  280 ---
 net/netrom/nr_timer.c                         |  249 --
 net/netrom/sysctl_net_netrom.c                |  156 --
 net/rose/af_rose.c                            | 1687 -------------
 net/rose/rose_dev.c                           |  141 --
 net/rose/rose_in.c                            |  301 ---
 net/rose/rose_link.c                          |  289 ---
 net/rose/rose_loopback.c                      |  133 -
 net/rose/rose_out.c                           |  122 -
 net/rose/rose_route.c                         | 1333 ----------
 net/rose/rose_subr.c                          |  556 -----
 net/rose/rose_timer.c                         |  227 --
 net/rose/sysctl_net_rose.c                    |  125 -
 arch/mips/configs/bcm47xx_defconfig           |    1 -
 arch/mips/configs/bigsur_defconfig            |   10 -
 arch/mips/configs/gpr_defconfig               |   11 -
 arch/mips/configs/mtx1_defconfig              |   11 -
 arch/mips/configs/rb532_defconfig             |    1 -
 arch/mips/configs/rm200_defconfig             |    7 -
 arch/mips/configs/rt305x_defconfig            |    1 -
 arch/mips/configs/xway_defconfig              |    1 -
 93 files changed, 6 insertions(+), 29237 deletions(-)
 delete mode 100644 Documentation/networking/6pack.rst
 delete mode 100644 Documentation/networking/ax25.rst
 delete mode 100644 Documentation/networking/device_drivers/hamradio/baycom.rst
 delete mode 100644 Documentation/networking/device_drivers/hamradio/index.rst
 delete mode 100644 Documentation/networking/device_drivers/hamradio/z8530drv.rst
 delete mode 100644 drivers/net/hamradio/Kconfig
 delete mode 100644 net/ax25/Kconfig
 delete mode 100644 drivers/net/hamradio/Makefile
 delete mode 100644 net/ax25/Makefile
 delete mode 100644 net/netrom/Makefile
 delete mode 100644 net/rose/Makefile
 delete mode 100644 drivers/net/hamradio/z8530.h
 delete mode 100644 include/linux/hdlcdrv.h
 delete mode 100644 include/linux/scc.h
 delete mode 100644 include/linux/yam.h
 delete mode 100644 include/net/netrom.h
 delete mode 100644 include/uapi/linux/baycom.h
 delete mode 100644 include/uapi/linux/hdlcdrv.h
 delete mode 100644 include/uapi/linux/netrom.h
 delete mode 100644 include/uapi/linux/rose.h
 delete mode 100644 include/uapi/linux/scc.h
 delete mode 100644 drivers/net/hamradio/6pack.c
 delete mode 100644 drivers/net/hamradio/baycom_epp.c
 delete mode 100644 drivers/net/hamradio/baycom_par.c
 delete mode 100644 drivers/net/hamradio/baycom_ser_fdx.c
 delete mode 100644 drivers/net/hamradio/baycom_ser_hdx.c
 delete mode 100644 drivers/net/hamradio/bpqether.c
 delete mode 100644 drivers/net/hamradio/hdlcdrv.c
 delete mode 100644 drivers/net/hamradio/mkiss.c
 delete mode 100644 drivers/net/hamradio/scc.c
 delete mode 100644 drivers/net/hamradio/yam.c
 delete mode 100644 net/ax25/af_ax25.c
 delete mode 100644 net/ax25/ax25_addr.c
 delete mode 100644 net/ax25/ax25_dev.c
 delete mode 100644 net/ax25/ax25_ds_in.c
 delete mode 100644 net/ax25/ax25_ds_subr.c
 delete mode 100644 net/ax25/ax25_ds_timer.c
 delete mode 100644 net/ax25/ax25_iface.c
 delete mode 100644 net/ax25/ax25_in.c
 delete mode 100644 net/ax25/ax25_ip.c
 delete mode 100644 net/ax25/ax25_out.c
 delete mode 100644 net/ax25/ax25_route.c
 delete mode 100644 net/ax25/ax25_std_in.c
 delete mode 100644 net/ax25/ax25_std_subr.c
 delete mode 100644 net/ax25/ax25_std_timer.c
 delete mode 100644 net/ax25/ax25_subr.c
 delete mode 100644 net/ax25/ax25_timer.c
 delete mode 100644 net/ax25/ax25_uid.c
 delete mode 100644 net/ax25/sysctl_net_ax25.c
 delete mode 100644 net/netrom/af_netrom.c
 delete mode 100644 net/netrom/nr_dev.c
 delete mode 100644 net/netrom/nr_in.c
 delete mode 100644 net/netrom/nr_loopback.c
 delete mode 100644 net/netrom/nr_out.c
 delete mode 100644 net/netrom/nr_route.c
 delete mode 100644 net/netrom/nr_subr.c
 delete mode 100644 net/netrom/nr_timer.c
 delete mode 100644 net/netrom/sysctl_net_netrom.c
 delete mode 100644 net/rose/af_rose.c
 delete mode 100644 net/rose/rose_dev.c
 delete mode 100644 net/rose/rose_in.c
 delete mode 100644 net/rose/rose_link.c
 delete mode 100644 net/rose/rose_loopback.c
 delete mode 100644 net/rose/rose_out.c
 delete mode 100644 net/rose/rose_route.c
 delete mode 100644 net/rose/rose_subr.c
 delete mode 100644 net/rose/rose_timer.c
 delete mode 100644 net/rose/sysctl_net_rose.c
MAINTAINERS +0 -73
index 66f29cde4985..cfcf422dd40a 100644
@@ -102,12 +102,6 @@ F:	Documentation/networking/6lowpan.rst
 F:	include/net/6lowpan.h
 F:	net/6lowpan/
 
-6PACK NETWORK DRIVER FOR AX.25
-M:	Andreas Koensgen <[email protected]>
-L:	[email protected]
-S:	Maintained
-F:	drivers/net/hamradio/6pack.c
-
 802.11 (including CFG80211/NL80211)
 M:	Johannes Berg <[email protected]>
 L:	[email protected]
@@ -4281,14 +4275,6 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml
 F:	drivers/video/backlight/aw99706.c
 
-AX.25 NETWORK LAYER
-L:	[email protected]
-S:	Orphan
-W:	https://linux-ax25.in-berlin.de
-F:	include/net/ax25.h
-F:	include/uapi/linux/ax25.h
-F:	net/ax25/
-
 AXENTIA ARM DEVICES
 M:	Peter Rosin <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
@@ -4430,13 +4416,6 @@ F:	include/uapi/linux/batadv_packet.h
 F:	include/uapi/linux/batman_adv.h
 F:	net/batman-adv/
 
-BAYCOM/HDLCDRV DRIVERS FOR AX.25
-M:	Thomas Sailer <[email protected]>
-L:	[email protected]
-S:	Maintained
-W:	http://www.baycom.org/~tom/ham/ham.html
-F:	drivers/net/hamradio/baycom*
-
 BCACHE (BLOCK LAYER CACHE)
 M:	Coly Li <[email protected]>
 M:	Kent Overstreet <[email protected]>
@@ -7020,20 +6999,6 @@ S:	Maintained
 F:	drivers/rtc/rtc-ds1685.c
 F:	include/linux/rtc/ds1685.h
 
-DAMA SLAVE for AX.25
-M:	Joerg Reuter <[email protected]>
-L:	[email protected]
-S:	Maintained
-W:	http://yaina.de/jreuter/
-W:	http://www.qsl.net/dl1bke/
-F:	net/ax25/af_ax25.c
-F:	net/ax25/ax25_dev.c
-F:	net/ax25/ax25_ds_*
-F:	net/ax25/ax25_in.c
-F:	net/ax25/ax25_out.c
-F:	net/ax25/ax25_timer.c
-F:	net/ax25/sysctl_net_ax25.c
-
 DASHARO ACPI PLATFORM DRIVER
 M:	Michał Kopeć <[email protected]>
 S:	Maintained
@@ -11444,11 +11409,6 @@ T:	git https://github.com/Rust-for-Linux/linux.git timekeeping-next
 F:	rust/kernel/time.rs
 F:	rust/kernel/time/
 
-HIGH-SPEED SCC DRIVER FOR AX.25
-L:	[email protected]
-S:	Orphan
-F:	drivers/net/hamradio/scc.c
-
 HIGHPOINT ROCKETRAID 3xxx RAID DRIVER
 M:	HighPoint Linux Team <[email protected]>
 S:	Supported
@@ -18272,14 +18232,6 @@ F:	net/bridge/br_netfilter*.c
 F:	net/netfilter/
 F:	tools/testing/selftests/net/netfilter/
 
-NETROM NETWORK LAYER
-L:	[email protected]
-S:	Orphan
-W:	https://linux-ax25.in-berlin.de
-F:	include/net/netrom.h
-F:	include/uapi/linux/netrom.h
-F:	net/netrom/
-
 NETRONIX EMBEDDED CONTROLLER
 M:	Jonathan Neuschäfer <[email protected]>
 S:	Maintained
@@ -23072,14 +23024,6 @@ F:	include/linux/mfd/rohm-bd96802.h
 F:	include/linux/mfd/rohm-generic.h
 F:	include/linux/mfd/rohm-shared.h
 
-ROSE NETWORK LAYER
-L:	[email protected]
-S:	Orphan
-W:	https://linux-ax25.in-berlin.de
-F:	include/net/rose.h
-F:	include/uapi/linux/rose.h
-F:	net/rose/
-
 ROTATION DRIVER FOR ALLWINNER A83T
 M:	Jernej Skrabec <[email protected]>
 L:	[email protected]
@@ -29105,13 +29049,6 @@ F:	lib/decompress_unxz.c
 F:	lib/xz/
 F:	scripts/xz_wrap.sh
 
-YAM DRIVER FOR AX.25
-M:	Jean-Paul Roubelat <[email protected]>
-L:	[email protected]
-S:	Maintained
-F:	drivers/net/hamradio/yam*
-F:	include/linux/yam.h
-
 YAMA SECURITY MODULE
 M:	Kees Cook <[email protected]>
 S:	Supported
@@ -29133,16 +29070,6 @@ S:	Maintained
 F:	Documentation/input/devices/yealink.rst
 F:	drivers/input/misc/yealink.*
 
-Z8530 DRIVER FOR AX.25
-M:	Joerg Reuter <[email protected]>
-L:	[email protected]
-S:	Maintained
-W:	http://yaina.de/jreuter/
-W:	http://www.qsl.net/dl1bke/
-F:	Documentation/networking/device_drivers/hamradio/z8530drv.rst
-F:	drivers/net/hamradio/*scc.c
-F:	drivers/net/hamradio/z8530.h
-
 ZD1211RW WIRELESS DRIVER
 L:	[email protected]
 S:	Orphan
Documentation/.renames.txt +0 -2
index c4de5200abdb..df4db1121995 100644
@@ -783,7 +783,6 @@ namespaces/compatibility-list admin-guide/namespaces/compatibility-list
 namespaces/index admin-guide/namespaces/index
 namespaces/resource-control admin-guide/namespaces/resource-control
 networking/altera_tse networking/device_drivers/ethernet/altera/altera_tse
-networking/baycom networking/device_drivers/hamradio/baycom
 networking/bpf_flow_dissector bpf/prog_flow_dissector
 networking/cxacru networking/device_drivers/atm/cxacru
 networking/defza networking/device_drivers/fddi/defza
@@ -846,7 +845,6 @@ networking/ixgbe networking/device_drivers/ethernet/intel/ixgbe
 networking/ixgbevf networking/device_drivers/ethernet/intel/ixgbevf
 networking/netdev-FAQ process/maintainer-netdev
 networking/skfp networking/device_drivers/fddi/skfp
-networking/z8530drv networking/device_drivers/hamradio/z8530drv
 nfc/index driver-api/nfc/index
 nfc/nfc-hci driver-api/nfc/nfc-hci
 nfc/nfc-pn544 driver-api/nfc/nfc-pn544
Documentation/admin-guide/kernel-parameters.txt +0 -18
index f2ce1f4975c1..09354ff7cff2 100644
@@ -6,7 +6,6 @@
 	APPARMOR AppArmor support is enabled.
 	ARM	ARM architecture is enabled.
 	ARM64	ARM64 architecture is enabled.
-	AX25	Appropriate AX.25 support is enabled.
 	CLK	Common clock infrastructure is enabled.
 	CMA	Contiguous Memory Area support is enabled.
 	DRM	Direct Rendering Management support is enabled.
@@ -633,23 +632,6 @@ Kernel parameters
 			1 - Enable the BAU.
 			unset - Disable the BAU.
 
-	baycom_epp=	[HW,AX25]
-			Format: <io>,<mode>
-
-	baycom_par=	[HW,AX25] BayCom Parallel Port AX.25 Modem
-			Format: <io>,<mode>
-			See header of drivers/net/hamradio/baycom_par.c.
-
-	baycom_ser_fdx=	[HW,AX25]
-			BayCom Serial Port AX.25 Modem (Full Duplex Mode)
-			Format: <io>,<irq>,<mode>[,<baud>]
-			See header of drivers/net/hamradio/baycom_ser_fdx.c.
-
-	baycom_ser_hdx=	[HW,AX25]
-			BayCom Serial Port AX.25 Modem (Half Duplex Mode)
-			Format: <io>,<irq>,<mode>
-			See header of drivers/net/hamradio/baycom_ser_hdx.c.
-
 	bdev_allow_write_mounted=
 			Format: <bool>
 			Control the ability to open a mounted block device
Documentation/networking/6pack.rst deleted +0 -191

191 lines not on this page · raw message

Documentation/networking/ax25.rst deleted +0 -17
deleted file mode 100644
index 89c79dd6c6f9..000000000000
@@ -1,17 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0
-
-=====
-AX.25
-=====
-
-To use the amateur radio protocols within Linux you will need to get a
-suitable copy of the AX.25 Utilities. More detailed information about
-AX.25, NET/ROM and ROSE, associated programs and utilities can be
-found on https://linux-ax25.in-berlin.de.
-
-There is a mailing list for discussing Linux amateur radio matters
-called [email protected]. To subscribe to it, send a message to
[email protected] or use the web interface at
-https://vger.kernel.org. The subject and body of the message are
-ignored.  You don't need to be subscribed to post but of course that
-means you might miss an answer.
Documentation/networking/device_drivers/hamradio/baycom.rst deleted +0 -174

174 lines not on this page · raw message

Documentation/networking/device_drivers/hamradio/index.rst deleted +0 -12
deleted file mode 100644
index 6af481c5b020..000000000000
@@ -1,12 +0,0 @@
-.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-
-Amateur Radio Device Drivers
-============================
-
-Contents:
-
-.. toctree::
-   :maxdepth: 2
-
-   baycom
-   z8530drv
Documentation/networking/device_drivers/hamradio/z8530drv.rst deleted +0 -686

686 lines not on this page · raw message

Documentation/networking/device_drivers/index.rst +0 -1
index 1df51c9f7827..1f54f01d24be 100644
@@ -13,6 +13,5 @@ Hardware Device Drivers
    cellular/index
    ethernet/index
    fddi/index
-   hamradio/index
    wifi/index
    wwan/index
Documentation/networking/index.rst +0 -2
index 2e946924ad3f..44a422ad3b05 100644
@@ -40,11 +40,9 @@ Refer to :ref:`netdev-FAQ` for a guide on netdev development process specifics.
    tls-handshake
    nfc
    6lowpan
-   6pack
    arcnet-hardware
    arcnet
    atm
-   ax25
    bonding
    cdc_mbim
    dctcp
Documentation/staging/magic-number.rst +0 -3
index 79afddf0e692..670d3189a976 100644
@@ -72,11 +72,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/uapi/l
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip/slip.h``
-BAYCOM_MAGIC          19730510         baycom_state             ``drivers/net/hamradio/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
 CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
 CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
 QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
 QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/it_IT/staging/magic-number.rst +0 -3
index cd8f23571835..43dd6398300b 100644
@@ -78,11 +78,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
 CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
 CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
 QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
 QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/sp_SP/process/magic-number.rst +0 -3
index beb4b4c1de11..f5b4c3f2849f 100644
@@ -77,11 +77,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
 CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
 CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
 QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
 QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/zh_CN/process/magic-number.rst +0 -3
index 4ebc84cc0c54..05ee75cf4346 100644
@@ -70,11 +70,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
 CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
 CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
 QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
 QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/zh_TW/process/magic-number.rst +0 -3
index 5582df6d7ca7..bc7eb025dd1e 100644
@@ -64,11 +64,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
 CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
 CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
 QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
 QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
drivers/net/hamradio/Kconfig deleted +0 -162

162 lines not on this page · raw message

net/Kconfig +0 -1
index 5c588dbcbdbd..bdea8aef7983 100644
@@ -414,7 +414,6 @@ endmenu # Network testing
 
 endmenu # Networking options
 
-source "net/ax25/Kconfig"
 source "net/can/Kconfig"
 source "net/bluetooth/Kconfig"
 source "net/rxrpc/Kconfig"
net/ax25/Kconfig deleted +0 -108

108 lines not on this page · raw message

drivers/net/Makefile +0 -1
index 3b2d28127634..b87a741fc952 100644
@@ -54,7 +54,6 @@ obj-y += dsa/
 endif
 obj-$(CONFIG_ETHERNET) += ethernet/
 obj-$(CONFIG_FDDI) += fddi/
-obj-$(CONFIG_HAMRADIO) += hamradio/
 obj-$(CONFIG_QCOM_IPA) += ipa/
 obj-$(CONFIG_PLIP) += plip/
 obj-$(CONFIG_PPP) += ppp/
drivers/net/hamradio/Makefile deleted +0 -22
deleted file mode 100644
index 25fc400369ba..000000000000
@@ -1,22 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Makefile for the Linux AX.25 and HFMODEM device drivers.
-#
-#
-# 19971130 	Moved the amateur radio related network drivers from 
-#		drivers/net/ to drivers/hamradio for easier maintenance.
-#               Joerg Reuter DL1BKE <[email protected]>
-#
-# 20000806	Rewritten to use lists instead of if-statements.
-#		Christoph Hellwig <[email protected]>
-#
-
-obj-$(CONFIG_SCC)		+= scc.o
-obj-$(CONFIG_MKISS)		+= mkiss.o
-obj-$(CONFIG_6PACK)		+= 6pack.o
-obj-$(CONFIG_YAM)		+= yam.o
-obj-$(CONFIG_BPQETHER)		+= bpqether.o
-obj-$(CONFIG_BAYCOM_SER_FDX)	+= baycom_ser_fdx.o	hdlcdrv.o
-obj-$(CONFIG_BAYCOM_SER_HDX)	+= baycom_ser_hdx.o	hdlcdrv.o
-obj-$(CONFIG_BAYCOM_PAR)	+= baycom_par.o		hdlcdrv.o
-obj-$(CONFIG_BAYCOM_EPP)	+= baycom_epp.o		hdlcdrv.o
net/Makefile +0 -3
index 98e182829eff..d2175fce0406 100644
@@ -28,9 +28,6 @@ obj-y				+= dsa/
 obj-$(CONFIG_ATALK)		+= appletalk/
 obj-$(CONFIG_X25)		+= x25/
 obj-$(CONFIG_LAPB)		+= lapb/
-obj-$(CONFIG_NETROM)		+= netrom/
-obj-$(CONFIG_ROSE)		+= rose/
-obj-$(CONFIG_AX25)		+= ax25/
 obj-$(CONFIG_CAN)		+= can/
 obj-$(CONFIG_BT)		+= bluetooth/
 obj-$(CONFIG_SUNRPC)		+= sunrpc/
net/ax25/Makefile deleted +0 -12
deleted file mode 100644
index 2e53affc8568..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Makefile for the Linux AX.25 layer.
-#
-
-obj-$(CONFIG_AX25) += ax25.o
-
-ax25-y	 := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \
-	    ax25_route.o ax25_std_in.o ax25_std_subr.o ax25_std_timer.o \
-	    ax25_subr.o ax25_timer.o ax25_uid.o af_ax25.o
-ax25-$(CONFIG_AX25_DAMA_SLAVE) += ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o
-ax25-$(CONFIG_SYSCTL) += sysctl_net_ax25.o
net/netrom/Makefile deleted +0 -10
deleted file mode 100644
index 603e36c9af2e..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for the Linux NET/ROM layer.
-#
-
-obj-$(CONFIG_NETROM) += netrom.o
-
-netrom-y		:= af_netrom.o nr_dev.o nr_in.o nr_loopback.o \
-			   nr_out.o nr_route.o nr_subr.o nr_timer.o
-netrom-$(CONFIG_SYSCTL)	+= sysctl_net_netrom.o
net/rose/Makefile deleted +0 -10
deleted file mode 100644
index 3e6638f5ba57..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for the Linux Rose (X.25 PLP) layer.
-#
-
-obj-$(CONFIG_ROSE) += rose.o
-
-rose-y	  := af_rose.o rose_dev.o rose_in.o rose_link.o rose_loopback.o \
-	     rose_out.o rose_route.o rose_subr.o rose_timer.o
-rose-$(CONFIG_SYSCTL) += sysctl_net_rose.o
drivers/net/hamradio/z8530.h deleted +0 -246

246 lines not on this page · raw message

include/linux/hdlcdrv.h deleted +0 -276

276 lines not on this page · raw message

include/linux/netdevice.h +1 -4
index 7969fcdd5ac4..e9e2ec8d4c19 100644
@@ -162,7 +162,7 @@ static inline bool dev_xmit_complete(int rc)
 
 #if defined(CONFIG_HYPERV_NET)
 # define LL_MAX_HEADER 128
-#elif defined(CONFIG_WLAN) || IS_ENABLED(CONFIG_AX25)
+#elif defined(CONFIG_WLAN)
 # if defined(CONFIG_MAC80211_MESH)
 #  define LL_MAX_HEADER 128
 # else
@@ -2316,9 +2316,6 @@ struct net_device {
 #if IS_ENABLED(CONFIG_ATALK)
 	void 			*atalk_ptr;
 #endif
-#if IS_ENABLED(CONFIG_AX25)
-	struct ax25_dev	__rcu	*ax25_ptr;
-#endif
 #if IS_ENABLED(CONFIG_CFG80211)
 	struct wireless_dev	*ieee80211_ptr;
 #endif
include/linux/scc.h deleted +0 -86

86 lines not on this page · raw message

include/linux/yam.h deleted +0 -67

67 lines not on this page · raw message

include/net/ax25.h +3 -473

483 lines not on this page · raw message

include/net/netrom.h deleted +0 -273

155 lines not on this page · raw message

include/net/rose.h +2 -261

263 lines not on this page · raw message

include/uapi/linux/baycom.h deleted +0 -40
deleted file mode 100644
index 478cb565ae52..000000000000

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

include/uapi/linux/hdlcdrv.h deleted +0 -111

111 lines not on this page · raw message

include/uapi/linux/netrom.h deleted +0 -37
deleted file mode 100644
index 7498ea3c3940..000000000000

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

include/uapi/linux/rose.h deleted +0 -91

91 lines not on this page · raw message

include/uapi/linux/scc.h deleted +0 -174

174 lines not on this page · raw message

drivers/net/hamradio/6pack.c deleted +0 -912

912 lines not on this page · raw message

drivers/net/hamradio/baycom_epp.c deleted +0 -1316

1,316 lines not on this page · raw message

drivers/net/hamradio/baycom_par.c deleted +0 -598

598 lines not on this page · raw message

drivers/net/hamradio/baycom_ser_fdx.c deleted +0 -678

678 lines not on this page · raw message

drivers/net/hamradio/baycom_ser_hdx.c deleted +0 -727

727 lines not on this page · raw message

drivers/net/hamradio/bpqether.c deleted +0 -593

593 lines not on this page · raw message

drivers/net/hamradio/hdlcdrv.c deleted +0 -747

747 lines not on this page · raw message

drivers/net/hamradio/mkiss.c deleted +0 -980

980 lines not on this page · raw message

drivers/net/hamradio/scc.c deleted +0 -2179

2,179 lines not on this page · raw message

drivers/net/hamradio/yam.c deleted +0 -1191

1,191 lines not on this page · raw message

net/ax25/af_ax25.c deleted +0 -2089

2,089 lines not on this page · raw message

net/ax25/ax25_addr.c deleted +0 -303

303 lines not on this page · raw message

net/ax25/ax25_dev.c deleted +0 -200

200 lines not on this page · raw message

net/ax25/ax25_ds_in.c deleted +0 -298

298 lines not on this page · raw message

net/ax25/ax25_ds_subr.c deleted +0 -204

204 lines not on this page · raw message

net/ax25/ax25_ds_timer.c deleted +0 -235

235 lines not on this page · raw message

net/ax25/ax25_iface.c deleted +0 -214

214 lines not on this page · raw message

net/ax25/ax25_in.c deleted +0 -455

455 lines not on this page · raw message

net/ax25/ax25_ip.c deleted +0 -247

247 lines not on this page · raw message

net/ax25/ax25_out.c deleted +0 -398

398 lines not on this page · raw message

net/ax25/ax25_route.c deleted +0 -416

416 lines not on this page · raw message

net/ax25/ax25_std_in.c deleted +0 -443

443 lines not on this page · raw message

net/ax25/ax25_std_subr.c deleted +0 -83

83 lines not on this page · raw message

net/ax25/ax25_std_timer.c deleted +0 -175

175 lines not on this page · raw message

net/ax25/ax25_subr.c deleted +0 -296

296 lines not on this page · raw message

net/ax25/ax25_timer.c deleted +0 -224

224 lines not on this page · raw message

net/ax25/ax25_uid.c deleted +0 -204

204 lines not on this page · raw message

net/ax25/sysctl_net_ax25.c deleted +0 -181

181 lines not on this page · raw message

net/ipv4/arp.c +0 -1
index 51d70180e1cc..d409f606aec0 100644

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

net/netrom/af_netrom.c deleted +0 -1536

1,536 lines not on this page · raw message

net/netrom/nr_dev.c deleted +0 -178

178 lines not on this page · raw message

net/netrom/nr_in.c deleted +0 -301

301 lines not on this page · raw message

net/netrom/nr_loopback.c deleted +0 -73

73 lines not on this page · raw message

net/netrom/nr_out.c deleted +0 -272

272 lines not on this page · raw message

net/netrom/nr_route.c deleted +0 -989

989 lines not on this page · raw message

net/netrom/nr_subr.c deleted +0 -280

280 lines not on this page · raw message

net/netrom/nr_timer.c deleted +0 -249

249 lines not on this page · raw message

net/netrom/sysctl_net_netrom.c deleted +0 -156

156 lines not on this page · raw message

net/rose/af_rose.c deleted +0 -1687

1,687 lines not on this page · raw message

net/rose/rose_dev.c deleted +0 -141

141 lines not on this page · raw message

net/rose/rose_in.c deleted +0 -301

301 lines not on this page · raw message

net/rose/rose_link.c deleted +0 -289

289 lines not on this page · raw message

net/rose/rose_loopback.c deleted +0 -133

133 lines not on this page · raw message

net/rose/rose_out.c deleted +0 -122

122 lines not on this page · raw message

net/rose/rose_route.c deleted +0 -1333

1,333 lines not on this page · raw message

net/rose/rose_subr.c deleted +0 -556

556 lines not on this page · raw message

net/rose/rose_timer.c deleted +0 -227

227 lines not on this page · raw message

net/rose/sysctl_net_rose.c deleted +0 -125

125 lines not on this page · raw message

arch/mips/configs/bcm47xx_defconfig +0 -1
index d10b3d4adbd1..acbab8dae53f 100644

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

arch/mips/configs/bigsur_defconfig +0 -10
index 3b64e151e187..aa63ada62e28 100644

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

arch/mips/configs/gpr_defconfig +0 -11
index 8097974489e3..ad80ad2eae6b 100644

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

arch/mips/configs/mtx1_defconfig +0 -11
index 63787b8b733e..1295164af08e 100644

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

arch/mips/configs/rb532_defconfig +0 -1
index 30d18b084cda..a88322fe3935 100644

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

arch/mips/configs/rm200_defconfig +0 -7
index b1e67ff0c4f0..ad9fbd0cbb38 100644

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

arch/mips/configs/rt305x_defconfig +0 -1
index 8f9701efef19..c920976bedd0 100644

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

arch/mips/configs/xway_defconfig +0 -1
index aae8497b6872..f1c53bbb72e9 100644

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

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

Signature · 1 line
2.53.0

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

maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Quoted 6 lines

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

Acked-by on v1 1/1
#2 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · On Mon, 20 Apr 2026 19:18:23 -0700 Jakub Kicinski <[email protected]> wrote:

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Quoted 7 lines

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

---

PS: once this is merged will remove these protos from iproute2 as well

#3 lore raw
In reply to Jakub Kicinski
Quoted 10 lines · On Mon, 20 Apr 2026 19:18:23 -0700 Jakub Kicinski <[email protected]> wrote:

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

It would be good if these protocols could be done in userspace or with BPF?

#4 lore raw
Quoted 9 lines · Stephen Hemminger
Quoted 7 lines · On Mon, 20 Apr 2026 19:18:23 -0700 Jakub Kicinski <[email protected]> wrote:

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

Quoted 6 lines
Quoted 3 lines

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

It would be good if these protocols could be done in userspace or with BPF?

Consensus for a userspace implementation is what folks on linux-hams seem to be converging on.

The amateur radio protocols are more or less specific to low-speed links, they are not particularly coupled to anything else that requires running in the kernel, and the main coupling point (IP over AX.25) can be implemented via TAP/TUN.

There are several popular packages that already implement AX.25 and NET/ROM in user-space (for the interested, LinBPQ seems to be the canonical example). The main missing piece is ROSE, but it is likely easier to add that to an existing package, or potentially something brand new, than keep it in the kernel.

There's no compelling reason to keep these protocols in the kernel, whether in-tree or out-of-tree; at least, one has not been articulated.

- Dan C.

#5 lore raw
Quoted 32 lines · On Tue, 21 Apr 2026 12:17:23 -0400 Dan Cross <[email protected]> wrote:
Quoted 9 lines · Stephen Hemminger
Quoted 7 lines · On Mon, 20 Apr 2026 19:18:23 -0700 Jakub Kicinski <[email protected]> wrote:

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

Quoted 6 lines
Quoted 3 lines

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

It would be good if these protocols could be done in userspace or with BPF?

Consensus for a userspace implementation is what folks on linux-hams seem to be converging on.

The amateur radio protocols are more or less specific to low-speed links, they are not particularly coupled to anything else that requires running in the kernel, and the main coupling point (IP over AX.25) can be implemented via TAP/TUN.

There are several popular packages that already implement AX.25 and NET/ROM in user-space (for the interested, LinBPQ seems to be the canonical example). The main missing piece is ROSE, but it is likely easier to add that to an existing package, or potentially something brand new, than keep it in the kernel.

Quoted 5 lines

There's no compelling reason to keep these protocols in the kernel, whether in-tree or out-of-tree; at least, one has not been articulated.

- Dan C.

Thanks, my other concern is carrying support for these in ip commands. If not kernel based, then iproute2 doesn't need to worry.

#6 lore raw
Quoted 35 lines · Stephen Hemminger
Quoted 32 lines · On Tue, 21 Apr 2026 12:17:23 -0400 Dan Cross <[email protected]> wrote:
Quoted 9 lines · Stephen Hemminger
Quoted 7 lines · On Mon, 20 Apr 2026 19:18:23 -0700 Jakub Kicinski <[email protected]> wrote:

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

Quoted 6 lines
Quoted 3 lines

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

It would be good if these protocols could be done in userspace or with BPF?

Consensus for a userspace implementation is what folks on linux-hams seem to be converging on.

The amateur radio protocols are more or less specific to low-speed links, they are not particularly coupled to anything else that requires running in the kernel, and the main coupling point (IP over AX.25) can be implemented via TAP/TUN.

There are several popular packages that already implement AX.25 and NET/ROM in user-space (for the interested, LinBPQ seems to be the canonical example). The main missing piece is ROSE, but it is likely easier to add that to an existing package, or potentially something brand new, than keep it in the kernel.

Quoted 6 lines
Quoted 3 lines

There's no compelling reason to keep these protocols in the kernel, whether in-tree or out-of-tree; at least, one has not been articulated.

Thanks, my other concern is carrying support for these in ip commands. If not kernel based, then iproute2 doesn't need to worry.

Agreed.

If someone really wants mimic the existing output of those commands in the context of a userspace implementation, they could write a wrapper program that invokes the real thing, and extracts relevant information from the ham protocol implementation, and interpolates it into the output. It may be an imperfect simulation, but it's probably close enough for most users.

- Dan C.

Acked-by on v1 1/1
#7 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Quoted 6 lines

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

Quoted 30,220 lines

---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
  MAINTAINERS                                   |   73 -
  Documentation/.renames.txt                    |    2 -
  .../admin-guide/kernel-parameters.txt         |   18 -
  Documentation/networking/6pack.rst            |  191 --
  Documentation/networking/ax25.rst             |   17 -
  .../device_drivers/hamradio/baycom.rst        |  174 --
  .../device_drivers/hamradio/index.rst         |   12 -
  .../device_drivers/hamradio/z8530drv.rst      |  686 ------
  .../networking/device_drivers/index.rst       |    1 -
  Documentation/networking/index.rst            |    2 -
  Documentation/staging/magic-number.rst        |    3 -
  .../it_IT/staging/magic-number.rst            |    3 -
  .../sp_SP/process/magic-number.rst            |    3 -
  .../zh_CN/process/magic-number.rst            |    3 -
  .../zh_TW/process/magic-number.rst            |    3 -
  drivers/net/hamradio/Kconfig                  |  162 --
  net/Kconfig                                   |    1 -
  net/ax25/Kconfig                              |  108 -
  drivers/net/Makefile                          |    1 -
  drivers/net/hamradio/Makefile                 |   22 -
  net/Makefile                                  |    3 -
  net/ax25/Makefile                             |   12 -
  net/netrom/Makefile                           |   10 -
  net/rose/Makefile                             |   10 -
  drivers/net/hamradio/z8530.h                  |  246 --
  include/linux/hdlcdrv.h                       |  276 ---
  include/linux/netdevice.h                     |    5 +-
  include/linux/scc.h                           |   86 -
  include/linux/yam.h                           |   67 -
  include/net/ax25.h                            |  476 +---
  include/net/netrom.h                          |  273 ---
  include/net/rose.h                            |  263 +-
  include/uapi/linux/baycom.h                   |   40 -
  include/uapi/linux/hdlcdrv.h                  |  111 -
  include/uapi/linux/netrom.h                   |   37 -
  include/uapi/linux/rose.h                     |   91 -
  include/uapi/linux/scc.h                      |  174 --
  drivers/net/hamradio/6pack.c                  |  912 -------
  drivers/net/hamradio/baycom_epp.c             | 1316 ----------
  drivers/net/hamradio/baycom_par.c             |  598 -----
  drivers/net/hamradio/baycom_ser_fdx.c         |  678 -----
  drivers/net/hamradio/baycom_ser_hdx.c         |  727 ------
  drivers/net/hamradio/bpqether.c               |  593 -----
  drivers/net/hamradio/hdlcdrv.c                |  747 ------
  drivers/net/hamradio/mkiss.c                  |  980 --------
  drivers/net/hamradio/scc.c                    | 2179 -----------------
  drivers/net/hamradio/yam.c                    | 1191 ---------
  net/ax25/af_ax25.c                            | 2089 ----------------
  net/ax25/ax25_addr.c                          |  303 ---
  net/ax25/ax25_dev.c                           |  200 --
  net/ax25/ax25_ds_in.c                         |  298 ---
  net/ax25/ax25_ds_subr.c                       |  204 --
  net/ax25/ax25_ds_timer.c                      |  235 --
  net/ax25/ax25_iface.c                         |  214 --
  net/ax25/ax25_in.c                            |  455 ----
  net/ax25/ax25_ip.c                            |  247 --
  net/ax25/ax25_out.c                           |  398 ---
  net/ax25/ax25_route.c                         |  416 ----
  net/ax25/ax25_std_in.c                        |  443 ----
  net/ax25/ax25_std_subr.c                      |   83 -
  net/ax25/ax25_std_timer.c                     |  175 --
  net/ax25/ax25_subr.c                          |  296 ---
  net/ax25/ax25_timer.c                         |  224 --
  net/ax25/ax25_uid.c                           |  204 --
  net/ax25/sysctl_net_ax25.c                    |  181 --
  net/ipv4/arp.c                                |    1 -
  net/netrom/af_netrom.c                        | 1536 ------------
  net/netrom/nr_dev.c                           |  178 --
  net/netrom/nr_in.c                            |  301 ---
  net/netrom/nr_loopback.c                      |   73 -
  net/netrom/nr_out.c                           |  272 --
  net/netrom/nr_route.c                         |  989 --------
  net/netrom/nr_subr.c                          |  280 ---
  net/netrom/nr_timer.c                         |  249 --
  net/netrom/sysctl_net_netrom.c                |  156 --
  net/rose/af_rose.c                            | 1687 -------------
  net/rose/rose_dev.c                           |  141 --
  net/rose/rose_in.c                            |  301 ---
  net/rose/rose_link.c                          |  289 ---
  net/rose/rose_loopback.c                      |  133 -
  net/rose/rose_out.c                           |  122 -
  net/rose/rose_route.c                         | 1333 ----------
  net/rose/rose_subr.c                          |  556 -----
  net/rose/rose_timer.c                         |  227 --
  net/rose/sysctl_net_rose.c                    |  125 -
  arch/mips/configs/bcm47xx_defconfig           |    1 -
  arch/mips/configs/bigsur_defconfig            |   10 -
  arch/mips/configs/gpr_defconfig               |   11 -
  arch/mips/configs/mtx1_defconfig              |   11 -
  arch/mips/configs/rb532_defconfig             |    1 -
  arch/mips/configs/rm200_defconfig             |    7 -
  arch/mips/configs/rt305x_defconfig            |    1 -
  arch/mips/configs/xway_defconfig              |    1 -
  93 files changed, 6 insertions(+), 29237 deletions(-)

delete mode 100644 Documentation/networking/6pack.rst
delete mode 100644 Documentation/networking/ax25.rst
delete mode 100644 Documentation/networking/device_drivers/hamradio/baycom.rst delete mode 100644 Documentation/networking/device_drivers/hamradio/index.rst delete mode 100644 Documentation/networking/device_drivers/hamradio/z8530drv.rst delete mode 100644 drivers/net/hamradio/Kconfig
delete mode 100644 net/ax25/Kconfig
delete mode 100644 drivers/net/hamradio/Makefile
delete mode 100644 net/ax25/Makefile
delete mode 100644 net/netrom/Makefile
delete mode 100644 net/rose/Makefile
delete mode 100644 drivers/net/hamradio/z8530.h
delete mode 100644 include/linux/hdlcdrv.h
delete mode 100644 include/linux/scc.h
delete mode 100644 include/linux/yam.h
delete mode 100644 include/net/netrom.h
delete mode 100644 include/uapi/linux/baycom.h
delete mode 100644 include/uapi/linux/hdlcdrv.h
delete mode 100644 include/uapi/linux/netrom.h
delete mode 100644 include/uapi/linux/rose.h
delete mode 100644 include/uapi/linux/scc.h
delete mode 100644 drivers/net/hamradio/6pack.c
delete mode 100644 drivers/net/hamradio/baycom_epp.c
delete mode 100644 drivers/net/hamradio/baycom_par.c
delete mode 100644 drivers/net/hamradio/baycom_ser_fdx.c
delete mode 100644 drivers/net/hamradio/baycom_ser_hdx.c
delete mode 100644 drivers/net/hamradio/bpqether.c
delete mode 100644 drivers/net/hamradio/hdlcdrv.c
delete mode 100644 drivers/net/hamradio/mkiss.c
delete mode 100644 drivers/net/hamradio/scc.c
delete mode 100644 drivers/net/hamradio/yam.c
delete mode 100644 net/ax25/af_ax25.c
delete mode 100644 net/ax25/ax25_addr.c
delete mode 100644 net/ax25/ax25_dev.c
delete mode 100644 net/ax25/ax25_ds_in.c
delete mode 100644 net/ax25/ax25_ds_subr.c
delete mode 100644 net/ax25/ax25_ds_timer.c
delete mode 100644 net/ax25/ax25_iface.c
delete mode 100644 net/ax25/ax25_in.c
delete mode 100644 net/ax25/ax25_ip.c
delete mode 100644 net/ax25/ax25_out.c
delete mode 100644 net/ax25/ax25_route.c
delete mode 100644 net/ax25/ax25_std_in.c
delete mode 100644 net/ax25/ax25_std_subr.c
delete mode 100644 net/ax25/ax25_std_timer.c
delete mode 100644 net/ax25/ax25_subr.c
delete mode 100644 net/ax25/ax25_timer.c
delete mode 100644 net/ax25/ax25_uid.c
delete mode 100644 net/ax25/sysctl_net_ax25.c
delete mode 100644 net/netrom/af_netrom.c
delete mode 100644 net/netrom/nr_dev.c
delete mode 100644 net/netrom/nr_in.c
delete mode 100644 net/netrom/nr_loopback.c
delete mode 100644 net/netrom/nr_out.c
delete mode 100644 net/netrom/nr_route.c
delete mode 100644 net/netrom/nr_subr.c
delete mode 100644 net/netrom/nr_timer.c
delete mode 100644 net/netrom/sysctl_net_netrom.c
delete mode 100644 net/rose/af_rose.c
delete mode 100644 net/rose/rose_dev.c
delete mode 100644 net/rose/rose_in.c
delete mode 100644 net/rose/rose_link.c
delete mode 100644 net/rose/rose_loopback.c
delete mode 100644 net/rose/rose_out.c
delete mode 100644 net/rose/rose_route.c
delete mode 100644 net/rose/rose_subr.c
delete mode 100644 net/rose/rose_timer.c
delete mode 100644 net/rose/sysctl_net_rose.c

MAINTAINERS +0 -73
index 66f29cde4985..cfcf422dd40a 100644
@@ -102,12 +102,6 @@ F:	Documentation/networking/6lowpan.rst
  F:	include/net/6lowpan.h
  F:	net/6lowpan/
 
-6PACK NETWORK DRIVER FOR AX.25
-M:	Andreas Koensgen <[email protected]>
-L:	[email protected]
-S:	Maintained
-F:	drivers/net/hamradio/6pack.c
-
  802.11 (including CFG80211/NL80211)
  M:	Johannes Berg <[email protected]>
  L:	[email protected]
@@ -4281,14 +4275,6 @@ S:	Maintained
  F:	Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml
  F:	drivers/video/backlight/aw99706.c
 
-AX.25 NETWORK LAYER
-L:	[email protected]
-S:	Orphan
-W:	https://linux-ax25.in-berlin.de
-F:	include/net/ax25.h
-F:	include/uapi/linux/ax25.h
-F:	net/ax25/
-
  AXENTIA ARM DEVICES
  M:	Peter Rosin <[email protected]>
  L:	[email protected] (moderated for non-subscribers)
@@ -4430,13 +4416,6 @@ F:	include/uapi/linux/batadv_packet.h
  F:	include/uapi/linux/batman_adv.h
  F:	net/batman-adv/
 
-BAYCOM/HDLCDRV DRIVERS FOR AX.25
-M:	Thomas Sailer <[email protected]>
-L:	[email protected]
-S:	Maintained
-W:	http://www.baycom.org/~tom/ham/ham.html
-F:	drivers/net/hamradio/baycom*
-
  BCACHE (BLOCK LAYER CACHE)
  M:	Coly Li <[email protected]>
  M:	Kent Overstreet <[email protected]>
@@ -7020,20 +6999,6 @@ S:	Maintained
  F:	drivers/rtc/rtc-ds1685.c
  F:	include/linux/rtc/ds1685.h
 
-DAMA SLAVE for AX.25
-M:	Joerg Reuter <[email protected]>
-L:	[email protected]
-S:	Maintained
-W:	http://yaina.de/jreuter/
-W:	http://www.qsl.net/dl1bke/
-F:	net/ax25/af_ax25.c
-F:	net/ax25/ax25_dev.c
-F:	net/ax25/ax25_ds_*
-F:	net/ax25/ax25_in.c
-F:	net/ax25/ax25_out.c
-F:	net/ax25/ax25_timer.c
-F:	net/ax25/sysctl_net_ax25.c
-
  DASHARO ACPI PLATFORM DRIVER
  M:	Michał Kopeć <[email protected]>
  S:	Maintained
@@ -11444,11 +11409,6 @@ T:	git https://github.com/Rust-for-Linux/linux.git timekeeping-next
  F:	rust/kernel/time.rs
  F:	rust/kernel/time/
 
-HIGH-SPEED SCC DRIVER FOR AX.25
-L:	[email protected]
-S:	Orphan
-F:	drivers/net/hamradio/scc.c
-
  HIGHPOINT ROCKETRAID 3xxx RAID DRIVER
  M:	HighPoint Linux Team <[email protected]>
  S:	Supported
@@ -18272,14 +18232,6 @@ F:	net/bridge/br_netfilter*.c
  F:	net/netfilter/
  F:	tools/testing/selftests/net/netfilter/
 
-NETROM NETWORK LAYER
-L:	[email protected]
-S:	Orphan
-W:	https://linux-ax25.in-berlin.de
-F:	include/net/netrom.h
-F:	include/uapi/linux/netrom.h
-F:	net/netrom/
-
  NETRONIX EMBEDDED CONTROLLER
  M:	Jonathan Neuschäfer <[email protected]>
  S:	Maintained
@@ -23072,14 +23024,6 @@ F:	include/linux/mfd/rohm-bd96802.h
  F:	include/linux/mfd/rohm-generic.h
  F:	include/linux/mfd/rohm-shared.h
 
-ROSE NETWORK LAYER
-L:	[email protected]
-S:	Orphan
-W:	https://linux-ax25.in-berlin.de
-F:	include/net/rose.h
-F:	include/uapi/linux/rose.h
-F:	net/rose/
-
  ROTATION DRIVER FOR ALLWINNER A83T
  M:	Jernej Skrabec <[email protected]>
  L:	[email protected]
@@ -29105,13 +29049,6 @@ F:	lib/decompress_unxz.c
  F:	lib/xz/
  F:	scripts/xz_wrap.sh
 
-YAM DRIVER FOR AX.25
-M:	Jean-Paul Roubelat <[email protected]>
-L:	[email protected]
-S:	Maintained
-F:	drivers/net/hamradio/yam*
-F:	include/linux/yam.h
-
  YAMA SECURITY MODULE
  M:	Kees Cook <[email protected]>
  S:	Supported
@@ -29133,16 +29070,6 @@ S:	Maintained
  F:	Documentation/input/devices/yealink.rst
  F:	drivers/input/misc/yealink.*
 
-Z8530 DRIVER FOR AX.25
-M:	Joerg Reuter <[email protected]>
-L:	[email protected]
-S:	Maintained
-W:	http://yaina.de/jreuter/
-W:	http://www.qsl.net/dl1bke/
-F:	Documentation/networking/device_drivers/hamradio/z8530drv.rst
-F:	drivers/net/hamradio/*scc.c
-F:	drivers/net/hamradio/z8530.h
-
  ZD1211RW WIRELESS DRIVER
  L:	[email protected]
  S:	Orphan
Documentation/.renames.txt +0 -2
index c4de5200abdb..df4db1121995 100644
@@ -783,7 +783,6 @@ namespaces/compatibility-list admin-guide/namespaces/compatibility-list
  namespaces/index admin-guide/namespaces/index
  namespaces/resource-control admin-guide/namespaces/resource-control
  networking/altera_tse networking/device_drivers/ethernet/altera/altera_tse
-networking/baycom networking/device_drivers/hamradio/baycom
  networking/bpf_flow_dissector bpf/prog_flow_dissector
  networking/cxacru networking/device_drivers/atm/cxacru
  networking/defza networking/device_drivers/fddi/defza
@@ -846,7 +845,6 @@ networking/ixgbe networking/device_drivers/ethernet/intel/ixgbe
  networking/ixgbevf networking/device_drivers/ethernet/intel/ixgbevf
  networking/netdev-FAQ process/maintainer-netdev
  networking/skfp networking/device_drivers/fddi/skfp
-networking/z8530drv networking/device_drivers/hamradio/z8530drv
  nfc/index driver-api/nfc/index
  nfc/nfc-hci driver-api/nfc/nfc-hci
  nfc/nfc-pn544 driver-api/nfc/nfc-pn544
Documentation/admin-guide/kernel-parameters.txt +0 -18
index f2ce1f4975c1..09354ff7cff2 100644
@@ -6,7 +6,6 @@
  	APPARMOR AppArmor support is enabled.
  	ARM	ARM architecture is enabled.
  	ARM64	ARM64 architecture is enabled.
-	AX25	Appropriate AX.25 support is enabled.
  	CLK	Common clock infrastructure is enabled.
  	CMA	Contiguous Memory Area support is enabled.
  	DRM	Direct Rendering Management support is enabled.
@@ -633,23 +632,6 @@ Kernel parameters
  			1 - Enable the BAU.
  			unset - Disable the BAU.
 
-	baycom_epp=	[HW,AX25]
-			Format: <io>,<mode>
-
-	baycom_par=	[HW,AX25] BayCom Parallel Port AX.25 Modem
-			Format: <io>,<mode>
-			See header of drivers/net/hamradio/baycom_par.c.
-
-	baycom_ser_fdx=	[HW,AX25]
-			BayCom Serial Port AX.25 Modem (Full Duplex Mode)
-			Format: <io>,<irq>,<mode>[,<baud>]
-			See header of drivers/net/hamradio/baycom_ser_fdx.c.
-
-	baycom_ser_hdx=	[HW,AX25]
-			BayCom Serial Port AX.25 Modem (Half Duplex Mode)
-			Format: <io>,<irq>,<mode>
-			See header of drivers/net/hamradio/baycom_ser_hdx.c.
-
  	bdev_allow_write_mounted=
  			Format: <bool>
  			Control the ability to open a mounted block device
Documentation/networking/6pack.rst deleted +0 -191
deleted file mode 100644
index 66d5fd4fc821..000000000000
@@ -1,191 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0
-
-==============
-6pack Protocol
-==============
-
-This is the 6pack-mini-HOWTO, written by
-
-Andreas Könsgen DG3KQ
-
-:Internet: [email protected]
-:AMPR-net: [email protected]
-:AX.25:    dg3kq@db0ach.#nrw.deu.eu
-
-Last update: April 7, 1998
-
-1. What is 6pack, and what are the advantages to KISS?
-======================================================
-
-6pack is a transmission protocol for data exchange between the PC and
-the TNC over a serial line. It can be used as an alternative to KISS.
-
-6pack has two major advantages:
-
-- The PC is given full control over the radio
-  channel. Special control data is exchanged between the PC and the TNC so
-  that the PC knows at any time if the TNC is receiving data, if a TNC
-  buffer underrun or overrun has occurred, if the PTT is
-  set and so on. This control data is processed at a higher priority than
-  normal data, so a data stream can be interrupted at any time to issue an
-  important event. This helps to improve the channel access and timing
-  algorithms as everything is computed in the PC. It would even be possible
-  to experiment with something completely different from the known CSMA and
-  DAMA channel access methods.
-  This kind of real-time control is especially important to supply several
-  TNCs that are connected between each other and the PC by a daisy chain
-  (however, this feature is not supported yet by the Linux 6pack driver).
-
-- Each packet transferred over the serial line is supplied with a checksum,
-  so it is easy to detect errors due to problems on the serial line.
-  Received packets that are corrupt are not passed on to the AX.25 layer.
-  Damaged packets that the TNC has received from the PC are not transmitted.
-
-More details about 6pack are described in the file 6pack.ps that is located
-in the doc directory of the AX.25 utilities package.
-
-2. Who has developed the 6pack protocol?
-========================================
-
-The 6pack protocol has been developed by Ekki Plicht DF4OR, Henning Rech
-DF9IC and Gunter Jost DK7WJ. A driver for 6pack, written by Gunter Jost and
-Matthias Welwarsky DG2FEF, comes along with the PC version of FlexNet.
-They have also written a firmware for TNCs to perform the 6pack
-protocol (see section 4 below).
-
-3. Where can I get the latest version of 6pack for LinuX?
-=========================================================
-
-At the moment, the 6pack stuff can obtained via anonymous ftp from
-db0bm.automation.fh-aachen.de. In the directory /incoming/dg3kq,
-there is a file named 6pack.tgz.
-
-4. Preparing the TNC for 6pack operation
-========================================
-
-To be able to use 6pack, a special firmware for the TNC is needed. The EPROM
-of a newly bought TNC does not contain 6pack, so you will have to
-program an EPROM yourself. The image file for 6pack EPROMs should be
-available on any packet radio box where PC/FlexNet can be found. The name of
-the file is 6pack.bin. This file is copyrighted and maintained by the FlexNet
-team. It can be used under the terms of the license that comes along
-with PC/FlexNet. Please do not ask me about the internals of this file as I
-don't know anything about it. I used a textual description of the 6pack
-protocol to program the Linux driver.
-
-TNCs contain a 64kByte EPROM, the lower half of which is used for
-the firmware/KISS. The upper half is either empty or is sometimes
-programmed with software called TAPR. In the latter case, the TNC
-is supplied with a DIP switch so you can easily change between the
-two systems. When programming a new EPROM, one of the systems is replaced
-by 6pack. It is useful to replace TAPR, as this software is rarely used
-nowadays. If your TNC is not equipped with the switch mentioned above, you
-can build in one yourself that switches over the highest address pin
-of the EPROM between HIGH and LOW level. After having inserted the new EPROM
-and switched to 6pack, apply power to the TNC for a first test. The connect
-and the status LED are lit for about a second if the firmware initialises
-the TNC correctly.
-
-5. Building and installing the 6pack driver
-===========================================
-
-The driver has been tested with kernel version 2.1.90. Use with older
-kernels may lead to a compilation error because the interface to a kernel
-function has been changed in the 2.1.8x kernels.
-
-How to turn on 6pack support:
------------------------------
-
-- In the linux kernel configuration program, select the code maturity level
-  options menu and turn on the prompting for development drivers.
-
-- Select the amateur radio support menu and turn on the serial port 6pack
-  driver.
-
-- Compile and install the kernel and the modules.
-
-To use the driver, the kissattach program delivered with the AX.25 utilities
-has to be modified.
-
-- Do a cd to the directory that holds the kissattach sources. Edit the
-  kissattach.c file. At the top, insert the following lines::
-
-    #ifndef N_6PACK
-    #define N_6PACK (N_AX25+1)
-    #endif
-
-  Then find the line:
-
-    int disc = N_AX25;
-
-  and replace N_AX25 by N_6PACK.
-
-- Recompile kissattach. Rename it to spattach to avoid confusions.
-
-Installing the driver:
-----------------------
-
-- Do an insmod 6pack. Look at your /var/log/messages file to check if the
-  module has printed its initialization message.
-
-- Do a spattach as you would launch kissattach when starting a KISS port.
-  Check if the kernel prints the message '6pack: TNC found'.
-
-- From here, everything should work as if you were setting up a KISS port.
-  The only difference is that the network device that represents
-  the 6pack port is called sp instead of sl or ax. So, sp0 would be the
-  first 6pack port.
-
-Although the driver has been tested on various platforms, I still declare it
-ALPHA. BE CAREFUL! Sync your disks before insmoding the 6pack module
-and spattaching. Watch out if your computer behaves strangely. Read section
-6 of this file about known problems.
-
-Note that the connect and status LEDs of the TNC are controlled in a
-different way than they are when the TNC is used with PC/FlexNet. When using
-FlexNet, the connect LED is on if there is a connection; the status LED is
-on if there is data in the buffer of the PC's AX.25 engine that has to be
-transmitted. Under Linux, the 6pack layer is beyond the AX.25 layer,
-so the 6pack driver doesn't know anything about connects or data that
-has not yet been transmitted. Therefore the LEDs are controlled
-as they are in KISS mode: The connect LED is turned on if data is transferred
-from the PC to the TNC over the serial line, the status LED if data is
-sent to the PC.
-
-6. Known problems
-=================
-
-When testing the driver with 2.0.3x kernels and
-operating with data rates on the radio channel of 9600 Baud or higher,
-the driver may, on certain systems, sometimes print the message '6pack:
-bad checksum', which is due to data loss if the other station sends two
-or more subsequent packets. I have been told that this is due to a problem
-with the serial driver of 2.0.3x kernels. I don't know yet if the problem
-still exists with 2.1.x kernels, as I have heard that the serial driver
-code has been changed with 2.1.x.
-
-When shutting down the sp interface with ifconfig, the kernel crashes if
-there is still an AX.25 connection left over which an IP connection was
-running, even if that IP connection is already closed. The problem does not
-occur when there is a bare AX.25 connection still running. I don't know if
-this is a problem of the 6pack driver or something else in the kernel.
-
-The driver has been tested as a module, not yet as a kernel-builtin driver.
-
-The 6pack protocol supports daisy-chaining of TNCs in a token ring, which is
-connected to one serial port of the PC. This feature is not implemented
-and at least at the moment I won't be able to do it because I do not have
-the opportunity to build a TNC daisy-chain and test it.
-
-Some of the comments in the source code are inaccurate. They are left from
-the SLIP/KISS driver, from which the 6pack driver has been derived.
-I haven't modified or removed them yet -- sorry! The code itself needs
-some cleaning and optimizing. This will be done in a later release.
-
-If you encounter a bug or if you have a question or suggestion concerning the
-driver, feel free to mail me, using the addresses given at the beginning of
-this file.
-
-Have fun!
-
-Andreas
Documentation/networking/ax25.rst deleted +0 -17
deleted file mode 100644
index 89c79dd6c6f9..000000000000
@@ -1,17 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0
-
-=====
-AX.25
-=====
-
-To use the amateur radio protocols within Linux you will need to get a
-suitable copy of the AX.25 Utilities. More detailed information about
-AX.25, NET/ROM and ROSE, associated programs and utilities can be
-found on https://linux-ax25.in-berlin.de.
-
-There is a mailing list for discussing Linux amateur radio matters
-called [email protected]. To subscribe to it, send a message to
[email protected] or use the web interface at
-https://vger.kernel.org. The subject and body of the message are
-ignored.  You don't need to be subscribed to post but of course that
-means you might miss an answer.
Documentation/networking/device_drivers/hamradio/baycom.rst deleted +0 -174
deleted file mode 100644
index fe2d010f0e86..000000000000
@@ -1,174 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0
-
-===============================
-Linux Drivers for Baycom Modems
-===============================
-
-Thomas M. Sailer, HB9JNX/AE4WA, <[email protected]>
-
-The drivers for the baycom modems have been split into
-separate drivers as they did not share any code, and the driver
-and device names have changed.
-
-This document describes the Linux Kernel Drivers for simple Baycom style
-amateur radio modems.
-
-The following drivers are available:
-====================================
-
-baycom_ser_fdx:
-  This driver supports the SER12 modems either full or half duplex.
-  Its baud rate may be changed via the ``baud`` module parameter,
-  therefore it supports just about every bit bang modem on a
-  serial port. Its devices are called bcsf0 through bcsf3.
-  This is the recommended driver for SER12 type modems,
-  however if you have a broken UART clone that does not have working
-  delta status bits, you may try baycom_ser_hdx.
-
-baycom_ser_hdx:
-  This is an alternative driver for SER12 type modems.
-  It only supports half duplex, and only 1200 baud. Its devices
-  are called bcsh0 through bcsh3. Use this driver only if baycom_ser_fdx
-  does not work with your UART.
-
-baycom_par:
-  This driver supports the par96 and picpar modems.
-  Its devices are called bcp0 through bcp3.
-
-baycom_epp:
-  This driver supports the EPP modem.
-  Its devices are called bce0 through bce3.
-  This driver is work-in-progress.
-
-The following modems are supported:
-
-======= ========================================================================
-ser12   This is a very simple 1200 baud AFSK modem. The modem consists only
-	of a modulator/demodulator chip, usually a TI TCM3105. The computer
-	is responsible for regenerating the receiver bit clock, as well as
-	for handling the HDLC protocol. The modem connects to a serial port,
-	hence the name. Since the serial port is not used as an async serial
-	port, the kernel driver for serial ports cannot be used, and this
-	driver only supports standard serial hardware (8250, 16450, 16550)
-
-par96   This is a modem for 9600 baud FSK compatible to the G3RUH standard.
-	The modem does all the filtering and regenerates the receiver clock.
-	Data is transferred from and to the PC via a shift register.
-	The shift register is filled with 16 bits and an interrupt is signalled.
-	The PC then empties the shift register in a burst. This modem connects
-	to the parallel port, hence the name. The modem leaves the
-	implementation of the HDLC protocol and the scrambler polynomial to
-	the PC.
-
-picpar  This is a redesign of the par96 modem by Henning Rech, DF9IC. The modem
-	is protocol compatible to par96, but uses only three low power ICs
-	and can therefore be fed from the parallel port and does not require
-	an additional power supply. Furthermore, it incorporates a carrier
-	detect circuitry.
-
-EPP     This is a high-speed modem adaptor that connects to an enhanced parallel
-	port.
-
-	Its target audience is users working over a high speed hub (76.8kbit/s).
-
-eppfpga This is a redesign of the EPP adaptor.
-======= ========================================================================
-
-All of the above modems only support half duplex communications. However,
-the driver supports the KISS (see below) fullduplex command. It then simply
-starts to send as soon as there's a packet to transmit and does not care
-about DCD, i.e. it starts to send even if there's someone else on the channel.
-This command is required by some implementations of the DAMA channel
-access protocol.
-
-
-The Interface of the drivers
-============================
-
-Unlike previous drivers, these drivers are no longer character devices,
-but they are now true kernel network interfaces. Installation is therefore
-simple. Once installed, four interfaces named bc{sf,sh,p,e}[0-3] are available.
-sethdlc from the ax25 utilities may be used to set driver states etc.
-Users of userland AX.25 stacks may use the net2kiss utility (also available
-in the ax25 utilities package) to convert packets of a network interface
-to a KISS stream on a pseudo tty. There's also a patch available from
-me for WAMPES which allows attaching a kernel network interface directly.
-
-
-Configuring the driver
-======================
-
-Every time a driver is inserted into the kernel, it has to know which
-modems it should access at which ports. This can be done with the setbaycom
-utility. If you are only using one modem, you can also configure the
-driver from the insmod command line (or by means of an option line in
-``/etc/modprobe.d/*.conf``).
-
-Examples::
-
-  modprobe baycom_ser_fdx mode="ser12*" iobase=0x3f8 irq=4
-  sethdlc -i bcsf0 -p mode "ser12*" io 0x3f8 irq 4
-
-Both lines configure the first port to drive a ser12 modem at the first
-serial port (COM1 under DOS). The * in the mode parameter instructs the driver
-to use the software DCD algorithm (see below)::
-
-  insmod baycom_par mode="picpar" iobase=0x378
-  sethdlc -i bcp0 -p mode "picpar" io 0x378
-
-Both lines configure the first port to drive a picpar modem at the
-first parallel port (LPT1 under DOS). (Note: picpar implies
-hardware DCD, par96 implies software DCD).
-
-The channel access parameters can be set with sethdlc -a or kissparms.
-Note that both utilities interpret the values slightly differently.
-
-
-Hardware DCD versus Software DCD
-================================
-
-To avoid collisions on the air, the driver must know when the channel is
-busy. This is the task of the DCD circuitry/software. The driver may either
-utilise a software DCD algorithm (options=1) or use a DCD signal from
-the hardware (options=0).
-
-======= =================================================================
-ser12   if software DCD is utilised, the radio's squelch should always be
-	open. It is highly recommended to use the software DCD algorithm,
-	as it is much faster than most hardware squelch circuitry. The
-	disadvantage is a slightly higher load on the system.
-
-par96   the software DCD algorithm for this type of modem is rather poor.
-	The modem simply does not provide enough information to implement
-	a reasonable DCD algorithm in software. Therefore, if your radio
-	feeds the DCD input of the PAR96 modem, the use of the hardware
-	DCD circuitry is recommended.
-
-picpar  the picpar modem features a builtin DCD hardware, which is highly
-	recommended.
-======= =================================================================
-
-
-
-Compatibility with the rest of the Linux kernel
-===============================================
-
-The serial driver and the baycom serial drivers compete
-for the same hardware resources. Of course only one driver can access a given
-interface at a time. The serial driver grabs all interfaces it can find at
-startup time. Therefore the baycom drivers subsequently won't be able to
-access a serial port. You might therefore find it necessary to release
-a port owned by the serial driver with 'setserial /dev/ttyS# uart none', where
-# is the number of the interface. The baycom drivers do not reserve any
-ports at startup, unless one is specified on the 'insmod' command line. Another
-method to solve the problem is to compile all drivers as modules and
-leave it to kmod to load the correct driver depending on the application.
-
-The parallel port drivers (baycom_par, baycom_epp) now use the parport subsystem
-to arbitrate the ports between different client drivers.
-
-vy 73s de
-
-Tom Sailer, [email protected]
-
-hb9jnx @ hb9w.ampr.org
Documentation/networking/device_drivers/hamradio/index.rst deleted +0 -12
deleted file mode 100644
index 6af481c5b020..000000000000
@@ -1,12 +0,0 @@
-.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-
-Amateur Radio Device Drivers
-============================
-
-Contents:
-
-.. toctree::
-   :maxdepth: 2
-
-   baycom
-   z8530drv
Documentation/networking/device_drivers/hamradio/z8530drv.rst deleted +0 -686
deleted file mode 100644
index d2942760f167..000000000000
@@ -1,686 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0
-.. include:: <isonum.txt>
-
-=========================================================
-SCC.C - Linux driver for Z8530 based HDLC cards for AX.25
-=========================================================
-
-
-This is a subset of the documentation. To use this driver you MUST have the
-full package from:
-
-Internet:
-
-    1. ftp://ftp.ccac.rwth-aachen.de/pub/jr/z8530drv-utils_3.0-3.tar.gz
-
-    2. ftp://ftp.pspt.fi/pub/ham/linux/ax25/z8530drv-utils_3.0-3.tar.gz
-
-Please note that the information in this document may be hopelessly outdated.
-A new version of the documentation, along with links to other important
-Linux Kernel AX.25 documentation and programs, is available on
-http://yaina.de/jreuter
-
-Copyright |copy| 1993,2000 by Joerg Reuter DL1BKE <[email protected]>
-
-portions Copyright |copy| 1993 Guido ten Dolle PE1NNZ
-
-for the complete copyright notice see >> Copying.Z8530DRV <<
-
-1. Initialization of the driver
-===============================
-
-To use the driver, 3 steps must be performed:
-
-     1. if compiled as module: loading the module
-     2. Setup of hardware, MODEM and KISS parameters with sccinit
-     3. Attach each channel to the Linux kernel AX.25 with "ifconfig"
-
-Unlike the versions below 2.4 this driver is a real network device
-driver. If you want to run xNOS instead of our fine kernel AX.25
-use a 2.x version (available from above sites) or read the
-AX.25-HOWTO on how to emulate a KISS TNC on network device drivers.
-
-
-1.1 Loading the module
-======================
-
-(If you're going to compile the driver as a part of the kernel image,
- skip this chapter and continue with 1.2)
-
-Before you can use a module, you'll have to load it with::
-
-	insmod scc.o
-
-please read 'man insmod' that comes with module-init-tools.
-
-You should include the insmod in one of the /etc/rc.d/rc.* files,
-and don't forget to insert a call of sccinit after that. It
-will read your /etc/z8530drv.conf.
-
-1.2. /etc/z8530drv.conf
-=======================
-
-To setup all parameters you must run /sbin/sccinit from one
-of your rc.*-files. This has to be done BEFORE you can
-"ifconfig" an interface. Sccinit reads the file /etc/z8530drv.conf
-and sets the hardware, MODEM and KISS parameters. A sample file is
-delivered with this package. Change it to your needs.
-
-The file itself consists of two main sections.
-
-1.2.1 configuration of hardware parameters
-==========================================
-
-The hardware setup section defines the following parameters for each
-Z8530::
-
-    chip    1
-    data_a  0x300                   # data port A
-    ctrl_a  0x304                   # control port A
-    data_b  0x301                   # data port B
-    ctrl_b  0x305                   # control port B
-    irq     5                       # IRQ No. 5
-    pclock  4915200                 # clock
-    board   BAYCOM                  # hardware type
-    escc    no                      # enhanced SCC chip? (8580/85180/85280)
-    vector  0                       # latch for interrupt vector
-    special no                      # address of special function register
-    option  0                       # option to set via sfr
-
-
-chip
-	- this is just a delimiter to make sccinit a bit simpler to
-	  program. A parameter has no effect.
-
-data_a
-	- the address of the data port A of this Z8530 (needed)
-ctrl_a
-	- the address of the control port A (needed)
-data_b
-	- the address of the data port B (needed)
-ctrl_b
-	- the address of the control port B (needed)
-
-irq
-	- the used IRQ for this chip. Different chips can use different
-	  IRQs or the same. If they share an interrupt, it needs to be
-	  specified within one chip-definition only.
-
-pclock  - the clock at the PCLK pin of the Z8530 (option, 4915200 is
-	  default), measured in Hertz
-
-board
-	- the "type" of the board:
-
-	   =======================  ========
-	   SCC type                 value
-	   =======================  ========
-	   PA0HZP SCC card          PA0HZP
-	   EAGLE card               EAGLE
-	   PC100 card               PC100
-	   PRIMUS-PC (DG9BL) card   PRIMUS
-	   BayCom (U)SCC card       BAYCOM
-	   =======================  ========
-
-escc
-	- if you want support for ESCC chips (8580, 85180, 85280), set
-	  this to "yes" (option, defaults to "no")
-
-vector
-	- address of the vector latch (aka "intack port") for PA0HZP
-	  cards. There can be only one vector latch for all chips!
-	  (option, defaults to 0)
-
-special
-	- address of the special function register on several cards.
-	  (option, defaults to 0)
-
-option  - The value you write into that register (option, default is 0)
-
-You can specify up to four chips (8 channels). If this is not enough,
-just change::
-
-	#define MAXSCC 4
-
-to a higher value.
-
-Example for the BAYCOM USCC:
-----------------------------
-
-::
-
-	chip    1
-	data_a  0x300                   # data port A
-	ctrl_a  0x304                   # control port A
-	data_b  0x301                   # data port B
-	ctrl_b  0x305                   # control port B
-	irq     5                       # IRQ No. 5 (#)
-	board   BAYCOM                  # hardware type (*)
-	#
-	# SCC chip 2
-	#
-	chip    2
-	data_a  0x302
-	ctrl_a  0x306
-	data_b  0x303
-	ctrl_b  0x307
-	board   BAYCOM
-
-An example for a PA0HZP card:
------------------------------
-
-::
-
-	chip 1
-	data_a 0x153
-	data_b 0x151
-	ctrl_a 0x152
-	ctrl_b 0x150
-	irq 9
-	pclock 4915200
-	board PA0HZP
-	vector 0x168
-	escc no
-	#
-	#
-	#
-	chip 2
-	data_a 0x157
-	data_b 0x155
-	ctrl_a 0x156
-	ctrl_b 0x154
-	irq 9
-	pclock 4915200
-	board PA0HZP
-	vector 0x168
-	escc no
-
-A DRSI would should probably work with this:
---------------------------------------------
-(actually: two DRSI cards...)
-
-::
-
-	chip 1
-	data_a 0x303
-	data_b 0x301
-	ctrl_a 0x302
-	ctrl_b 0x300
-	irq 7
-	pclock 4915200
-	board DRSI
-	escc no
-	#
-	#
-	#
-	chip 2
-	data_a 0x313
-	data_b 0x311
-	ctrl_a 0x312
-	ctrl_b 0x310
-	irq 7
-	pclock 4915200
-	board DRSI
-	escc no
-
-Note that you cannot use the on-board baudrate generator off DRSI
-cards. Use "mode dpll" for clock source (see below).
-
-This is based on information provided by Mike Bilow (and verified
-by Paul Helay)
-
-The utility "gencfg"
---------------------
-
-If you only know the parameters for the PE1CHL driver for DOS,
-run gencfg. It will generate the correct port addresses (I hope).
-Its parameters are exactly the same as the ones you use with
-the "attach scc" command in net, except that the string "init" must
-not appear. Example::
-
-	gencfg 2 0x150 4 2 0 1 0x168 9 4915200
-
-will print a skeleton z8530drv.conf for the OptoSCC to stdout.
-
-::
-
-	gencfg 2 0x300 2 4 5 -4 0 7 4915200 0x10
-
-does the same for the BAYCOM USCC card. In my opinion it is much easier
-to edit scc_config.h...
-
-
-1.2.2 channel configuration
-===========================
-
-The channel definition is divided into three sub sections for each
-channel:
-
-An example for scc0::
-
-	# DEVICE
-
-	device scc0	# the device for the following params
-
-	# MODEM / BUFFERS
-
-	speed 1200		# the default baudrate
-	clock dpll		# clock source:
-				# 	dpll     = normal half duplex operation
-				# 	external = MODEM provides own Rx/Tx clock
-				#	divider  = use full duplex divider if
-				#		   installed (1)
-	mode nrzi		# HDLC encoding mode
-				#	nrzi = 1k2 MODEM, G3RUH 9k6 MODEM
-				#	nrz  = DF9IC 9k6 MODEM
-				#
-	bufsize	384		# size of buffers. Note that this must include
-				# the AX.25 header, not only the data field!
-				# (optional, defaults to 384)
-
-	# KISS (Layer 1)
-
-	txdelay 36              # (see chapter 1.4)
-	persist 64
-	slot    8
-	tail    8
-	fulldup 0
-	wait    12
-	min     3
-	maxkey  7
-	idle    3
-	maxdef  120
-	group   0
-	txoff   off
-	softdcd on
-	slip    off
-
-The order WITHIN these sections is unimportant. The order OF these
-sections IS important. The MODEM parameters are set with the first
-recognized KISS parameter...
-
-Please note that you can initialize the board only once after boot
-(or insmod). You can change all parameters but "mode" and "clock"
-later with the Sccparam program or through KISS. Just to avoid
-security holes...
-
-(1) this divider is usually mounted on the SCC-PBC (PA0HZP) or not
-    present at all (BayCom). It feeds back the output of the DPLL
-    (digital pll) as transmit clock. Using this mode without a divider
-    installed will normally result in keying the transceiver until
-    maxkey expires --- of course without sending anything (useful).
-
-2. Attachment of a channel by your AX.25 software
-=================================================
-
-2.1 Kernel AX.25
-================
-
-To set up an AX.25 device you can simply type::
-
-	ifconfig scc0 44.128.1.1 hw ax25 dl0tha-7
-
-This will create a network interface with the IP number 44.128.20.107
-and the callsign "dl0tha". If you do not have any IP number (yet) you
-can use any of the 44.128.0.0 network. Note that you do not need
-axattach. The purpose of axattach (like slattach) is to create a KISS
-network device linked to a TTY. Please read the documentation of the
-ax25-utils and the AX.25-HOWTO to learn how to set the parameters of
-the kernel AX.25.
-
-2.2 NOS, NET and TFKISS
-=======================
-
-Since the TTY driver (aka KISS TNC emulation) is gone you need
-to emulate the old behaviour. The cost of using these programs is
-that you probably need to compile the kernel AX.25, regardless of whether
-you actually use it or not. First setup your /etc/ax25/axports,
-for example::
-
-	9k6	dl0tha-9  9600  255 4 9600 baud port (scc3)
-	axlink	dl0tha-15 38400 255 4 Link to NOS
-
-Now "ifconfig" the scc device::
-
-	ifconfig scc3 44.128.1.1 hw ax25 dl0tha-9
-
-You can now axattach a pseudo-TTY::
-
-	axattach /dev/ptys0 axlink
-
-and start your NOS and attach /dev/ptys0 there. The problem is that
-NOS is reachable only via digipeating through the kernel AX.25
-(disastrous on a DAMA controlled channel). To solve this problem,
-configure "rxecho" to echo the incoming frames from "9k6" to "axlink"
-and outgoing frames from "axlink" to "9k6" and start::
-
-	rxecho
-
-Or simply use "kissbridge" coming with z8530drv-utils::
-
-	ifconfig scc3 hw ax25 dl0tha-9
-	kissbridge scc3 /dev/ptys0
-
-
-3. Adjustment and Display of parameters
-=======================================
-
-3.1 Displaying SCC Parameters:
-==============================
-
-Once a SCC channel has been attached, the parameter settings and
-some statistic information can be shown using the param program::
-
-	dl1bke-u:~$ sccstat scc0
-
-	Parameters:
-
-	speed       : 1200 baud
-	txdelay     : 36
-	persist     : 255
-	slottime    : 0
-	txtail      : 8
-	fulldup     : 1
-	waittime    : 12
-	mintime     : 3 sec
-	maxkeyup    : 7 sec
-	idletime    : 3 sec
-	maxdefer    : 120 sec
-	group       : 0x00
-	txoff       : off
-	softdcd     : on
-	SLIP        : off
-
-	Status:
-
-	HDLC                  Z8530           Interrupts         Buffers
-	-----------------------------------------------------------------------
-	Sent       :     273  RxOver :     0  RxInts :   125074  Size    :  384
-	Received   :    1095  TxUnder:     0  TxInts :     4684  NoSpace :    0
-	RxErrors   :    1591                  ExInts :    11776
-	TxErrors   :       0                  SpInts :     1503
-	Tx State   :    idle
-
-
-The status info shown is:
-
-==============	==============================================================
-Sent		number of frames transmitted
-Received	number of frames received
-RxErrors	number of receive errors (CRC, ABORT)
-TxErrors	number of discarded Tx frames (due to various reasons)
-Tx State	status of the Tx interrupt handler: idle/busy/active/tail (2)
-RxOver		number of receiver overruns
-TxUnder		number of transmitter underruns
-RxInts		number of receiver interrupts
-TxInts		number of transmitter interrupts
-EpInts		number of receiver special condition interrupts
-SpInts		number of external/status interrupts
-Size		maximum size of an AX.25 frame (*with* AX.25 headers!)
-NoSpace		number of times a buffer could not get allocated
-==============	==============================================================
-
-An overrun is abnormal. If lots of these occur, the product of
-baudrate and number of interfaces is too high for the processing
-power of your computer. NoSpace errors are unlikely to be caused by the
-driver or the kernel AX.25.
-
-
-3.2 Setting Parameters
-======================
-
-
-The setting of parameters of the emulated KISS TNC is done in the
-same way in the SCC driver. You can change parameters by using
-the kissparms program from the ax25-utils package or use the program
-"sccparam"::
-
-     sccparam <device> <paramname> <decimal-|hexadecimal value>
-
-You can change the following parameters:
-
-===========   =====
-param	      value
-===========   =====
-speed         1200
-txdelay       36
-persist       255
-slottime      0
-txtail        8
-fulldup       1
-waittime      12
-mintime       3
-maxkeyup      7
-idletime      3
-maxdefer      120
-group         0x00
-txoff         off
-softdcd       on
-SLIP          off
-===========   =====
-
-
-The parameters have the following meaning:
-
-speed:
-     The baudrate on this channel in bits/sec
-
-     Example: sccparam /dev/scc3 speed 9600
-
-txdelay:
-     The delay (in units of 10 ms) after keying of the
-     transmitter, until the first byte is sent. This is usually
-     called "TXDELAY" in a TNC.  When 0 is specified, the driver
-     will just wait until the CTS signal is asserted. This
-     assumes the presence of a timer or other circuitry in the
-     MODEM and/or transmitter, that asserts CTS when the
-     transmitter is ready for data.
-     A normal value of this parameter is 30-36.
-
-     Example: sccparam /dev/scc0 txd 20
-
-persist:
-     This is the probability that the transmitter will be keyed
-     when the channel is found to be free.  It is a value from 0
-     to 255, and the probability is (value+1)/256.  The value
-     should be somewhere near 50-60, and should be lowered when
-     the channel is used more heavily.
-
-     Example: sccparam /dev/scc2 persist 20
-
-slottime:
-     This is the time between samples of the channel. It is
-     expressed in units of 10 ms.  About 200-300 ms (value 20-30)
-     seems to be a good value.
-
-     Example: sccparam /dev/scc0 slot 20
-
-tail:
-     The time the transmitter will remain keyed after the last
-     byte of a packet has been transferred to the SCC. This is
-     necessary because the CRC and a flag still have to leave the
-     SCC before the transmitter is keyed down. The value depends
-     on the baudrate selected.  A few character times should be
-     sufficient, e.g. 40ms at 1200 baud. (value 4)
-     The value of this parameter is in 10 ms units.
-
-     Example: sccparam /dev/scc2 4
-
-full:
-     The full-duplex mode switch. This can be one of the following
-     values:
-
-     0:   The interface will operate in CSMA mode (the normal
-	  half-duplex packet radio operation)
-     1:   Fullduplex mode, i.e. the transmitter will be keyed at
-	  any time, without checking the received carrier.  It
-	  will be unkeyed when there are no packets to be sent.
-     2:   Like 1, but the transmitter will remain keyed, also
-	  when there are no packets to be sent.  Flags will be
-	  sent in that case, until a timeout (parameter 10)
-	  occurs.
-
-     Example: sccparam /dev/scc0 fulldup off
-
-wait:
-     The initial waittime before any transmit attempt, after the
-     frame has been queue for transmit.  This is the length of
-     the first slot in CSMA mode.  In full duplex modes it is
-     set to 0 for maximum performance.
-     The value of this parameter is in 10 ms units.
-
-     Example: sccparam /dev/scc1 wait 4
-
-maxkey:
-     The maximal time the transmitter will be keyed to send
-     packets, in seconds.  This can be useful on busy CSMA
-     channels, to avoid "getting a bad reputation" when you are
-     generating a lot of traffic.  After the specified time has
-     elapsed, no new frame will be started. Instead, the trans-
-     mitter will be switched off for a specified time (parameter
-     min), and then the selected algorithm for keyup will be
-     started again.
-     The value 0 as well as "off" will disable this feature,
-     and allow infinite transmission time.
-
-     Example: sccparam /dev/scc0 maxk 20
-
-min:
-     This is the time the transmitter will be switched off when
-     the maximum transmission time is exceeded.
-
-     Example: sccparam /dev/scc3 min 10
-
-idle:
-     This parameter specifies the maximum idle time in full duplex
-     2 mode, in seconds.  When no frames have been sent for this
-     time, the transmitter will be keyed down.  A value of 0 is
-     has same result as the fullduplex mode 1. This parameter
-     can be disabled.
-
-     Example: sccparam /dev/scc2 idle off	# transmit forever
-
-maxdefer
-     This is the maximum time (in seconds) to wait for a free channel
-     to send. When this timer expires the transmitter will be keyed
-     IMMEDIATELY. If you love to get trouble with other users you
-     should set this to a very low value ;-)
-
-     Example: sccparam /dev/scc0 maxdefer 240	# 2 minutes
-
-
-txoff:
-     When this parameter has the value 0, the transmission of packets
-     is enable. Otherwise it is disabled.
-
-     Example: sccparam /dev/scc2 txoff on
-
-group:
-     It is possible to build special radio equipment to use more than
-     one frequency on the same band, e.g. using several receivers and
-     only one transmitter that can be switched between frequencies.
-     Also, you can connect several radios that are active on the same
-     band.  In these cases, it is not possible, or not a good idea, to
-     transmit on more than one frequency.  The SCC driver provides a
-     method to lock transmitters on different interfaces, using the
-     "param <interface> group <x>" command.  This will only work when
-     you are using CSMA mode (parameter full = 0).
-
-     The number <x> must be 0 if you want no group restrictions, and
-     can be computed as follows to create restricted groups:
-     <x> is the sum of some OCTAL numbers:
-
-
-     ===  =======================================================
-     200  This transmitter will only be keyed when all other
-	  transmitters in the group are off.
-     100  This transmitter will only be keyed when the carrier
-	  detect of all other interfaces in the group is off.
-     0xx  A byte that can be used to define different groups.
-	  Interfaces are in the same group, when the logical AND
-	  between their xx values is nonzero.
-     ===  =======================================================
-
-     Examples:
-
-     When 2 interfaces use group 201, their transmitters will never be
-     keyed at the same time.
-
-     When 2 interfaces use group 101, the transmitters will only key
-     when both channels are clear at the same time.  When group 301,
-     the transmitters will not be keyed at the same time.
-
-     Don't forget to convert the octal numbers into decimal before
-     you set the parameter.
-
-     Example: (to be written)
-
-softdcd:
-     use a software dcd instead of the real one... Useful for a very
-     slow squelch.
-
-     Example: sccparam /dev/scc0 soft on
-
-
-4. Problems
-===========
-
-If you have tx-problems with your BayCom USCC card please check
-the manufacturer of the 8530. SGS chips have a slightly
-different timing. Try Zilog...  A solution is to write to register 8
-instead to the data port, but this won't work with the ESCC chips.
-*SIGH!*
-
-A very common problem is that the PTT locks until the maxkeyup timer
-expires, although interrupts and clock source are correct. In most
-cases compiling the driver with CONFIG_SCC_DELAY (set with
-make config) solves the problems. For more hints read the (pseudo) FAQ
-and the documentation coming with z8530drv-utils.
-
-I got reports that the driver has problems on some 386-based systems.
-(i.e. Amstrad) Those systems have a bogus AT bus timing which will
-lead to delayed answers on interrupts. You can recognize these
-problems by looking at the output of Sccstat for the suspected
-port. If it shows under- and overruns you own such a system.
-
-Delayed processing of received data: This depends on
-
-- the kernel version
-
-- kernel profiling compiled or not
-
-- a high interrupt load
-
-- a high load of the machine --- running X, Xmorph, XV and Povray,
-  while compiling the kernel... hmm ... even with 32 MB RAM ...  ;-)
-  Or running a named for the whole .ampr.org domain on an 8 MB
-  box...
-
-- using information from rxecho or kissbridge.
-
-Kernel panics: please read /linux/README and find out if it
-really occurred within the scc driver.
-
-If you cannot solve a problem, send me
-
-- a description of the problem,
-- information on your hardware (computer system, scc board, modem)
-- your kernel version
-- the output of cat /proc/net/z8530
-
-4. Thor RLC100
-==============
-
-Mysteriously this board seems not to work with the driver. Anyone
-got it up-and-running?
-
-
-Many thanks to Linus Torvalds and Alan Cox for including the driver
-in the Linux standard distribution and their support.
-
-::
-
-	Joerg Reuter	ampr-net: [email protected]
-			AX-25   : DL1BKE @ DB0ABH.#BAY.DEU.EU
-			Internet: [email protected]
-			WWW     : http://yaina.de/jreuter
Documentation/networking/device_drivers/index.rst +0 -1
index 1df51c9f7827..1f54f01d24be 100644
@@ -13,6 +13,5 @@ Hardware Device Drivers
     cellular/index
     ethernet/index
     fddi/index
-   hamradio/index
     wifi/index
     wwan/index
Documentation/networking/index.rst +0 -2
index 2e946924ad3f..44a422ad3b05 100644
@@ -40,11 +40,9 @@ Refer to :ref:`netdev-FAQ` for a guide on netdev development process specifics.
     tls-handshake
     nfc
     6lowpan
-   6pack
     arcnet-hardware
     arcnet
     atm
-   ax25
     bonding
     cdc_mbim
     dctcp
Documentation/staging/magic-number.rst +0 -3
index 79afddf0e692..670d3189a976 100644
@@ -72,11 +72,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/uapi/l
  APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
  FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
  SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip/slip.h``
-BAYCOM_MAGIC          19730510         baycom_state             ``drivers/net/hamradio/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
  KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
  CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
  CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
  QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
  QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/it_IT/staging/magic-number.rst +0 -3
index cd8f23571835..43dd6398300b 100644
@@ -78,11 +78,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
  APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
  FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
  SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
  KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
  CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
  CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
  QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
  QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/sp_SP/process/magic-number.rst +0 -3
index beb4b4c1de11..f5b4c3f2849f 100644
@@ -77,11 +77,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
  APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
  FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
  SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
  KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
  CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
  CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
  QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
  QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/zh_CN/process/magic-number.rst +0 -3
index 4ebc84cc0c54..05ee75cf4346 100644
@@ -70,11 +70,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
  APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
  FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
  SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
  KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
  CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
  CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
  QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
  QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
Documentation/translations/zh_TW/process/magic-number.rst +0 -3
index 5582df6d7ca7..bc7eb025dd1e 100644
@@ -64,11 +64,8 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
  APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
  FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
  SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
-HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
  KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
  CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
-YAM_MAGIC             0xF10A7654       yam_port                 ``drivers/net/hamradio/yam.c``
  CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
  QUEUE_MAGIC_FREE      0xf7e1c9a3       queue_entry              ``drivers/scsi/arm/queue.c``
  QUEUE_MAGIC_USED      0xf7e1cc33       queue_entry              ``drivers/scsi/arm/queue.c``
drivers/net/hamradio/Kconfig deleted +0 -162
deleted file mode 100644
index 36a9aade9f33..000000000000
@@ -1,162 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-config MKISS
-	tristate "Serial port KISS driver"
-	depends on AX25 && TTY
-	select CRC16
-	help
-	  KISS is a protocol used for the exchange of data between a computer
-	  and a Terminal Node Controller (a small embedded system commonly
-	  used for networking over AX.25 amateur radio connections; it
-	  connects the computer's serial port with the radio's microphone
-	  input and speaker output).
-
-	  Although KISS is less advanced than the 6pack protocol, it has
-	  the advantage that it is already supported by most modern TNCs
-	  without the need for a firmware upgrade.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called mkiss.
-
-config 6PACK
-	tristate "Serial port 6PACK driver"
-	depends on AX25 && TTY
-	help
-	  6pack is a transmission protocol for the data exchange between your
-	  PC and your TNC (the Terminal Node Controller acts as a kind of
-	  modem connecting your computer's serial port to your radio's
-	  microphone input and speaker output). This protocol can be used as
-	  an alternative to KISS for networking over AX.25 amateur radio
-	  connections, but it has some extended functionality.
-
-	  Note that this driver is still experimental and might cause
-	  problems. For details about the features and the usage of the
-	  driver, read <file:Documentation/networking/6pack.rst>.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called 6pack.
-
-config BPQETHER
-	tristate "BPQ Ethernet driver"
-	depends on AX25
-	help
-	  AX.25 is the protocol used for computer communication over amateur
-	  radio. If you say Y here, you will be able to send and receive AX.25
-	  traffic over Ethernet (also called "BPQ AX.25"), which could be
-	  useful if some other computer on your local network has a direct
-	  amateur radio connection.
-
-config SCC
-	tristate "Z8530 SCC driver"
-	depends on ISA && AX25
-	help
-	  These cards are used to connect your Linux box to an amateur radio
-	  in order to communicate with other computers. If you want to use
-	  this, read
-	  <file:Documentation/networking/device_drivers/hamradio/z8530drv.rst>
-	  and the AX25-HOWTO, available from
-	  <http://www.tldp.org/docs.html#howto>. Also make sure to say Y
-	  to "Amateur Radio AX.25 Level 2" support.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called scc.
-
-config SCC_DELAY
-	bool "additional delay for PA0HZP OptoSCC compatible boards"
-	depends on SCC
-	help
-	  Say Y here if you experience problems with the SCC driver not
-	  working properly; please read
-	  <file:Documentation/networking/device_drivers/hamradio/z8530drv.rst>
-	  for details.
-
-	  If unsure, say N.
-
-config SCC_TRXECHO
-	bool "support for TRX that feedback the tx signal to rx"
-	depends on SCC
-	help
-	  Some transmitters feed the transmitted signal back to the receive
-	  line.  Say Y here to foil this by explicitly disabling the receiver
-	  during data transmission.
-
-	  If in doubt, say Y.
-
-config BAYCOM_SER_FDX
-	tristate "BAYCOM ser12 fullduplex driver for AX.25"
-	depends on AX25 && HAS_IOPORT
-	select CRC_CCITT
-	help
-	  This is one of two drivers for Baycom style simple amateur radio
-	  modems that connect to a serial interface. The driver supports the
-	  ser12 design in full-duplex mode. In addition, it allows the
-	  baudrate to be set between 300 and 4800 baud (however not all modems
-	  support all baudrates). This is the preferred driver. The next
-	  driver, "BAYCOM ser12 half-duplex driver for AX.25" is the old
-	  driver and still provided in case this driver does not work with
-	  your serial interface chip. To configure the driver, use the sethdlc
-	  utility available in the standard ax25 utilities package.
-	  For more information on the modems, see
-	  <file:Documentation/networking/device_drivers/hamradio/baycom.rst>.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called baycom_ser_fdx.  This is recommended.
-
-config BAYCOM_SER_HDX
-	tristate "BAYCOM ser12 halfduplex driver for AX.25"
-	depends on AX25 && HAS_IOPORT
-	select CRC_CCITT
-	help
-	  This is one of two drivers for Baycom style simple amateur radio
-	  modems that connect to a serial interface. The driver supports the
-	  ser12 design in half-duplex mode. This is the old driver.  It is
-	  still provided in case your serial interface chip does not work with
-	  the full-duplex driver. This driver is deprecated.  To configure
-	  the driver, use the sethdlc utility available in the standard ax25
-	  utilities package. For more information on the modems, see
-	  <file:Documentation/networking/device_drivers/hamradio/baycom.rst>.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called baycom_ser_hdx.  This is recommended.
-
-config BAYCOM_PAR
-	tristate "BAYCOM picpar and par96 driver for AX.25"
-	depends on PARPORT && AX25
-	select CRC_CCITT
-	help
-	  This is a driver for Baycom style simple amateur radio modems that
-	  connect to a parallel interface. The driver supports the picpar and
-	  par96 designs. To configure the driver, use the sethdlc utility
-	  available in the standard ax25 utilities package.
-	  For more information on the modems, see
-	  <file:Documentation/networking/device_drivers/hamradio/baycom.rst>.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called baycom_par.  This is recommended.
-
-config BAYCOM_EPP
-	tristate "BAYCOM epp driver for AX.25"
-	depends on PARPORT && AX25 && !64BIT
-	select CRC_CCITT
-	help
-	  This is a driver for Baycom style simple amateur radio modems that
-	  connect to a parallel interface. The driver supports the EPP
-	  designs. To configure the driver, use the sethdlc utility available
-	  in the standard ax25 utilities package.
-	  For more information on the modems, see
-	  <file:Documentation/networking/device_drivers/hamradio/baycom.rst>.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called baycom_epp.  This is recommended.
-
-config YAM
-	tristate "YAM driver for AX.25"
-	depends on AX25 && HAS_IOPORT
-	help
-	  The YAM is a modem for packet radio which connects to the serial
-	  port and includes some of the functions of a Terminal Node
-	  Controller. If you have one of those, say Y here.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called yam.
-
-
net/Kconfig +0 -1
index 5c588dbcbdbd..bdea8aef7983 100644
@@ -414,7 +414,6 @@ endmenu # Network testing
 
  endmenu # Networking options
 
-source "net/ax25/Kconfig"
  source "net/can/Kconfig"
  source "net/bluetooth/Kconfig"
  source "net/rxrpc/Kconfig"
net/ax25/Kconfig deleted +0 -108
deleted file mode 100644
index 310169ce1488..000000000000
@@ -1,108 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Amateur Radio protocols and AX.25 device configuration
-#
-
-menuconfig HAMRADIO
-	depends on NET
-	bool "Amateur Radio support"
-	help
-	  If you want to connect your Linux box to an amateur radio, answer Y
-	  here. You want to read <https://www.tapr.org/>
-	  and more specifically about AX.25 on Linux
-	  <https://linux-ax25.in-berlin.de>.
-
-	  Note that the answer to this question won't directly affect the
-	  kernel: saying N will just cause the configurator to skip all
-	  the questions about amateur radio.
-
-comment "Packet Radio protocols"
-	depends on HAMRADIO
-
-config AX25
-	tristate "Amateur Radio AX.25 Level 2 protocol"
-	depends on HAMRADIO
-	help
-	  This is the protocol used for computer communication over amateur
-	  radio. It is either used by itself for point-to-point links, or to
-	  carry other protocols such as tcp/ip. To use it, you need a device
-	  that connects your Linux box to your amateur radio. You can either
-	  use a low speed TNC (a Terminal Node Controller acts as a kind of
-	  modem connecting your computer's serial port to your radio's
-	  microphone input and speaker output) supporting the KISS protocol or
-	  one of the various SCC cards that are supported by the generic Z8530
-	  or the DMA SCC driver. Another option are the Baycom modem serial
-	  and parallel port hacks or the sound card modem (supported by their
-	  own drivers). If you say Y here, you also have to say Y to one of
-	  those drivers.
-
-	  Information about where to get supporting software for Linux amateur
-	  radio as well as information about how to configure an AX.25 port is
-	  contained in the AX25-HOWTO, available from
-	  <https://www.tldp.org/docs.html#howto>. You might also want to
-	  check out the file <file:Documentation/networking/ax25.rst> in the
-	  kernel source. More information about digital amateur radio in
-	  general is on the WWW at
-	  <https://www.tapr.org/>.
-
-	  To compile this driver as a module, choose M here: the
-	  module will be called ax25.
-
-config AX25_DAMA_SLAVE
-	bool "AX.25 DAMA Slave support"
-	default y
-	depends on AX25
-	help
-	  DAMA is a mechanism to prevent collisions when doing AX.25
-	  networking. A DAMA server (called "master") accepts incoming traffic
-	  from clients (called "slaves") and redistributes it to other slaves.
-	  If you say Y here, your Linux box will act as a DAMA slave; this is
-	  transparent in that you don't have to do any special DAMA
-	  configuration. Linux cannot yet act as a DAMA server.  This option
-	  only compiles DAMA slave support into the kernel.  It still needs to
-	  be enabled at runtime.  For more about DAMA see
-	  <https://linux-ax25.in-berlin.de>.  If unsure, say Y.
-
-config NETROM
-	tristate "Amateur Radio NET/ROM protocol"
-	depends on AX25
-	help
-	  NET/ROM is a network layer protocol on top of AX.25 useful for
-	  routing.
-
-	  A comprehensive listing of all the software for Linux amateur radio
-	  users as well as information about how to configure an AX.25 port is
-	  contained in the Linux Ham Wiki, available from
-	  <https://linux-ax25.in-berlin.de>. You also might want to check out
-	  the file <file:Documentation/networking/ax25.rst>. More information
-	  about digital amateur radio in general is on the WWW at
-	  <https://www.tapr.org/>.
-
-	  To compile this driver as a module, choose M here: the
-	  module will be called netrom.
-
-config ROSE
-	tristate "Amateur Radio X.25 PLP (Rose)"
-	depends on AX25
-	help
-	  The Packet Layer Protocol (PLP) is a way to route packets over X.25
-	  connections in general and amateur radio AX.25 connections in
-	  particular, essentially an alternative to NET/ROM.
-
-	  A comprehensive listing of all the software for Linux amateur radio
-	  users as well as information about how to configure an AX.25 port is
-	  contained in the Linux Ham Wiki, available from
-	  <https://linux-ax25.in-berlin.de>.  You also might want to check out
-	  the file <file:Documentation/networking/ax25.rst>. More information
-	  about digital amateur radio in general is on the WWW at
-	  <https://www.tapr.org/>.
-
-	  To compile this driver as a module, choose M here: the
-	  module will be called rose.
-
-menu "AX.25 network device drivers"
-	depends on HAMRADIO && AX25
-
-source "drivers/net/hamradio/Kconfig"
-
-endmenu
drivers/net/Makefile +0 -1
index 3b2d28127634..b87a741fc952 100644
@@ -54,7 +54,6 @@ obj-y += dsa/
  endif
  obj-$(CONFIG_ETHERNET) += ethernet/
  obj-$(CONFIG_FDDI) += fddi/
-obj-$(CONFIG_HAMRADIO) += hamradio/
  obj-$(CONFIG_QCOM_IPA) += ipa/
  obj-$(CONFIG_PLIP) += plip/
  obj-$(CONFIG_PPP) += ppp/
drivers/net/hamradio/Makefile deleted +0 -22
deleted file mode 100644
index 25fc400369ba..000000000000
@@ -1,22 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Makefile for the Linux AX.25 and HFMODEM device drivers.
-#
-#
-# 19971130 	Moved the amateur radio related network drivers from
-#		drivers/net/ to drivers/hamradio for easier maintenance.
-#               Joerg Reuter DL1BKE <[email protected]>
-#
-# 20000806	Rewritten to use lists instead of if-statements.
-#		Christoph Hellwig <[email protected]>
-#
-
-obj-$(CONFIG_SCC)		+= scc.o
-obj-$(CONFIG_MKISS)		+= mkiss.o
-obj-$(CONFIG_6PACK)		+= 6pack.o
-obj-$(CONFIG_YAM)		+= yam.o
-obj-$(CONFIG_BPQETHER)		+= bpqether.o
-obj-$(CONFIG_BAYCOM_SER_FDX)	+= baycom_ser_fdx.o	hdlcdrv.o
-obj-$(CONFIG_BAYCOM_SER_HDX)	+= baycom_ser_hdx.o	hdlcdrv.o
-obj-$(CONFIG_BAYCOM_PAR)	+= baycom_par.o		hdlcdrv.o
-obj-$(CONFIG_BAYCOM_EPP)	+= baycom_epp.o		hdlcdrv.o
net/Makefile +0 -3
index 98e182829eff..d2175fce0406 100644
@@ -28,9 +28,6 @@ obj-y				+= dsa/
  obj-$(CONFIG_ATALK)		+= appletalk/
  obj-$(CONFIG_X25)		+= x25/
  obj-$(CONFIG_LAPB)		+= lapb/
-obj-$(CONFIG_NETROM)		+= netrom/
-obj-$(CONFIG_ROSE)		+= rose/
-obj-$(CONFIG_AX25)		+= ax25/
  obj-$(CONFIG_CAN)		+= can/
  obj-$(CONFIG_BT)		+= bluetooth/
  obj-$(CONFIG_SUNRPC)		+= sunrpc/
net/ax25/Makefile deleted +0 -12
deleted file mode 100644
index 2e53affc8568..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Makefile for the Linux AX.25 layer.
-#
-
-obj-$(CONFIG_AX25) += ax25.o
-
-ax25-y	 := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \
-	    ax25_route.o ax25_std_in.o ax25_std_subr.o ax25_std_timer.o \
-	    ax25_subr.o ax25_timer.o ax25_uid.o af_ax25.o
-ax25-$(CONFIG_AX25_DAMA_SLAVE) += ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o
-ax25-$(CONFIG_SYSCTL) += sysctl_net_ax25.o
net/netrom/Makefile deleted +0 -10
deleted file mode 100644
index 603e36c9af2e..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for the Linux NET/ROM layer.
-#
-
-obj-$(CONFIG_NETROM) += netrom.o
-
-netrom-y		:= af_netrom.o nr_dev.o nr_in.o nr_loopback.o \
-			   nr_out.o nr_route.o nr_subr.o nr_timer.o
-netrom-$(CONFIG_SYSCTL)	+= sysctl_net_netrom.o
net/rose/Makefile deleted +0 -10
deleted file mode 100644
index 3e6638f5ba57..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for the Linux Rose (X.25 PLP) layer.
-#
-
-obj-$(CONFIG_ROSE) += rose.o
-
-rose-y	  := af_rose.o rose_dev.o rose_in.o rose_link.o rose_loopback.o \
-	     rose_out.o rose_route.o rose_subr.o rose_timer.o
-rose-$(CONFIG_SYSCTL) += sysctl_net_rose.o
drivers/net/hamradio/z8530.h deleted +0 -246
deleted file mode 100644
index 1655901d713b..000000000000
@@ -1,246 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-
-/* 8530 Serial Communications Controller Register definitions */
-#define	FLAG	0x7e
-
-/* Write Register 0 */
-#define	R0	0		/* Register selects */
-#define	R1	1
-#define	R2	2
-#define	R3	3
-#define	R4	4
-#define	R5	5
-#define	R6	6
-#define	R7	7
-#define	R8	8
-#define	R9	9
-#define	R10	10
-#define	R11	11
-#define	R12	12
-#define	R13	13
-#define	R14	14
-#define	R15	15
-
-#define	NULLCODE	0	/* Null Code */
-#define	POINT_HIGH	0x8	/* Select upper half of registers */
-#define	RES_EXT_INT	0x10	/* Reset Ext. Status Interrupts */
-#define	SEND_ABORT	0x18	/* HDLC Abort */
-#define	RES_RxINT_FC	0x20	/* Reset RxINT on First Character */
-#define	RES_Tx_P	0x28	/* Reset TxINT Pending */
-#define	ERR_RES		0x30	/* Error Reset */
-#define	RES_H_IUS	0x38	/* Reset highest IUS */
-
-#define	RES_Rx_CRC	0x40	/* Reset Rx CRC Checker */
-#define	RES_Tx_CRC	0x80	/* Reset Tx CRC Checker */
-#define	RES_EOM_L	0xC0	/* Reset EOM latch */
-
-/* Write Register 1 */
-
-#define	EXT_INT_ENAB	0x1	/* Ext Int Enable */
-#define	TxINT_ENAB	0x2	/* Tx Int Enable */
-#define	PAR_SPEC	0x4	/* Parity is special condition */
-
-#define	RxINT_DISAB	0	/* Rx Int Disable */
-#define	RxINT_FCERR	0x8	/* Rx Int on First Character Only or Error */
-#define	INT_ALL_Rx	0x10	/* Int on all Rx Characters or error */
-#define	INT_ERR_Rx	0x18	/* Int on error only */
-
-#define	WT_RDY_RT	0x20	/* Wait/Ready on R/T */
-#define	WT_FN_RDYFN	0x40	/* Wait/FN/Ready FN */
-#define	WT_RDY_ENAB	0x80	/* Wait/Ready Enable */
-
-/* Write Register #2 (Interrupt Vector) */
-
-/* Write Register 3 */
-
-#define	RxENABLE	0x1	/* Rx Enable */
-#define	SYNC_L_INH	0x2	/* Sync Character Load Inhibit */
-#define	ADD_SM		0x4	/* Address Search Mode (SDLC) */
-#define	RxCRC_ENAB	0x8	/* Rx CRC Enable */
-#define	ENT_HM		0x10	/* Enter Hunt Mode */
-#define	AUTO_ENAB	0x20	/* Auto Enables */
-#define	Rx5		0x0	/* Rx 5 Bits/Character */
-#define	Rx7		0x40	/* Rx 7 Bits/Character */
-#define	Rx6		0x80	/* Rx 6 Bits/Character */
-#define	Rx8		0xc0	/* Rx 8 Bits/Character */
-
-/* Write Register 4 */
-
-#define	PAR_ENA		0x1	/* Parity Enable */
-#define	PAR_EVEN	0x2	/* Parity Even/Odd* */
-
-#define	SYNC_ENAB	0	/* Sync Modes Enable */
-#define	SB1		0x4	/* 1 stop bit/char */
-#define	SB15		0x8	/* 1.5 stop bits/char */
-#define	SB2		0xc	/* 2 stop bits/char */
-
-#define	MONSYNC		0	/* 8 Bit Sync character */
-#define	BISYNC		0x10	/* 16 bit sync character */
-#define	SDLC		0x20	/* SDLC Mode (01111110 Sync Flag) */
-#define	EXTSYNC		0x30	/* External Sync Mode */
-
-#define	X1CLK		0x0	/* x1 clock mode */
-#define	X16CLK		0x40	/* x16 clock mode */
-#define	X32CLK		0x80	/* x32 clock mode */
-#define	X64CLK		0xC0	/* x64 clock mode */
-
-/* Write Register 5 */
-
-#define	TxCRC_ENAB	0x1	/* Tx CRC Enable */
-#define	RTS		0x2	/* RTS */
-#define	SDLC_CRC	0x4	/* SDLC/CRC-16 */
-#define	TxENAB		0x8	/* Tx Enable */
-#define	SND_BRK		0x10	/* Send Break */
-#define	Tx5		0x0	/* Tx 5 bits (or less)/character */
-#define	Tx7		0x20	/* Tx 7 bits/character */
-#define	Tx6		0x40	/* Tx 6 bits/character */
-#define	Tx8		0x60	/* Tx 8 bits/character */
-#define	DTR		0x80	/* DTR */
-
-/* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
-
-/* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
-
-/* Write Register 8 (transmit buffer) */
-
-/* Write Register 9 (Master interrupt control) */
-#define	VIS	1	/* Vector Includes Status */
-#define	NV	2	/* No Vector */
-#define	DLC	4	/* Disable Lower Chain */
-#define	MIE	8	/* Master Interrupt Enable */
-#define	STATHI	0x10	/* Status high */
-#define	NORESET	0	/* No reset on write to R9 */
-#define	CHRB	0x40	/* Reset channel B */
-#define	CHRA	0x80	/* Reset channel A */
-#define	FHWRES	0xc0	/* Force hardware reset */
-
-/* Write Register 10 (misc control bits) */
-#define	BIT6	1	/* 6 bit/8bit sync */
-#define	LOOPMODE 2	/* SDLC Loop mode */
-#define	ABUNDER	4	/* Abort/flag on SDLC xmit underrun */
-#define	MARKIDLE 8	/* Mark/flag on idle */
-#define	GAOP	0x10	/* Go active on poll */
-#define	NRZ	0	/* NRZ mode */
-#define	NRZI	0x20	/* NRZI mode */
-#define	FM1	0x40	/* FM1 (transition = 1) */
-#define	FM0	0x60	/* FM0 (transition = 0) */
-#define	CRCPS	0x80	/* CRC Preset I/O */
-
-/* Write Register 11 (Clock Mode control) */
-#define	TRxCXT	0	/* TRxC = Xtal output */
-#define	TRxCTC	1	/* TRxC = Transmit clock */
-#define	TRxCBR	2	/* TRxC = BR Generator Output */
-#define	TRxCDP	3	/* TRxC = DPLL output */
-#define	TRxCOI	4	/* TRxC O/I */
-#define	TCRTxCP	0	/* Transmit clock = RTxC pin */
-#define	TCTRxCP	8	/* Transmit clock = TRxC pin */
-#define	TCBR	0x10	/* Transmit clock = BR Generator output */
-#define	TCDPLL	0x18	/* Transmit clock = DPLL output */
-#define	RCRTxCP	0	/* Receive clock = RTxC pin */
-#define	RCTRxCP	0x20	/* Receive clock = TRxC pin */
-#define	RCBR	0x40	/* Receive clock = BR Generator output */
-#define	RCDPLL	0x60	/* Receive clock = DPLL output */
-#define	RTxCX	0x80	/* RTxC Xtal/No Xtal */
-
-/* Write Register 12 (lower byte of baud rate generator time constant) */
-
-/* Write Register 13 (upper byte of baud rate generator time constant) */
-
-/* Write Register 14 (Misc control bits) */
-#define	BRENABL	1	/* Baud rate generator enable */
-#define	BRSRC	2	/* Baud rate generator source */
-#define	DTRREQ	4	/* DTR/Request function */
-#define	AUTOECHO 8	/* Auto Echo */
-#define	LOOPBAK	0x10	/* Local loopback */
-#define	SEARCH	0x20	/* Enter search mode */
-#define	RMC	0x40	/* Reset missing clock */
-#define	DISDPLL	0x60	/* Disable DPLL */
-#define	SSBR	0x80	/* Set DPLL source = BR generator */
-#define	SSRTxC	0xa0	/* Set DPLL source = RTxC */
-#define	SFMM	0xc0	/* Set FM mode */
-#define	SNRZI	0xe0	/* Set NRZI mode */
-
-/* Write Register 15 (external/status interrupt control) */
-#define	ZCIE	2	/* Zero count IE */
-#define	DCDIE	8	/* DCD IE */
-#define	SYNCIE	0x10	/* Sync/hunt IE */
-#define	CTSIE	0x20	/* CTS IE */
-#define	TxUIE	0x40	/* Tx Underrun/EOM IE */
-#define	BRKIE	0x80	/* Break/Abort IE */
-
-
-/* Read Register 0 */
-#define	Rx_CH_AV	0x1	/* Rx Character Available */
-#define	ZCOUNT		0x2	/* Zero count */
-#define	Tx_BUF_EMP	0x4	/* Tx Buffer empty */
-#define	DCD		0x8	/* DCD */
-#define	SYNC_HUNT	0x10	/* Sync/hunt */
-#define	CTS		0x20	/* CTS */
-#define	TxEOM		0x40	/* Tx underrun */
-#define	BRK_ABRT	0x80	/* Break/Abort */
-
-/* Read Register 1 */
-#define	ALL_SNT		0x1	/* All sent */
-/* Residue Data for 8 Rx bits/char programmed */
-#define	RES3		0x8	/* 0/3 */
-#define	RES4		0x4	/* 0/4 */
-#define	RES5		0xc	/* 0/5 */
-#define	RES6		0x2	/* 0/6 */
-#define	RES7		0xa	/* 0/7 */
-#define	RES8		0x6	/* 0/8 */
-#define	RES18		0xe	/* 1/8 */
-#define	RES28		0x0	/* 2/8 */
-/* Special Rx Condition Interrupts */
-#define	PAR_ERR		0x10	/* Parity error */
-#define	Rx_OVR		0x20	/* Rx Overrun Error */
-#define	CRC_ERR		0x40	/* CRC/Framing Error */
-#define	END_FR		0x80	/* End of Frame (SDLC) */
-
-/* Read Register 2 (channel b only) - Interrupt vector */
-
-/* Read Register 3 (interrupt pending register) ch a only */
-#define	CHBEXT	0x1		/* Channel B Ext/Stat IP */
-#define	CHBTxIP	0x2		/* Channel B Tx IP */
-#define	CHBRxIP	0x4		/* Channel B Rx IP */
-#define	CHAEXT	0x8		/* Channel A Ext/Stat IP */
-#define	CHATxIP	0x10		/* Channel A Tx IP */
-#define	CHARxIP	0x20		/* Channel A Rx IP */
-
-/* Read Register 8 (receive data register) */
-
-/* Read Register 10  (misc status bits) */
-#define	ONLOOP	2		/* On loop */
-#define	LOOPSEND 0x10		/* Loop sending */
-#define	CLK2MIS	0x40		/* Two clocks missing */
-#define	CLK1MIS	0x80		/* One clock missing */
-
-/* Read Register 12 (lower byte of baud rate generator constant) */
-
-/* Read Register 13 (upper byte of baud rate generator constant) */
-
-/* Read Register 15 (value of WR 15) */
-
-/* Z85C30/Z85230 Enhanced SCC register definitions */
-
-/* Write Register 7' (SDLC/HDLC Programmable Enhancements) */
-#define AUTOTXF	0x01		/* Auto Tx Flag */
-#define AUTOEOM 0x02		/* Auto EOM Latch Reset */
-#define AUTORTS	0x04		/* Auto RTS */
-#define TXDNRZI 0x08		/* TxD Pulled High in SDLC NRZI mode */
-#define RXFIFOH 0x08		/* Z85230: Int on RX FIFO half full */
-#define FASTDTR 0x10		/* Fast DTR/REQ Mode */
-#define CRCCBCR	0x20		/* CRC Check Bytes Completely Received */
-#define TXFIFOE 0x20		/* Z85230: Int on TX FIFO completely empty */
-#define EXTRDEN	0x40		/* Extended Read Enabled */
-
-/* Write Register 15 (external/status interrupt control) */
-#define SHDLCE	1		/* SDLC/HDLC Enhancements Enable */
-#define FIFOE	4		/* FIFO Enable */
-
-/* Read Register 6 (frame status FIFO) */
-#define BCLSB	0xff		/* LSB of 14 bits count */
-
-/* Read Register 7 (frame status FIFO) */
-#define BCMSB	0x3f		/* MSB of 14 bits count */
-#define FDA	0x40		/* FIFO Data Available Status */
-#define FOS	0x80		/* FIFO Overflow Status */
include/linux/hdlcdrv.h deleted +0 -276
deleted file mode 100644
index 5d70c3f98f5b..000000000000
@@ -1,276 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * hdlcdrv.h  -- HDLC packet radio network driver.
- * The Linux soundcard driver for 1200 baud and 9600 baud packet radio
- * (C) 1996-1998 by Thomas Sailer, HB9JNX/AE4WA
- */
-#ifndef _HDLCDRV_H
-#define _HDLCDRV_H
-
-
-#include <linux/netdevice.h>
-#include <linux/if.h>
-#include <linux/spinlock.h>
-#include <uapi/linux/hdlcdrv.h>
-
-#define HDLCDRV_MAGIC      0x5ac6e778
-#define HDLCDRV_HDLCBUFFER  32 /* should be a power of 2 for speed reasons */
-#define HDLCDRV_BITBUFFER  256 /* should be a power of 2 for speed reasons */
-#undef HDLCDRV_LOOPBACK  /* define for HDLC debugging purposes */
-#define HDLCDRV_DEBUG
-
-/* maximum packet length, excluding CRC */
-#define HDLCDRV_MAXFLEN             400	
-
-
-struct hdlcdrv_hdlcbuffer {
-	spinlock_t lock;
-	unsigned rd, wr;
-	unsigned short buf[HDLCDRV_HDLCBUFFER];
-};
-
-#ifdef HDLCDRV_DEBUG
-struct hdlcdrv_bitbuffer {
-	unsigned int rd;
-	unsigned int wr;
-	unsigned int shreg;
-	unsigned char buffer[HDLCDRV_BITBUFFER];
-};
-
-static inline void hdlcdrv_add_bitbuffer(struct hdlcdrv_bitbuffer *buf,
-					 unsigned int bit)
-{
-	unsigned char new;
-
-	new = buf->shreg & 1;
-	buf->shreg >>= 1;
-	buf->shreg |= (!!bit) << 7;
-	if (new) {
-		buf->buffer[buf->wr] = buf->shreg;
-		buf->wr = (buf->wr+1) % sizeof(buf->buffer);
-		buf->shreg = 0x80;
-	}
-}
-
-static inline void hdlcdrv_add_bitbuffer_word(struct hdlcdrv_bitbuffer *buf,
-					      unsigned int bits)
-{
-	buf->buffer[buf->wr] = bits & 0xff;
-	buf->wr = (buf->wr+1) % sizeof(buf->buffer);
-	buf->buffer[buf->wr] = (bits >> 8) & 0xff;
-	buf->wr = (buf->wr+1) % sizeof(buf->buffer);
-
-}
-#endif /* HDLCDRV_DEBUG */
-
-/* -------------------------------------------------------------------- */
-/*
- * Information that need to be kept for each driver.
- */
-
-struct hdlcdrv_ops {
-	/*
-	 * first some informations needed by the hdlcdrv routines
-	 */
-	const char *drvname;
-	const char *drvinfo;
-	/*
-	 * the routines called by the hdlcdrv routines
-	 */
-	int (*open)(struct net_device *);
-	int (*close)(struct net_device *);
-	int (*ioctl)(struct net_device *, void __user *,
-		     struct hdlcdrv_ioctl *, int);
-};
-
-struct hdlcdrv_state {
-	int magic;
-	int opened;
-
-	const struct hdlcdrv_ops *ops;
-
-	struct {
-		int bitrate;
-	} par;
-
-	struct hdlcdrv_pttoutput {
-		int dma2;
-		int seriobase;
-		int pariobase;
-		int midiiobase;
-		unsigned int flags;
-	} ptt_out;
-
-	struct hdlcdrv_channel_params ch_params;
-
-	struct hdlcdrv_hdlcrx {
-		struct hdlcdrv_hdlcbuffer hbuf;
-		unsigned long in_hdlc_rx;
-		/* 0 = sync hunt, != 0 receiving */
-		int rx_state;	
-		unsigned int bitstream;
-		unsigned int bitbuf;
-		int numbits;
-		unsigned char dcd;
-		
-		int len;
-		unsigned char *bp;
-		unsigned char buffer[HDLCDRV_MAXFLEN+2];
-	} hdlcrx;
-
-	struct hdlcdrv_hdlctx {
-		struct hdlcdrv_hdlcbuffer hbuf;
-		unsigned long in_hdlc_tx;
-		/*
-		 * 0 = send flags
-		 * 1 = send txtail (flags)
-		 * 2 = send packet
-		 */
-		int tx_state;	
-		int numflags;
-		unsigned int bitstream;
-		unsigned char ptt;
-		int calibrate;
-		int slotcnt;
-
-		unsigned int bitbuf;
-		int numbits;
-		
-		int len;
-		unsigned char *bp;
-		unsigned char buffer[HDLCDRV_MAXFLEN+2];
-	} hdlctx;
-
-#ifdef HDLCDRV_DEBUG
-	struct hdlcdrv_bitbuffer bitbuf_channel;
-	struct hdlcdrv_bitbuffer bitbuf_hdlc;
-#endif /* HDLCDRV_DEBUG */
-
-	int ptt_keyed;
-
-	/* queued skb for transmission */
-	struct sk_buff *skb;
-};
-
-
-/* -------------------------------------------------------------------- */
-
-static inline int hdlcdrv_hbuf_full(struct hdlcdrv_hdlcbuffer *hb)
-{
-	unsigned long flags;
-	int ret;
-	
-	spin_lock_irqsave(&hb->lock, flags);
-	ret = !((HDLCDRV_HDLCBUFFER - 1 + hb->rd - hb->wr) % HDLCDRV_HDLCBUFFER);
-	spin_unlock_irqrestore(&hb->lock, flags);
-	return ret;
-}
-
-/* -------------------------------------------------------------------- */
-
-static inline int hdlcdrv_hbuf_empty(struct hdlcdrv_hdlcbuffer *hb)
-{
-	unsigned long flags;
-	int ret;
-	
-	spin_lock_irqsave(&hb->lock, flags);
-	ret = (hb->rd == hb->wr);
-	spin_unlock_irqrestore(&hb->lock, flags);
-	return ret;
-}
-
-/* -------------------------------------------------------------------- */
-
-static inline unsigned short hdlcdrv_hbuf_get(struct hdlcdrv_hdlcbuffer *hb)
-{
-	unsigned long flags;
-	unsigned short val;
-	unsigned newr;
-
-	spin_lock_irqsave(&hb->lock, flags);
-	if (hb->rd == hb->wr)
-		val = 0;
-	else {
-		newr = (hb->rd+1) % HDLCDRV_HDLCBUFFER;
-		val = hb->buf[hb->rd];
-		hb->rd = newr;
-	}
-	spin_unlock_irqrestore(&hb->lock, flags);
-	return val;
-}
-
-/* -------------------------------------------------------------------- */
-
-static inline void hdlcdrv_hbuf_put(struct hdlcdrv_hdlcbuffer *hb,
-				    unsigned short val)
-{
-	unsigned newp;
-	unsigned long flags;
-	
-	spin_lock_irqsave(&hb->lock, flags);
-	newp = (hb->wr+1) % HDLCDRV_HDLCBUFFER;
-	if (newp != hb->rd) {
-		hb->buf[hb->wr] = val & 0xffff;
-		hb->wr = newp;
-	}
-	spin_unlock_irqrestore(&hb->lock, flags);
-}
-
-/* -------------------------------------------------------------------- */
-
-static inline void hdlcdrv_putbits(struct hdlcdrv_state *s, unsigned int bits)
-{
-	hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, bits);
-}
-
-static inline unsigned int hdlcdrv_getbits(struct hdlcdrv_state *s)
-{
-	unsigned int ret;
-
-	if (hdlcdrv_hbuf_empty(&s->hdlctx.hbuf)) {
-		if (s->hdlctx.calibrate > 0)
-			s->hdlctx.calibrate--;
-		else
-			s->hdlctx.ptt = 0;
-		ret = 0;
-	} else
-		ret = hdlcdrv_hbuf_get(&s->hdlctx.hbuf);
-#ifdef HDLCDRV_LOOPBACK
-	hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, ret);
-#endif /* HDLCDRV_LOOPBACK */
-	return ret;
-}
-
-static inline void hdlcdrv_channelbit(struct hdlcdrv_state *s, unsigned int bit)
-{
-#ifdef HDLCDRV_DEBUG
-	hdlcdrv_add_bitbuffer(&s->bitbuf_channel, bit);
-#endif /* HDLCDRV_DEBUG */
-}
-
-static inline void hdlcdrv_setdcd(struct hdlcdrv_state *s, int dcd)
-{
-	s->hdlcrx.dcd = !!dcd;
-}
-
-static inline int hdlcdrv_ptt(struct hdlcdrv_state *s)
-{
-	return s->hdlctx.ptt || (s->hdlctx.calibrate > 0);
-}
-
-/* -------------------------------------------------------------------- */
-
-void hdlcdrv_receiver(struct net_device *, struct hdlcdrv_state *);
-void hdlcdrv_transmitter(struct net_device *, struct hdlcdrv_state *);
-void hdlcdrv_arbitrate(struct net_device *, struct hdlcdrv_state *);
-struct net_device *hdlcdrv_register(const struct hdlcdrv_ops *ops,
-				    unsigned int privsize, const char *ifname,
-				    unsigned int baseaddr, unsigned int irq,
-				    unsigned int dma);
-void hdlcdrv_unregister(struct net_device *dev);
-
-/* -------------------------------------------------------------------- */
-
-
-
-#endif /* _HDLCDRV_H */
include/linux/netdevice.h +1 -4
index 7969fcdd5ac4..e9e2ec8d4c19 100644
@@ -162,7 +162,7 @@ static inline bool dev_xmit_complete(int rc)
 
  #if defined(CONFIG_HYPERV_NET)
  # define LL_MAX_HEADER 128
-#elif defined(CONFIG_WLAN) || IS_ENABLED(CONFIG_AX25)
+#elif defined(CONFIG_WLAN)
  # if defined(CONFIG_MAC80211_MESH)
  #  define LL_MAX_HEADER 128
  # else
@@ -2316,9 +2316,6 @@ struct net_device {
  #if IS_ENABLED(CONFIG_ATALK)
  	void 			*atalk_ptr;
  #endif
-#if IS_ENABLED(CONFIG_AX25)
-	struct ax25_dev	__rcu	*ax25_ptr;
-#endif
  #if IS_ENABLED(CONFIG_CFG80211)
  	struct wireless_dev	*ieee80211_ptr;
  #endif
include/linux/scc.h deleted +0 -86
deleted file mode 100644
index 745eabd17c10..000000000000
@@ -1,86 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/* $Id: scc.h,v 1.29 1997/04/02 14:56:45 jreuter Exp jreuter $ */
-#ifndef	_SCC_H
-#define	_SCC_H
-
-#include <uapi/linux/scc.h>
-
-
-enum {TX_OFF, TX_ON};	/* command for scc_key_trx() */
-
-/* Vector masks in RR2B */
-
-#define VECTOR_MASK	0x06
-#define TXINT		0x00
-#define EXINT		0x02
-#define RXINT		0x04
-#define SPINT		0x06
-
-#ifdef CONFIG_SCC_DELAY
-#define Inb(port)	inb_p(port)
-#define Outb(port, val)	outb_p(val, port)
-#else
-#define Inb(port)	inb(port)
-#define Outb(port, val)	outb(val, port)
-#endif
-
-/* SCC channel control structure for KISS */
-
-struct scc_kiss {
-	unsigned char txdelay;		/* Transmit Delay 10 ms/cnt */
-	unsigned char persist;		/* Persistence (0-255) as a % */
-	unsigned char slottime;		/* Delay to wait on persistence hit */
-	unsigned char tailtime;		/* Delay after last byte written */
-	unsigned char fulldup;		/* Full Duplex mode 0=CSMA 1=DUP 2=ALWAYS KEYED */
-	unsigned char waittime;		/* Waittime before any transmit attempt */
-	unsigned int  maxkeyup;		/* Maximum time to transmit (seconds) */
-	unsigned int  mintime;		/* Minimal offtime after MAXKEYUP timeout (seconds) */
-	unsigned int  idletime;		/* Maximum idle time in ALWAYS KEYED mode (seconds) */
-	unsigned int  maxdefer;		/* Timer for CSMA channel busy limit */
-	unsigned char tx_inhibit;	/* Transmit is not allowed when set */	
-	unsigned char group;		/* Group ID for AX.25 TX interlocking */
-	unsigned char mode;		/* 'normal' or 'hwctrl' mode (unused) */
-	unsigned char softdcd;		/* Use DPLL instead of DCD pin for carrier detect */
-};
-
-
-/* SCC channel structure */
-
-struct scc_channel {
-	int init;			/* channel exists? */
-
-	struct net_device *dev;		/* link to device control structure */
-	struct net_device_stats dev_stat;/* device statistics */
-
-	char brand;			/* manufacturer of the board */
-	long clock;			/* used clock */
-
-	io_port ctrl;			/* I/O address of CONTROL register */
-	io_port	data;			/* I/O address of DATA register */
-	io_port special;		/* I/O address of special function port */
-	int irq;			/* Number of Interrupt */
-
-	char option;
-	char enhanced;			/* Enhanced SCC support */
-
-	unsigned char wreg[16]; 	/* Copy of last written value in WRx */
-	unsigned char status;		/* Copy of R0 at last external interrupt */
-	unsigned char dcd;		/* DCD status */
-
-        struct scc_kiss kiss;		/* control structure for KISS params */
-        struct scc_stat stat;		/* statistical information */
-        struct scc_modem modem; 	/* modem information */
-
-        struct sk_buff_head tx_queue;	/* next tx buffer */
-        struct sk_buff *rx_buff;	/* pointer to frame currently received */
-        struct sk_buff *tx_buff;	/* pointer to frame currently transmitted */
-
-	/* Timer */
-	struct timer_list tx_t;		/* tx timer for this channel */
-	struct timer_list tx_wdog;	/* tx watchdogs */
-	
-	/* Channel lock */
-	spinlock_t	lock;		/* Channel guard lock */
-};
-
-#endif /* defined(_SCC_H) */
include/linux/yam.h deleted +0 -67
deleted file mode 100644
index a29b04fa1e66..000000000000
@@ -1,67 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*****************************************************************************/
-
-/*
- *	yam.h  -- YAM radio modem driver.
- *
- *	Copyright (C) 1998 Frederic Rible F1OAT ([email protected])
- *	Adapted from baycom.c driver written by Thomas Sailer ([email protected])
- *
- *  Please note that the GPL allows you to use the driver, NOT the radio.
- *  In order to use the radio, you need a license from the communications
- *  authority of your country.
- */
-
-/*****************************************************************************/
-
-#define SIOCYAMRESERVED	(0)
-#define SIOCYAMSCFG 	(1)	/* Set configuration */
-#define SIOCYAMGCFG 	(2)	/* Get configuration */
-#define SIOCYAMSMCS 	(3)	/* Set mcs data */
-
-#define YAM_IOBASE   (1 << 0)
-#define YAM_IRQ      (1 << 1)
-#define YAM_BITRATE  (1 << 2) /* Bit rate of radio port ->57600 */
-#define YAM_MODE     (1 << 3) /* 0=simplex 1=duplex 2=duplex+tempo */
-#define YAM_HOLDDLY  (1 << 4) /* duplex tempo (sec) */
-#define YAM_TXDELAY  (1 << 5) /* Tx Delay (ms) */
-#define YAM_TXTAIL   (1 << 6) /* Tx Tail  (ms) */
-#define YAM_PERSIST  (1 << 7) /* Persist  (ms) */
-#define YAM_SLOTTIME (1 << 8) /* Slottime (ms) */
-#define YAM_BAUDRATE (1 << 9) /* Baud rate of rs232 port ->115200 */
-
-#define YAM_MAXBITRATE  57600
-#define YAM_MAXBAUDRATE 115200
-#define YAM_MAXMODE     2
-#define YAM_MAXHOLDDLY  99
-#define YAM_MAXTXDELAY  999
-#define YAM_MAXTXTAIL   999
-#define YAM_MAXPERSIST  255
-#define YAM_MAXSLOTTIME 999
-
-#define YAM_FPGA_SIZE	5302
-
-struct yamcfg {
-	unsigned int mask;		/* Mask of commands */
-	unsigned int iobase;	/* IO Base of COM port */
-	unsigned int irq;		/* IRQ of COM port */
-	unsigned int bitrate;	/* Bit rate of radio port */
-	unsigned int baudrate;	/* Baud rate of the RS232 port */
-	unsigned int txdelay;	/* TxDelay */
-	unsigned int txtail;	/* TxTail */
-	unsigned int persist;	/* Persistence */
-	unsigned int slottime;	/* Slottime */
-	unsigned int mode;		/* mode 0 (simp), 1(Dupl), 2(Dupl+delay) */
-	unsigned int holddly;	/* PTT delay in FullDuplex 2 mode */
-};
-
-struct yamdrv_ioctl_cfg {
-	int cmd;
-	struct yamcfg cfg;
-};
-
-struct yamdrv_ioctl_mcs {
-	int cmd;
-	unsigned int bitrate;
-	unsigned char bits[YAM_FPGA_SIZE];
-};
include/net/ax25.h +3 -473
index 9fc6a6657266..6b2f518facdb 100644
@@ -1,480 +1,10 @@
  /* SPDX-License-Identifier: GPL-2.0 */
-/*
- *	Declarations of AX.25 type objects.
- *
- *	Alan Cox (GW4PTS) 	10/11/93
- */
  #ifndef _AX25_H
-#define _AX25_H
+#define _AX25_H
 
  #include <linux/ax25.h>
-#include <linux/spinlock.h>
-#include <linux/timer.h>
-#include <linux/list.h>
-#include <linux/slab.h>
-#include <linux/refcount.h>
-#include <net/neighbour.h>
-#include <net/sock.h>
-#include <linux/seq_file.h>
 
-#define	AX25_T1CLAMPLO  		1
-#define	AX25_T1CLAMPHI 			(30 * HZ)
-
-#define	AX25_BPQ_HEADER_LEN		16
-#define	AX25_KISS_HEADER_LEN		1
-
-#define	AX25_HEADER_LEN			17
-#define	AX25_ADDR_LEN			7
-#define	AX25_DIGI_HEADER_LEN		(AX25_MAX_DIGIS * AX25_ADDR_LEN)
-#define	AX25_MAX_HEADER_LEN		(AX25_HEADER_LEN + AX25_DIGI_HEADER_LEN)
-
-/* AX.25 Protocol IDs */
-#define AX25_P_ROSE			0x01
-#define AX25_P_VJCOMP			0x06	/* Compressed TCP/IP packet   */
-						/* Van Jacobsen (RFC 1144)    */
-#define AX25_P_VJUNCOMP			0x07	/* Uncompressed TCP/IP packet */
-						/* Van Jacobsen (RFC 1144)    */
-#define	AX25_P_SEGMENT			0x08	/* Segmentation fragment      */
-#define AX25_P_TEXNET			0xc3	/* TEXTNET datagram protocol  */
-#define AX25_P_LQ			0xc4	/* Link Quality Protocol      */
-#define AX25_P_ATALK			0xca	/* Appletalk                  */
-#define AX25_P_ATALK_ARP		0xcb	/* Appletalk ARP              */
-#define AX25_P_IP			0xcc	/* ARPA Internet Protocol     */
-#define AX25_P_ARP			0xcd	/* ARPA Address Resolution    */
-#define AX25_P_FLEXNET			0xce	/* FlexNet                    */
-#define AX25_P_NETROM 			0xcf	/* NET/ROM                    */
-#define AX25_P_TEXT 			0xF0	/* No layer 3 protocol impl.  */
-
-/* AX.25 Segment control values */
-#define	AX25_SEG_REM			0x7F
-#define	AX25_SEG_FIRST			0x80
-
-#define AX25_CBIT			0x80	/* Command/Response bit */
-#define AX25_EBIT			0x01	/* HDLC Address Extension bit */
-#define AX25_HBIT			0x80	/* Has been repeated bit */
-
-#define AX25_SSSID_SPARE		0x60	/* Unused bits in SSID for standard AX.25 */
-#define AX25_ESSID_SPARE		0x20	/* Unused bits in SSID for extended AX.25 */
-#define AX25_DAMA_FLAG			0x20	/* Well, it is *NOT* unused! (dl1bke 951121 */
-
-#define	AX25_COND_ACK_PENDING		0x01
-#define	AX25_COND_REJECT		0x02
-#define	AX25_COND_PEER_RX_BUSY		0x04
-#define	AX25_COND_OWN_RX_BUSY		0x08
-#define	AX25_COND_DAMA_MODE		0x10
-
-#ifndef _LINUX_NETDEVICE_H
-#include <linux/netdevice.h>
-#endif
-
-/* Upper sub-layer (LAPB) definitions */
-
-/* Control field templates */
-#define	AX25_I			0x00	/* Information frames */
-#define	AX25_S			0x01	/* Supervisory frames */
-#define	AX25_RR			0x01	/* Receiver ready */
-#define	AX25_RNR		0x05	/* Receiver not ready */
-#define	AX25_REJ		0x09	/* Reject */
-#define	AX25_U			0x03	/* Unnumbered frames */
-#define	AX25_SABM		0x2f	/* Set Asynchronous Balanced Mode */
-#define	AX25_SABME		0x6f	/* Set Asynchronous Balanced Mode Extended */
-#define	AX25_DISC		0x43	/* Disconnect */
-#define	AX25_DM			0x0f	/* Disconnected mode */
-#define	AX25_UA			0x63	/* Unnumbered acknowledge */
-#define	AX25_FRMR		0x87	/* Frame reject */
-#define	AX25_UI			0x03	/* Unnumbered information */
-#define	AX25_XID		0xaf	/* Exchange information */
-#define	AX25_TEST		0xe3	/* Test */
-
-#define	AX25_PF			0x10	/* Poll/final bit for standard AX.25 */
-#define	AX25_EPF		0x01	/* Poll/final bit for extended AX.25 */
-
-#define AX25_ILLEGAL		0x100	/* Impossible to be a real frame type */
-
-#define	AX25_POLLOFF		0
-#define	AX25_POLLON		1
-
-/* AX25 L2 C-bit */
-#define AX25_COMMAND		1
-#define AX25_RESPONSE		2
-
-/* Define Link State constants. */
-
-enum {
-	AX25_STATE_0,			/* Listening */
-	AX25_STATE_1,			/* SABM sent */
-	AX25_STATE_2,			/* DISC sent */
-	AX25_STATE_3,			/* Established */
-	AX25_STATE_4			/* Recovery */
-};
-
-#define AX25_MODULUS 		8	/*  Standard AX.25 modulus */
-#define	AX25_EMODULUS		128	/*  Extended AX.25 modulus */
-
-enum {
-	AX25_PROTO_STD_SIMPLEX,
-	AX25_PROTO_STD_DUPLEX,
-#ifdef CONFIG_AX25_DAMA_SLAVE
-	AX25_PROTO_DAMA_SLAVE,
-#endif
-	__AX25_PROTO_MAX,
-	AX25_PROTO_MAX = __AX25_PROTO_MAX -1
-};
-
-enum {
-	AX25_VALUES_IPDEFMODE,	/* 0=DG 1=VC */
-	AX25_VALUES_AXDEFMODE,	/* 0=Normal 1=Extended Seq Nos */
-	AX25_VALUES_BACKOFF,	/* 0=None 1=Linear 2=Exponential */
-	AX25_VALUES_CONMODE,	/* Allow connected modes - 0=No 1=no "PID text" 2=all PIDs */
-	AX25_VALUES_WINDOW,	/* Default window size for standard AX.25 */
-	AX25_VALUES_EWINDOW,	/* Default window size for extended AX.25 */
-	AX25_VALUES_T1,		/* Default T1 timeout value */
-	AX25_VALUES_T2,		/* Default T2 timeout value */
-	AX25_VALUES_T3,		/* Default T3 timeout value */
-	AX25_VALUES_IDLE,	/* Connected mode idle timer */
-	AX25_VALUES_N2,		/* Default N2 value */
-	AX25_VALUES_PACLEN,	/* AX.25 MTU */
-	AX25_VALUES_PROTOCOL,	/* Std AX.25, DAMA Slave */
-#ifdef CONFIG_AX25_DAMA_SLAVE
-	AX25_VALUES_DS_TIMEOUT,	/* DAMA Slave timeout */
-#endif
-	AX25_MAX_VALUES		/* THIS MUST REMAIN THE LAST ENTRY OF THIS LIST */
-};
-
-#define	AX25_DEF_IPDEFMODE	0			/* Datagram */
-#define	AX25_DEF_AXDEFMODE	0			/* Normal */
-#define	AX25_DEF_BACKOFF	1			/* Linear backoff */
-#define	AX25_DEF_CONMODE	2			/* Connected mode allowed */
-#define	AX25_DEF_WINDOW		2			/* Window=2 */
-#define	AX25_DEF_EWINDOW	32			/* Module-128 Window=32 */
-#define	AX25_DEF_T1		10000			/* T1=10s */
-#define	AX25_DEF_T2		3000			/* T2=3s  */
-#define	AX25_DEF_T3		300000			/* T3=300s */
-#define	AX25_DEF_N2		10			/* N2=10 */
-#define AX25_DEF_IDLE		0			/* Idle=None */
-#define AX25_DEF_PACLEN		256			/* Paclen=256 */
-#define	AX25_DEF_PROTOCOL	AX25_PROTO_STD_SIMPLEX	/* Standard AX.25 */
-#define AX25_DEF_DS_TIMEOUT	180000			/* DAMA timeout 3 minutes */
-
-typedef struct ax25_uid_assoc {
-	struct hlist_node	uid_node;
-	refcount_t		refcount;
-	kuid_t			uid;
-	ax25_address		call;
-} ax25_uid_assoc;
-
-#define ax25_uid_for_each(__ax25, list) \
-	hlist_for_each_entry(__ax25, list, uid_node)
-
-#define ax25_uid_hold(ax25) \
-	refcount_inc(&((ax25)->refcount))
-
-static inline void ax25_uid_put(ax25_uid_assoc *assoc)
-{
-	if (refcount_dec_and_test(&assoc->refcount)) {
-		kfree(assoc);
-	}
-}
-
-typedef struct {
-	ax25_address		calls[AX25_MAX_DIGIS];
-	unsigned char		repeated[AX25_MAX_DIGIS];
-	unsigned char		ndigi;
-	signed char		lastrepeat;
-} ax25_digi;
-
-typedef struct ax25_route {
-	struct ax25_route	*next;
-	ax25_address		callsign;
-	struct net_device	*dev;
-	ax25_digi		*digipeat;
-	char			ip_mode;
-} ax25_route;
-
-void __ax25_put_route(ax25_route *ax25_rt);
-
-extern rwlock_t ax25_route_lock;
-
-static inline void ax25_route_lock_use(void)
-{
-	read_lock(&ax25_route_lock);
-}
-
-static inline void ax25_route_lock_unuse(void)
-{
-	read_unlock(&ax25_route_lock);
-}
-
-typedef struct {
-	char			slave;			/* slave_mode?   */
-	struct timer_list	slave_timer;		/* timeout timer */
-	unsigned short		slave_timeout;		/* when? */
-} ax25_dama_info;
-
-typedef struct ax25_dev {
-	struct list_head	list;
-
-	struct net_device	*dev;
-	netdevice_tracker	dev_tracker;
-
-	struct net_device	*forward;
-	struct ctl_table_header *sysheader;
-	int			values[AX25_MAX_VALUES];
-#ifdef CONFIG_AX25_DAMA_SLAVE
-	ax25_dama_info		dama;
-#endif
-	refcount_t		refcount;
-	bool device_up;
-	struct rcu_head		rcu;
-} ax25_dev;
-
-typedef struct ax25_cb {
-	struct hlist_node	ax25_node;
-	ax25_address		source_addr, dest_addr;
-	ax25_digi		*digipeat;
-	ax25_dev		*ax25_dev;
-	netdevice_tracker	dev_tracker;
-	unsigned char		iamdigi;
-	unsigned char		state, modulus, pidincl;
-	unsigned short		vs, vr, va;
-	unsigned char		condition, backoff;
-	unsigned char		n2, n2count;
-	struct timer_list	t1timer, t2timer, t3timer, idletimer;
-	unsigned long		t1, t2, t3, idle, rtt;
-	unsigned short		paclen, fragno, fraglen;
-	struct sk_buff_head	write_queue;
-	struct sk_buff_head	reseq_queue;
-	struct sk_buff_head	ack_queue;
-	struct sk_buff_head	frag_queue;
-	unsigned char		window;
-	struct timer_list	timer, dtimer;
-	struct sock		*sk;		/* Backlink to socket */
-	refcount_t		refcount;
-} ax25_cb;
-
-struct ax25_sock {
-	struct sock		sk;
-	struct ax25_cb		*cb;
-};
-
-#define ax25_sk(ptr) container_of_const(ptr, struct ax25_sock, sk)
-
-static inline struct ax25_cb *sk_to_ax25(const struct sock *sk)
-{
-	return ax25_sk(sk)->cb;
-}
-
-#define ax25_for_each(__ax25, list) \
-	hlist_for_each_entry(__ax25, list, ax25_node)
-
-#define ax25_cb_hold(__ax25) \
-	refcount_inc(&((__ax25)->refcount))
-
-static __inline__ void ax25_cb_put(ax25_cb *ax25)
-{
-	if (refcount_dec_and_test(&ax25->refcount)) {
-		kfree(ax25->digipeat);
-		kfree(ax25);
-	}
-}
-
-static inline void ax25_dev_hold(ax25_dev *ax25_dev)
-{
-	refcount_inc(&ax25_dev->refcount);
-}
-
-static inline void ax25_dev_put(ax25_dev *ax25_dev)
-{
-	if (refcount_dec_and_test(&ax25_dev->refcount))
-		kfree_rcu(ax25_dev, rcu);
-}
-static inline __be16 ax25_type_trans(struct sk_buff *skb, struct net_device *dev)
-{
-	skb->dev      = dev;
-	skb_reset_mac_header(skb);
-	skb->pkt_type = PACKET_HOST;
-	return htons(ETH_P_AX25);
-}
-
-/* af_ax25.c */
-extern struct hlist_head ax25_list;
-extern spinlock_t ax25_list_lock;
-void ax25_cb_add(ax25_cb *);
-struct sock *ax25_find_listener(ax25_address *, int, struct net_device *, int);
-struct sock *ax25_get_socket(ax25_address *, ax25_address *, int);
-ax25_cb *ax25_find_cb(const ax25_address *, ax25_address *, ax25_digi *,
-		      struct net_device *);
-void ax25_send_to_raw(ax25_address *, struct sk_buff *, int);
-void ax25_destroy_socket(ax25_cb *);
-ax25_cb * __must_check ax25_create_cb(void);
-void ax25_fillin_cb(ax25_cb *, ax25_dev *);
-struct sock *ax25_make_new(struct sock *, struct ax25_dev *);
-
-/* ax25_addr.c */
-extern const ax25_address ax25_bcast;
-extern const ax25_address ax25_defaddr;
-extern const ax25_address null_ax25_address;
-char *ax2asc(char *buf, const ax25_address *);
-void asc2ax(ax25_address *addr, const char *callsign);
-int ax25cmp(const ax25_address *, const ax25_address *);
-int ax25digicmp(const ax25_digi *, const ax25_digi *);
-const unsigned char *ax25_addr_parse(const unsigned char *, int,
-	ax25_address *, ax25_address *, ax25_digi *, int *, int *);
-int ax25_addr_build(unsigned char *, const ax25_address *,
-		    const ax25_address *, const ax25_digi *, int, int);
-int ax25_addr_size(const ax25_digi *);
-void ax25_digi_invert(const ax25_digi *, ax25_digi *);
-
-/* ax25_dev.c */
-extern spinlock_t ax25_dev_lock;
-
-#if IS_ENABLED(CONFIG_AX25)
-static inline ax25_dev *ax25_dev_ax25dev(const struct net_device *dev)
-{
-	return rcu_dereference_rtnl(dev->ax25_ptr);
-}
-#endif
-
-ax25_dev *ax25_addr_ax25dev(ax25_address *);
-void ax25_dev_device_up(struct net_device *);
-void ax25_dev_device_down(struct net_device *);
-int ax25_fwd_ioctl(unsigned int, struct ax25_fwd_struct *);
-struct net_device *ax25_fwd_dev(struct net_device *);
-void ax25_dev_free(void);
-
-/* ax25_ds_in.c */
-int ax25_ds_frame_in(ax25_cb *, struct sk_buff *, int);
-
-/* ax25_ds_subr.c */
-void ax25_ds_nr_error_recovery(ax25_cb *);
-void ax25_ds_enquiry_response(ax25_cb *);
-void ax25_ds_establish_data_link(ax25_cb *);
-void ax25_dev_dama_off(ax25_dev *);
-void ax25_dama_on(ax25_cb *);
-void ax25_dama_off(ax25_cb *);
-
-/* ax25_ds_timer.c */
-void ax25_ds_setup_timer(ax25_dev *);
-void ax25_ds_set_timer(ax25_dev *);
-void ax25_ds_del_timer(ax25_dev *);
-void ax25_ds_timer(ax25_cb *);
-void ax25_ds_t1_timeout(ax25_cb *);
-void ax25_ds_heartbeat_expiry(ax25_cb *);
-void ax25_ds_t3timer_expiry(ax25_cb *);
-void ax25_ds_idletimer_expiry(ax25_cb *);
-
-/* ax25_iface.c */
-
-struct ax25_protocol {
-	struct ax25_protocol *next;
-	unsigned int pid;
-	int (*func)(struct sk_buff *, ax25_cb *);
-};
-
-void ax25_register_pid(struct ax25_protocol *ap);
-void ax25_protocol_release(unsigned int);
-
-struct ax25_linkfail {
-	struct hlist_node lf_node;
-	void (*func)(ax25_cb *, int);
-};
-
-void ax25_linkfail_register(struct ax25_linkfail *lf);
-void ax25_linkfail_release(struct ax25_linkfail *lf);
-int __must_check ax25_listen_register(const ax25_address *,
-				      struct net_device *);
-void ax25_listen_release(const ax25_address *, struct net_device *);
-int(*ax25_protocol_function(unsigned int))(struct sk_buff *, ax25_cb *);
-int ax25_listen_mine(const ax25_address *, struct net_device *);
-void ax25_link_failed(ax25_cb *, int);
-int ax25_protocol_is_registered(unsigned int);
-
-/* ax25_in.c */
-int ax25_rx_iframe(ax25_cb *, struct sk_buff *);
-int ax25_kiss_rcv(struct sk_buff *, struct net_device *, struct packet_type *,
-		  struct net_device *);
-
-/* ax25_ip.c */
-netdev_tx_t ax25_ip_xmit(struct sk_buff *skb);
-extern const struct header_ops ax25_header_ops;
-
-/* ax25_out.c */
-ax25_cb *ax25_send_frame(struct sk_buff *, int, const ax25_address *,
-			 ax25_address *, ax25_digi *, struct net_device *);
-void ax25_output(ax25_cb *, int, struct sk_buff *);
-void ax25_kick(ax25_cb *);
-void ax25_transmit_buffer(ax25_cb *, struct sk_buff *, int);
-void ax25_queue_xmit(struct sk_buff *skb, struct net_device *dev);
-int ax25_check_iframes_acked(ax25_cb *, unsigned short);
-
-/* ax25_route.c */
-void ax25_rt_device_down(struct net_device *);
-int ax25_rt_ioctl(unsigned int, void __user *);
-extern const struct seq_operations ax25_rt_seqops;
-ax25_route *ax25_get_route(ax25_address *addr, struct net_device *dev);
-struct sk_buff *ax25_rt_build_path(struct sk_buff *, ax25_address *,
-				   ax25_address *, ax25_digi *);
-void ax25_rt_free(void);
-
-/* ax25_std_in.c */
-int ax25_std_frame_in(ax25_cb *, struct sk_buff *, int);
-
-/* ax25_std_subr.c */
-void ax25_std_nr_error_recovery(ax25_cb *);
-void ax25_std_establish_data_link(ax25_cb *);
-void ax25_std_transmit_enquiry(ax25_cb *);
-void ax25_std_enquiry_response(ax25_cb *);
-void ax25_std_timeout_response(ax25_cb *);
-
-/* ax25_std_timer.c */
-void ax25_std_heartbeat_expiry(ax25_cb *);
-void ax25_std_t1timer_expiry(ax25_cb *);
-void ax25_std_t2timer_expiry(ax25_cb *);
-void ax25_std_t3timer_expiry(ax25_cb *);
-void ax25_std_idletimer_expiry(ax25_cb *);
-
-/* ax25_subr.c */
-void ax25_clear_queues(ax25_cb *);
-void ax25_frames_acked(ax25_cb *, unsigned short);
-void ax25_requeue_frames(ax25_cb *);
-int ax25_validate_nr(ax25_cb *, unsigned short);
-int ax25_decode(ax25_cb *, struct sk_buff *, int *, int *, int *);
-void ax25_send_control(ax25_cb *, int, int, int);
-void ax25_return_dm(struct net_device *, ax25_address *, ax25_address *,
-		    ax25_digi *);
-void ax25_calculate_t1(ax25_cb *);
-void ax25_calculate_rtt(ax25_cb *);
-void ax25_disconnect(ax25_cb *, int);
-
-/* ax25_timer.c */
-void ax25_setup_timers(ax25_cb *);
-void ax25_start_heartbeat(ax25_cb *);
-void ax25_start_t1timer(ax25_cb *);
-void ax25_start_t2timer(ax25_cb *);
-void ax25_start_t3timer(ax25_cb *);
-void ax25_start_idletimer(ax25_cb *);
-void ax25_stop_heartbeat(ax25_cb *);
-void ax25_stop_t1timer(ax25_cb *);
-void ax25_stop_t2timer(ax25_cb *);
-void ax25_stop_t3timer(ax25_cb *);
-void ax25_stop_idletimer(ax25_cb *);
-int ax25_t1timer_running(ax25_cb *);
-unsigned long ax25_display_timer(struct timer_list *);
-
-/* ax25_uid.c */
-extern int  ax25_uid_policy;
-ax25_uid_assoc *ax25_findbyuid(kuid_t);
-int __must_check ax25_uid_ioctl(int, struct sockaddr_ax25 *);
-extern const struct seq_operations ax25_uid_seqops;
-void ax25_uid_free(void);
-
-/* sysctl_net_ax25.c */
-#ifdef CONFIG_SYSCTL
-int ax25_register_dev_sysctl(ax25_dev *ax25_dev);
-void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev);
-#else
-static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0; }
-static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {}
-#endif /* CONFIG_SYSCTL */
+#define	AX25_ADDR_LEN	7
+#define	AX25_P_IP	0xCC
 
  #endif
include/net/netrom.h deleted +0 -273
deleted file mode 100644
index f0565a5987d1..000000000000
@@ -1,273 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- *	Declarations of NET/ROM type objects.
- *
- *	Jonathan Naylor G4KLX	9/4/95
- */
-
-#ifndef _NETROM_H
-#define _NETROM_H
-
-#include <linux/netrom.h>
-#include <linux/list.h>
-#include <linux/slab.h>
-#include <net/sock.h>
-#include <linux/refcount.h>
-#include <linux/seq_file.h>
-#include <net/ax25.h>
-
-#define	NR_NETWORK_LEN			15
-#define	NR_TRANSPORT_LEN		5
-
-#define	NR_PROTO_IP			0x0C
-
-#define	NR_PROTOEXT			0x00
-#define	NR_CONNREQ			0x01
-#define	NR_CONNACK			0x02
-#define	NR_DISCREQ			0x03
-#define	NR_DISCACK			0x04
-#define	NR_INFO				0x05
-#define	NR_INFOACK			0x06
-#define	NR_RESET			0x07
-
-#define	NR_CHOKE_FLAG			0x80
-#define	NR_NAK_FLAG			0x40
-#define	NR_MORE_FLAG			0x20
-
-/* Define Link State constants. */
-enum {
-	NR_STATE_0,
-	NR_STATE_1,
-	NR_STATE_2,
-	NR_STATE_3
-};
-
-#define	NR_COND_ACK_PENDING		0x01
-#define	NR_COND_REJECT			0x02
-#define	NR_COND_PEER_RX_BUSY		0x04
-#define	NR_COND_OWN_RX_BUSY		0x08
-
-#define NR_DEFAULT_T1			120000		/* Outstanding frames - 120 seconds */
-#define NR_DEFAULT_T2			5000		/* Response delay     - 5 seconds */
-#define NR_DEFAULT_N2			3		/* Number of Retries - 3 */
-#define	NR_DEFAULT_T4			180000		/* Busy Delay - 180 seconds */
-#define	NR_DEFAULT_IDLE			0		/* No Activity Timeout - none */
-#define	NR_DEFAULT_WINDOW		4		/* Default Window Size - 4 */
-#define	NR_DEFAULT_OBS			6		/* Default Obsolescence Count - 6 */
-#define	NR_DEFAULT_QUAL			10		/* Default Neighbour Quality - 10 */
-#define	NR_DEFAULT_TTL			16		/* Default Time To Live - 16 */
-#define	NR_DEFAULT_ROUTING		1		/* Is routing enabled ? */
-#define	NR_DEFAULT_FAILS		2		/* Link fails until route fails */
-#define	NR_DEFAULT_RESET		0		/* Sent / accept reset cmds? */
-
-#define NR_MODULUS 			256
-#define NR_MAX_WINDOW_SIZE		127			/* Maximum Window Allowable - 127 */
-#define	NR_MAX_PACKET_SIZE		236			/* Maximum Packet Length - 236 */
-
-struct nr_sock {
-	struct sock		sock;
-	ax25_address		user_addr, source_addr, dest_addr;
-	struct net_device		*device;
-	unsigned char		my_index,   my_id;
-	unsigned char		your_index, your_id;
-	unsigned char		state, condition, bpqext, window;
-	unsigned short		vs, vr, va, vl;
-	unsigned char		n2, n2count;
-	unsigned long		t1, t2, t4, idle;
-	unsigned short		fraglen;
-	struct timer_list	t1timer;
-	struct timer_list	t2timer;
-	struct timer_list	t4timer;
-	struct timer_list	idletimer;
-	struct sk_buff_head	ack_queue;
-	struct sk_buff_head	reseq_queue;
-	struct sk_buff_head	frag_queue;
-};
-
-#define nr_sk(sk) ((struct nr_sock *)(sk))
-
-struct nr_neigh {
-	struct hlist_node	neigh_node;
-	ax25_address		callsign;
-	ax25_digi		*digipeat;
-	ax25_cb			*ax25;
-	struct net_device	*dev;
-	unsigned char		quality;
-	unsigned char		locked;
-	unsigned short		count;
-	unsigned int		number;
-	unsigned char		failed;
-	refcount_t		refcount;
-};
-
-struct nr_route {
-	unsigned char   quality;
-	unsigned char   obs_count;
-	struct nr_neigh *neighbour;
-};
-
-struct nr_node {
-	struct hlist_node	node_node;
-	ax25_address		callsign;
-	char			mnemonic[7];
-	unsigned char		which;
-	unsigned char		count;
-	struct nr_route		routes[3];
-	refcount_t		refcount;
-	spinlock_t		node_lock;
-};
-
-/*********************************************************************
- *	nr_node & nr_neigh lists, refcounting and locking
- *********************************************************************/
-
-#define nr_node_hold(__nr_node) \
-	refcount_inc(&((__nr_node)->refcount))
-
-static __inline__ void nr_node_put(struct nr_node *nr_node)
-{
-	if (refcount_dec_and_test(&nr_node->refcount)) {
-		kfree(nr_node);
-	}
-}
-
-#define nr_neigh_hold(__nr_neigh) \
-	refcount_inc(&((__nr_neigh)->refcount))
-
-static __inline__ void nr_neigh_put(struct nr_neigh *nr_neigh)
-{
-	if (refcount_dec_and_test(&nr_neigh->refcount)) {
-		if (nr_neigh->ax25)
-			ax25_cb_put(nr_neigh->ax25);
-		kfree(nr_neigh->digipeat);
-		kfree(nr_neigh);
-	}
-}
-
-/* nr_node_lock and nr_node_unlock also hold/put the node's refcounter.
- */
-static __inline__ void nr_node_lock(struct nr_node *nr_node)
-{
-	nr_node_hold(nr_node);
-	spin_lock_bh(&nr_node->node_lock);
-}
-
-static __inline__ void nr_node_unlock(struct nr_node *nr_node)
[… more lines in the raw message]

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

include/net/rose.h +2 -261
index 2b5491bbf39a..41bfcb224f0b 100644

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

include/uapi/linux/baycom.h deleted +0 -40
deleted file mode 100644
index 478cb565ae52..000000000000

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

include/uapi/linux/hdlcdrv.h deleted +0 -111
deleted file mode 100644
index 9fe9499403a6..000000000000

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

include/uapi/linux/netrom.h deleted +0 -37
deleted file mode 100644
index 7498ea3c3940..000000000000

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

include/uapi/linux/rose.h deleted +0 -91
deleted file mode 100644
index 19aa4693c8fc..000000000000

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

include/uapi/linux/scc.h deleted +0 -174
deleted file mode 100644
index 947edb17ce9d..000000000000

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

drivers/net/hamradio/6pack.c deleted +0 -912
deleted file mode 100644
index c8b2dc5c1bec..000000000000

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

drivers/net/hamradio/baycom_epp.c deleted +0 -1316
deleted file mode 100644
index 5fda7a0fcce0..000000000000

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

drivers/net/hamradio/baycom_par.c deleted +0 -598
deleted file mode 100644
index f03797103c6a..000000000000

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

drivers/net/hamradio/baycom_ser_fdx.c deleted +0 -678
deleted file mode 100644
index ee5bd3c12040..000000000000

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

drivers/net/hamradio/baycom_ser_hdx.c deleted +0 -727
deleted file mode 100644
index 05bdad214799..000000000000

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

drivers/net/hamradio/bpqether.c deleted +0 -593
deleted file mode 100644
index 214fd1f819a1..000000000000

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

drivers/net/hamradio/hdlcdrv.c deleted +0 -747
deleted file mode 100644
index 3b88e465d08f..000000000000

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

drivers/net/hamradio/mkiss.c deleted +0 -980
deleted file mode 100644
index 5f38a002bd9e..000000000000

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

drivers/net/hamradio/scc.c deleted +0 -2179
deleted file mode 100644
index 8569db4a7140..000000000000

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

drivers/net/hamradio/yam.c deleted +0 -1191
deleted file mode 100644
index 4106f0301ab4..000000000000

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

net/ax25/af_ax25.c deleted +0 -2089
deleted file mode 100644
index 9d236e64f5f5..000000000000

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

net/ax25/ax25_addr.c deleted +0 -303
deleted file mode 100644
index f68865a4d0ab..000000000000

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

net/ax25/ax25_dev.c deleted +0 -200
deleted file mode 100644
index 3c0544fc4ad5..000000000000

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

net/ax25/ax25_ds_in.c deleted +0 -298
deleted file mode 100644
index c62f8fb06189..000000000000

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

net/ax25/ax25_ds_subr.c deleted +0 -204
deleted file mode 100644
index f00e27df3c76..000000000000

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

net/ax25/ax25_ds_timer.c deleted +0 -235
deleted file mode 100644
index 0c9e7775aa54..000000000000

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

net/ax25/ax25_iface.c deleted +0 -214
deleted file mode 100644
index 3ad454416a5c..000000000000

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

net/ax25/ax25_in.c deleted +0 -455
deleted file mode 100644
index d75b3e9ed93d..000000000000

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

net/ax25/ax25_ip.c deleted +0 -247
deleted file mode 100644
index 215d4ccf12b9..000000000000

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

net/ax25/ax25_out.c deleted +0 -398
deleted file mode 100644
index 8bca2ace98e5..000000000000

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

net/ax25/ax25_route.c deleted +0 -416
deleted file mode 100644
index 1d5c59ccf142..000000000000

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

net/ax25/ax25_std_in.c deleted +0 -443
deleted file mode 100644
index ba176196ae06..000000000000

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

net/ax25/ax25_std_subr.c deleted +0 -83
deleted file mode 100644
index 4c36f1342558..000000000000

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

net/ax25/ax25_std_timer.c deleted +0 -175
deleted file mode 100644
index b17da41210cb..000000000000

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

net/ax25/ax25_subr.c deleted +0 -296
deleted file mode 100644
index bff4b203a893..000000000000

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

net/ax25/ax25_timer.c deleted +0 -224
deleted file mode 100644
index a69bfbc8b679..000000000000

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

net/ax25/ax25_uid.c deleted +0 -204
deleted file mode 100644
index 159ce74273f0..000000000000

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

net/ax25/sysctl_net_ax25.c deleted +0 -181
deleted file mode 100644
index 68753aa30334..000000000000

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

net/ipv4/arp.c +0 -1
index 51d70180e1cc..d409f606aec0 100644

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

net/netrom/af_netrom.c deleted +0 -1536
deleted file mode 100644
index 5fc54836dfa8..000000000000

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

net/netrom/nr_dev.c deleted +0 -178
deleted file mode 100644
index 2c34389c3ce6..000000000000

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

net/netrom/nr_in.c deleted +0 -301
deleted file mode 100644
index 97944db6b5ac..000000000000

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

net/netrom/nr_loopback.c deleted +0 -73
deleted file mode 100644
index 7a9d765b30c0..000000000000

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

net/netrom/nr_out.c deleted +0 -272
deleted file mode 100644
index 2b3cbceb0b52..000000000000

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

net/netrom/nr_route.c deleted +0 -989
deleted file mode 100644
index 9cc29ae85b06..000000000000

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

net/netrom/nr_subr.c deleted +0 -280
deleted file mode 100644
index c3bbd5880850..000000000000

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

net/netrom/nr_timer.c deleted +0 -249
deleted file mode 100644
index b3a62b1f3a09..000000000000

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

net/netrom/sysctl_net_netrom.c deleted +0 -156
deleted file mode 100644
index 7dc0fa628f2e..000000000000

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

net/rose/af_rose.c deleted +0 -1687
deleted file mode 100644
index d5032840ee48..000000000000

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

net/rose/rose_dev.c deleted +0 -141
deleted file mode 100644
index f1a76a5820f1..000000000000

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

net/rose/rose_in.c deleted +0 -301
deleted file mode 100644
index ca4f217ef3d3..000000000000

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

net/rose/rose_link.c deleted +0 -289
deleted file mode 100644
index 7746229fdc8c..000000000000

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

net/rose/rose_loopback.c deleted +0 -133
deleted file mode 100644
index b538e39b3df5..000000000000

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

net/rose/rose_out.c deleted +0 -122
deleted file mode 100644
index 9050e33c9604..000000000000

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

net/rose/rose_route.c deleted +0 -1333
deleted file mode 100644
index e31842e6b3c8..000000000000

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

net/rose/rose_subr.c deleted +0 -556
deleted file mode 100644
index 4dbc437a9e22..000000000000

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

net/rose/rose_timer.c deleted +0 -227
deleted file mode 100644
index bb60a1654d61..000000000000

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

net/rose/sysctl_net_rose.c deleted +0 -125
deleted file mode 100644
index d801315b7083..000000000000

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

arch/mips/configs/bcm47xx_defconfig +0 -1
index d10b3d4adbd1..acbab8dae53f 100644

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

arch/mips/configs/bigsur_defconfig +0 -10
index 3b64e151e187..aa63ada62e28 100644

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

arch/mips/configs/gpr_defconfig +0 -11
index 8097974489e3..ad80ad2eae6b 100644

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

arch/mips/configs/mtx1_defconfig +0 -11
index 63787b8b733e..1295164af08e 100644

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

arch/mips/configs/rb532_defconfig +0 -1
index 30d18b084cda..a88322fe3935 100644

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

arch/mips/configs/rm200_defconfig +0 -7
index b1e67ff0c4f0..ad9fbd0cbb38 100644

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

arch/mips/configs/rt305x_defconfig +0 -1
index 8f9701efef19..c920976bedd0 100644

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

arch/mips/configs/xway_defconfig +0 -1
index aae8497b6872..f1c53bbb72e9 100644

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

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

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

reviewer Reviewed-by on v1 1/1
#8 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Quoted 6 lines

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

Reviewed-by
#9 lore raw
Quoted 11 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Quoted 6 lines

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

Acked-by on v1 1/1
#10 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Quoted 6 lines

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

#11 lore raw

From: Bernard Pidoux <[email protected]>

Quoted 1 line · Toke Høiland-Jørgensen

Hello Toke, Jakub, all,

I understand the decision to move AX.25, NET/ROM, and ROSE out of tree, and I am not opposing it. The maintenance burden caused by AI-generated syzbot reports with no human follow-up is a legitimate reason to act.

That said, I would like to raise one specific concern: the ROSE subsystem accumulated a number of real bugs through upstream commits that were merged without hardware testing. I have been running ROSE on actual packet radio equipment and was able to reproduce and fix five of these bugs, confirmed via KASAN and netconsole.

The most severe symptom is that the ROSE module cannot be cleanly unloaded once an AX.25 connection has been established, which makes amateur radio applications that rely on ROSE effectively unusable until a reboot.

My five patches address:

1. rose: fix dev_put() leak in rose_loopback_timer()

Fixes 0453c6824595 ("net/rose: fix unbound loop in rose_loopback_timer()")

2. rose: hold loopback neighbour reference across timer callback

Fixes d860d1faa6b2 ("net: rose: convert 'use' field to refcount_t")

3. rose: fix race between loopback timer and module removal

Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")

4. rose: clear neighbour pointer after rose_neigh_put() in state machines

Fixes d860d1faa6b2 ("net: rose: convert 'use' field to refcount_t")

5. rose: guard rose_neigh_put() against NULL in timer expiry

Fixes 5de7665e0a07 ("net: rose: fix timer races against user threads")

Each patch carries the appropriate Fixes: tag and a Tested-by from me on real hardware. They are visible on lore.kernel.org.

Since ROSE will no longer be maintained in-tree from 7.1 onward, the only remaining users are those running current stable kernels (7.0.y and earlier). Would it be possible to have these five patches queued for the stable trees via Greg's stable process?

I am happy to resend them as a formal series tagged [PATCH stable] against the current stable releases if that is preferred.

Thank you for your work on the Linux networking subsystem.

73 de Bernard Pidoux, F6BVP
<[email protected]>

#12 lore raw
In reply to Toke Høiland-Jørgensen

From: Bernard Pidoux <[email protected]>

Quoted 1 line · Toke Høiland-Jørgensen

Hello Toke, Jakub, all,

I understand the decision to move AX.25, NET/ROM, and ROSE out of tree, and I am not opposing it. The maintenance burden caused by AI-generated syzbot reports with no human follow-up is a legitimate reason to act.

That said, I would like to raise one specific concern: the ROSE subsystem accumulated a number of real bugs through upstream commits that were merged without hardware testing. I have been running ROSE on actual packet radio equipment and was able to reproduce and fix five of these bugs, confirmed via KASAN and netconsole.

The most severe symptom is that the ROSE module cannot be cleanly unloaded once an AX.25 connection has been established, which makes amateur radio applications that rely on ROSE effectively unusable until a reboot.

My five patches address:

1. rose: fix dev_put() leak in rose_loopback_timer()

Fixes 0453c6824595 ("net/rose: fix unbound loop in rose_loopback_timer()")

2. rose: hold loopback neighbour reference across timer callback

Fixes d860d1faa6b2 ("net: rose: convert 'use' field to refcount_t")

3. rose: fix race between loopback timer and module removal

Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")

4. rose: clear neighbour pointer after rose_neigh_put() in state machines

Fixes d860d1faa6b2 ("net: rose: convert 'use' field to refcount_t")

5. rose: guard rose_neigh_put() against NULL in timer expiry

Fixes 5de7665e0a07 ("net: rose: fix timer races against user threads")

Each patch carries the appropriate Fixes: tag and a Tested-by from me on real hardware. They are visible on lore.kernel.org.

Since ROSE will no longer be maintained in-tree from 7.1 onward, the only remaining users are those running current stable kernels (7.0.y and earlier). Would it be possible to have these five patches queued for the stable trees via Greg's stable process?

I am happy to resend them as a formal series tagged [PATCH stable] against the current stable releases if that is preferred.

Thank you for your work on the Linux networking subsystem.

73 de Bernard Pidoux, F6BVP
<[email protected]>

author maintainer
#13 lore raw
Quoted 10 lines · On Tue, 12 May 2026 16:45:10 +0200 f6bvp wrote:

Each patch carries the appropriate Fixes: tag and a Tested-by from me on real hardware. They are visible on lore.kernel.org.

Since ROSE will no longer be maintained in-tree from 7.1 onward, the only remaining users are those running current stable kernels (7.0.y and earlier). Would it be possible to have these five patches queued for the stable trees via Greg's stable process?

I am happy to resend them as a formal series tagged [PATCH stable] against the current stable releases if that is preferred.

Could you perhaps target the OOT modules?
https://github.com/linux-netdev/mod-orphan
Does it work with older kernels? I think I compile-tested it but didn't do any testing..

A message that is not in the archive (sent off-list or not yet received): CAFAa3YDcBsCnEJ1t+a3iHhzxW65HX+QNkZWPKHvDYp_V+UwZYQ@mail.gmail.com

author maintainer
#15 lore raw
Quoted 2 lines · On Fri, 15 May 2026 16:52:43 +0200 Bernard Pidoux wrote:

I am happy to submit these two fixes as patches to mod-orphan if that is the right approach. Please let me know.

It's a GitHub repo so PR is probably appropriate there.

#16 lore raw
Quoted 1 line · On Fri, 16 May 2026 Jakub Kicinski wrote:

It's a GitHub repo so PR is probably appropriate there.

Done. I have submitted the five rose fixes as a pull request to the mod-orphan repository:

https://github.com/linux-netdev/mod-orphan/pull/1

The PR contains six commits:

1. rose: build with hamradio_compat.h on pre-7.0 kernels (compat shim for struct sockaddr_unsized, required by af_rose.c)
2. rose: fix dev_put() leak in rose_loopback_timer()
3. rose: hold loopback neighbour reference across timer callback
4. rose: fix race between loopback timer and module removal
5. rose: clear neighbour pointer after rose_neigh_put() in state machines
6. rose: guard rose_neigh_put() against NULL in timer expiry

All five fixes have been built and tested successfully against kernel 6.17.0-23-generic (pre-7.0): insmod, functional operation, and rmmod all completed cleanly with no crash or leak detected.

73 de Bernard Pidoux F6BVP

Quoted 6 lines · Jakub Kicinski
Quoted 2 lines · On Fri, 15 May 2026 16:52:43 +0200 Bernard Pidoux wrote:

I am happy to submit these two fixes as patches to mod-orphan if that is the right approach. Please let me know.

It's a GitHub repo so PR is probably appropriate there.

#17 lore raw
In reply to Jakub Kicinski
Quoted 1 line · On Fri, 16 May 2026 Jakub Kicinski wrote:

It's a GitHub repo so PR is probably appropriate there.

Done. I have submitted the five rose fixes as a pull request to the mod-orphan repository:

https://github.com/linux-netdev/mod-orphan/pull/1

The PR contains six commits:

1. rose: build with hamradio_compat.h on pre-7.0 kernels (compat shim for struct sockaddr_unsized, required by af_rose.c)
2. rose: fix dev_put() leak in rose_loopback_timer()
3. rose: hold loopback neighbour reference across timer callback
4. rose: fix race between loopback timer and module removal
5. rose: clear neighbour pointer after rose_neigh_put() in state machines
6. rose: guard rose_neigh_put() against NULL in timer expiry

All five fixes have been built and tested successfully against kernel 6.17.0-23-generic (pre-7.0): insmod, functional operation, and rmmod all completed cleanly with no crash or leak detected.

73 de Bernard Pidoux F6BVP

Quoted 6 lines · Jakub Kicinski
Quoted 2 lines · On Fri, 15 May 2026 16:52:43 +0200 Bernard Pidoux wrote:

I am happy to submit these two fixes as patches to mod-orphan if that is the right approach. Please let me know.

It's a GitHub repo so PR is probably appropriate there.

maintainer
#18 lore raw
In reply to Jakub Kicinski

include/linux/netdevice.h struct net_device { · line 2321

Quoted 7 lines · Jakub Kicinski
include/linux/netdevice.h +0 -3
@@ -2316,9 +2316,6 @@ struct net_device {
 #if IS_ENABLED(CONFIG_ATALK)
 	void 			*atalk_ptr;
 #endif
-#if IS_ENABLED(CONFIG_AX25)
-	struct ax25_dev	__rcu	*ax25_ptr;
-#endif

AI reviews notes that this leaves behind a stray doxygen comment. I think we are better off with a follow-up that with a v2.

/P

maintainer
#19 lore raw
Quoted 11 lines · Paolo Abeni

include/linux/netdevice.h struct net_device { · line 2321

Quoted 7 lines · Jakub Kicinski
include/linux/netdevice.h +0 -3
@@ -2316,9 +2316,6 @@ struct net_device {
 #if IS_ENABLED(CONFIG_ATALK)
 	void 			*atalk_ptr;
 #endif
-#if IS_ENABLED(CONFIG_AX25)
-	struct ax25_dev	__rcu	*ax25_ptr;
-#endif

AI reviews notes that this leaves behind a stray doxygen comment. I think we are better off with a follow-up that with a v2.

Or even better, I'll clean it up while applying it.

/P

#20 lore raw
In reply to Jakub Kicinski
Quoted 15 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

...

Quoted 1 line

delete mode 100644 include/uapi/linux/scc.h

Unfortunately, this broke builds of LLVM -- compiler-rt in particular (and GCC builds allegedly too). They dropped the include and its use [1], but IMO we should keep the uapi header with those two structs (scc_modem + scc_stat) for some time.

[1] https://github.com/llvm/llvm-project/commit/3dc4fd6dd41100f051a63642f449b16324389c96

thanks,

Signature · 2 lines
js
suse labs
#21 lore raw
Quoted 16 lines · Jiri Slaby
Quoted 7 lines · Jakub Kicinski

Remove the amateur radio (AX.25, NET/ROM, ROSE) protocol implementation and all associated hamradio device drivers from the kernel tree. This set of protocols has long been a huge bug/syzbot magnet, and since nobody stepped up to help us deal with the influx of the AI-generated bug reports we need to move it out of tree to protect our sanity.

Quoted 8 lines

The code is moved to an out-of-tree repo:
https://github.com/linux-netdev/mod-orphan
if it's cleaned up and reworked there we can accept it back.

Minimal stub headers are kept for include/net/ax25.h (AX25_P_IP, AX25_ADDR_LEN, ax25_address) and include/net/rose.h (ROSE_ADDR_LEN) so that the conditional integration code in arp.c and tun.c continues to compile and work when the out-of-tree modules are loaded.

Quoted 5 lines

...

Quoted 1 line

  delete mode 100644 include/uapi/linux/scc.h

Unfortunately, this broke builds of LLVM -- compiler-rt in particular (and GCC builds allegedly too). They dropped the include and its use [1], but IMO we should keep the uapi header with those two structs (scc_modem + scc_stat) for some time.

[1] https://github.com/llvm/llvm-project/ commit/3dc4fd6dd41100f051a63642f449b16324389c96

And net-tools are broken by the uapi/linux/rose.h removal:
rose.c:39:10: fatal error: linux/rose.h: No such file or directory
at:
https://github.com/ecki/net-tools/blob/2ab3c5efdb5c220bc9a649fded56c361136bff1a/lib/rose.c#L39

Quoted 2 lines

thanks,

Signature · 2 lines
js
suse labs
author maintainer
#22 lore raw
Quoted 4 lines · On Mon, 29 Jun 2026 07:24:51 +0200 Jiri Slaby wrote:

And net-tools are broken by the uapi/linux/rose.h removal:
rose.c:39:10: fatal error: linux/rose.h: No such file or directory
at:
https://github.com/ecki/net-tools/blob/2ab3c5efdb5c220bc9a649fded56c361136bff1a/lib/rose.c#L39

Looks like the code for rose is already well separated from the rest. Should we just ask net-tools to delete it? Or do you feel strongly about restoring the now-defunct header?

#23 lore raw
Quoted 9 lines · Jakub Kicinski
Quoted 4 lines · On Mon, 29 Jun 2026 07:24:51 +0200 Jiri Slaby wrote:

And net-tools are broken by the uapi/linux/rose.h removal:
rose.c:39:10: fatal error: linux/rose.h: No such file or directory
at:
https://github.com/ecki/net-tools/blob/2ab3c5efdb5c220bc9a649fded56c361136bff1a/lib/rose.c#L39

Looks like the code for rose is already well separated from the rest. Should we just ask net-tools to delete it? Or do you feel strongly about restoring the now-defunct header?

No strong opinion from me. net-tools are easy to fix.

The builds of LLVMs (versions 15 to 21 at least) are broken nonetheless. They are easy to fix as well -- by backporting the fix from main or 22. (15--21 are likely unmaintained upstream already, but still used/required widely).

$ osc whatdependson openSUSE:Factory llvm19 standard x86_64
llvm19 :
      MozillaThunderbird
      firefox-esr
      ghc
      gtkd
      ldc
      lfortran
      python-PyMuPDF
      redumper
      tilix
      zig0.14
$ osc whatdependson openSUSE:Factory llvm21 standard x86_64
llvm21 :
      OpenImageDenoise
      chromium
      embree
      ispc
      leechcraft
      python-PyMuPDF
      python314
      python314:base
      python314:doc
      python315
      python315:base
      python315:doc
      rpcs3
      rust-keylime
      zig0.16

thanks,

Signature · 2 lines
js
suse labs