HP M252dw: TCP to port 9100 times out via onboard MT7927 WiFi,(mt7925e)
From
bad sector@forgetski@_INVALID.net to
alt.os.linux,comp.os.linux.networking,comp.os.linux.hardware on Fri Nov 27 23:31:39 2026
From Newsgroup: comp.os.linux.networking
Asus x870e ProArt board & M252dw printer with Tumbleweed.
Claude session for anyone googling for help with similar issue:
NB. "I" don't need anything other than a working native driver,
provisionally will simply use a usb transceiver UFN.
-------
Subject: HP M252dw: TCP to port 9100 times out via onboard MT7927 WiFi
(mt7925e), works via USB WiFi - openSUSE Tumbleweed
Newsgroups: comp.os.linux.networking, comp.os.linux.hardware
Date: Fri, 27 Nov 2026
======================================================================
SUMMARY
======================================================================
CUPS reported a printer queue "unreachable" and a cyan toner cartridge
"empty". After a long elimination, the fault turned out NOT to be
toner, CUPS, the firewall or the printer's settings. TCP connections
to the printer get no answer when sent from the motherboard's onboard
WiFi (MediaTek MT7927, driver mt7925e), while ARP, ping (even large
pings) and TCP to the router all work on that same adapter. A cheap
USB WiFi adapter on the same network, with the same IP address, talks
to the printer without any problem.
The investigation is parked, not finished. Open question at the end.
MAC addresses below are partly masked (xx) for posting.
======================================================================
1. ENVIRONMENT ======================================================================
Desktop : ASUS X870E ProArt, 96 GB ECC, openSUSE Tumbleweed 20261126
kernel 7.3.5-2-default, Plasma 6, CUPS 2.4.19
Laptop : ThinkPad T480, also Tumbleweed (OFF during network tests)
Printer : HP Color LaserJet Pro M252dw, 192.168.0.143 (DHCP),
MAC 34:68:95:xx:xx:xx, queue driver "HP Color LaserJet Pro
M252 Postscript (recommended)", DeviceURI
socket://192.168.0.143:9100
Network : one 2.4 GHz access point/router 192.168.0.1, SSID LinuxRulez2
(channel 6, desktop signal -33 dBm)
Desktop adapters:
wlp11s0 onboard, MT7927 (mt7925e), MAC 84:9e:56:xx:xx:xx
wlp17s0u7u? cheap USB WiFi (interface name changed from u7u1 to
u7u6 between boots, which confused one test)
Onboard driver details from dmesg:
mt7925e 0000:0b:00.0: disabling ASPM L1
mt7925e 0000:0b:00.0: MT7927 raw CHIPID=0x0000, forcing chip=0x7927
Loading firmware patch: mediatek/mt7927/WIFI_MT6639_PATCH_MCU_2_1_hdr.bin
HW/SW Version: 0x8a108a10, Build Time: 20260414133750a
======================================================================
2. THE ORIGINAL SYMPTOM ======================================================================
The printer printed fine from the laptop. On the desktop the print
dialog said "Cyan toner cartridge HP CF401A appears to be empty" and the
job sat in "Connecting to printer", then the KDE applet said "The
printer is unreachable at this time". The printer's own panel said
LOW for cyan and was set to continue printing anyway.
======================================================================
3. FIRST THEORY: CUPS / TONER (WRONG) ======================================================================
Compared the two machines:
- /etc/cups/ppd/<printer>.ppd: binary identical
- lpstat -v, lpoptions -p <printer> -l: identical except queue name
- /etc/cups/snmp.conf: identical
- printers.conf differed in two ways: the desktop's stanza had cached
"Attribute marker-levels 0,18,47,84" (cyan = 0) and ErrorPolicy
retry-job; the laptop's had no marker attributes and ErrorPolicy
stop-printer.
That looked like the smoking gun, but:
- grep -i reason /etc/cups/printers.conf returned nothing (no stored
"Reason marker-supply-empty" line to delete).
- cupsenable / cupsaccept made no difference.
- lpstat -p -l showed the job stuck at "Connecting to printer".
So CUPS was waiting on a connection that never completed.
======================================================================
4. RAW CONNECTIVITY TESTS ======================================================================
# ping -c 3 192.168.0.143
3 packets transmitted, 3 received, 0% packet loss
# nc -zv -w 3 192.168.0.143 9100
nc: connect to 192.168.0.143 port 9100 (tcp) timed out
Ping works, TCP to the printer does not.
# firewall-cmd --list-all (zone public, interface wlp11s0)
services: dhcpv6-client, no ports, no rich rules
Nothing blocking outbound. The laptop, at the same moment, connected
to 192.168.0.143:9100 without trouble.
======================================================================
5. THE ADAPTER CLUE ======================================================================
- Connected via the USB adapter only: printing works.
- Connected via the onboard wlp11s0: "Connecting to printer",
then "unreachable".
- Reconnecting the USB adapter while the onboard one stays connected:
behaviour is as if only the onboard one were used (it has route
metric 600 and wins).
Disabling onboard WiFi power save (iw dev wlp11s0 set power_save off)
did not help.
======================================================================
6. SYSTEMATIC TROUBLESHOOTING (laptop off, onboard adapter only) ======================================================================
6.1 Baseline log (excerpt)
wlp11s0 UP 192.168.0.186/24, default via 192.168.0.1 metric 600
Connected to e4:6f:13:xx:xx:xx, freq 2437, signal -33 dBm,
rx/tx 144.4 MBit/s MCS 15
ss -tn: SYN-SENT 192.168.0.186:39328 -> 192.168.0.143:9100
ip neigh: 192.168.0.143 lladdr 34:68:95:xx:xx:xx REACHABLE
6.2 tcpdump of nc to ports 9100 and 80 (wlp11s0)
Every SYN leaves and is retransmitted; no SYN-ACK and no RST
ever comes back, on either port. The printer is not actively
refusing; there is simply no answer.
6.3 arping -I wlp11s0 -c 3 192.168.0.143
Three replies, always from 34:68:95:xx:xx:xx, which matches the
MAC on the printer's own Network Summary page. One responder only,
so no duplicate-IP problem.
6.4 nc -zv -w 5 192.168.0.1 80
"Connection ... succeeded!" The onboard adapter can complete TCP
to the router, so the desktop TCP stack and firewall are fine.
6.5 Printer web interface, Security tab
Access Control List: disabled. Firewall: disabled.
6.6 Queue question: could a stale desktop job block the laptop?
No. Each machine runs its own CUPS and spool. The desktop job was
in SYN-SENT, so it never held the printer's port 9100. Port 80 got
no answer either. The stale job was a symptom: it printed as soon
as the USB adapter became the active link.
6.7 Reboot (unrelated disk problem forced one), onboard adapter only:
wlp11s0 UP 192.168.0.186/24
192.168.0.143 dev wlp11s0 src 192.168.0.186
nc ... 9100 -> timed out
Reproducible after a reboot, so not stale state.
6.8 Same adapter, different IP. Onboard adapter set to static
192.168.0.158 (the address the working USB adapter had):
nc ... 9100 -> timed out
Not an IP-address problem.
6.9 Same adapter, different MAC. cloned-mac-address=random gave
c2:c3:b6:xx:xx:xx and DHCP address 192.168.0.171:
nc ... 9100 -> timed out
Not a MAC problem, and the printer had never seen this MAC.
6.10 dmesg -C; nc -zv -w 5 192.168.0.143 9100; dmesg | tail -30
dmesg stayed completely empty. The failure is silent: no driver
warning, firmware error or queue reset.
6.11 tcpdump 'host 192.168.0.143' during a failing nc:
5 SYNs from 192.168.0.171 to 192.168.0.143:9100, one per second,
no reply.
Afterwards: ARP Request who-has 192.168.0.143, ARP Reply
192.168.0.143 is-at 34:68:95:xx:xx:xx
The printer's frames do reach the onboard radio.
6.12 ping -c 5 -s 1200 -i 0.5 192.168.0.143
5 transmitted, 5 received, 0% packet loss, rtt ~3 ms
Large ICMP frames pass in both directions, so frame size,
aggregation and signal quality are not the cause.
======================================================================
7. RESULTS TABLE ======================================================================
Adapter MAC IP TCP to printer TCP to router
-------- --------- -------------- --------------- -------------
onboard real .0.186 (DHCP) TIMEOUT OK
onboard real .0.158 static TIMEOUT not tested
onboard random .0.171 (DHCP) TIMEOUT not tested
USB its own .0.158 (DHCP) OK not tested
ARP and ICMP (including 1208-byte pings) to the printer: OK on the
onboard adapter.
Rejected causes: toner or CUPS state, queue contents, desktop firewall,
printer ACL/firewall, a stuck port 9100 session, a specific IP, a
specific MAC, WiFi power save, signal strength, frame size.
======================================================================
8. STATE OF THE INVESTIGATION ======================================================================
Established: the fault is specific to the onboard adapter (mt7925e)
talking TCP to this printer through this access point. It is
reproducible across reboots and silent in dmesg.
Not established: whether the cause is the adapter's TX path, the
mt7925e driver/firmware, or how the access point relays between two
wireless clients. A history note: an earlier, different problem with
this onboard chip also went away when switching to a USB adapter, and
the driver was suspected then too.
Open test (not yet run): connect the laptop to the same WiFi, run
"nc -l 9999" on it, then run "nc -zv -w 5 <laptop-ip> 9999" from the
desktop's onboard adapter. If that also times out, the onboard adapter
fails TCP to wireless clients in general; if it succeeds, the printer
or its WiFi stack is the odd one out.
Workaround in use: print with the USB adapter (and keep the onboard
one disconnected while printing).
======================================================================
9. CLEANUP DONE ======================================================================
- IP settings of the NetworkManager profile restored to DHCP.
- Random MAC setting removed from the profile (field now empty).
- iw dev wlp11s0 set power_save on (original state)
- No changes were made to the firewall, cupsd.conf or printers.conf.
Note: NetworkManager has three profiles named "LinuxRulez2"; refer to
them by UUID.
======================================================================
10. LESSONS ======================================================================
- "Printer unreachable" plus a toner warning does not mean toner is
the cause. Test raw TCP (nc -zv host 9100) before touching CUPS.
- If ping works but TCP gets no SYN-ACK and no RST, capture with
tcpdump on the interface to see which direction is lost.
- Change one variable at a time (IP, MAC, adapter) and keep a log.
Suggestions from anyone running an MT7925/MT7927 on a recent kernel,
or with similar ping-works-TCP-fails behaviour towards one particular
device, are welcome.
--- Synchronet 3.21e-Linux NewsLink 1.2