kaloz / mwlwifi

mac80211 driver for the Marvell 88W8864 802.11ac chip
394 stars 119 forks source link

Wireless printer using bonjour stops working on WRT3200ACM #246

Closed ad019 closed 6 years ago

ad019 commented 6 years ago

243 Opening this new ticket to track the problem.

yuhhaurlin commented 6 years ago

Thanks.

daloki83 commented 6 years ago

From my side also affected devices: AVM Repeater 300E Instar IN-6014HD (Webcam) iPhone 5s (just from saying)

Tested on firmware to 9.3.2.2 // 9.3.2.1 // 9.3.0.8 with driver 10.3.4.0-20171214

The log looks like this when it happens: Dec 20 17:32:07 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:32:07 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b Dec 20 17:32:12 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:32:12 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b Dec 20 17:32:17 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:32:17 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b Dec 20 17:32:22 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:32:22 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b Dec 20 17:32:27 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:32:27 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b Dec 20 17:32:32 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:32:32 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b Dec 20 17:33:37 LEDE123 dnsmasq-dhcp[2051]: DHCPDISCOVER(br-lan) b8:27:eb:2e:71:5b Dec 20 17:33:37 LEDE123 dnsmasq-dhcp[2051]: DHCPOFFER(br-lan) 192.169.178.19 b8:27:eb:2e:71:5b

daloki83 commented 6 years ago

Next device: VU+ Wireless USB Adapter https://www.amazon.de/VU-Wireless-Adapter-incl-Setup/dp/B00AFX847S Nothing in the log files...Ping to the device (from router) is possible. DHCP Lease time renews as expected. But not possible to access the device. After reboot (the USB device) everything works fine.

Edit: Also had a strange thing. Accessing Webcam (wifi) from iPhone (wifi) didn't work. Accessing Webcam (Wifi) from PC (cable) it works. Accessing with LTE from outside works. It feels like wifi client isolate mode is set on. After a few minutes (without changing) it works again from wifi. Again nothing in the logs.

yuhhaurlin commented 6 years ago

Your case is very strange. After the issue for new firmware is fixed, you can try to run it. There is no need for you to put more devices here.

daloki83 commented 6 years ago

Okay, i'll wait. Just one note: I was trying to provoke the failure and it seems to be that it occurs much faster/more often when you set the DHCP Lease Time to "2m". Maybe this will help.

yuhhaurlin commented 6 years ago

@daloki83 Please check issue #243 to get LEDE image or modify driver to dump DHCP packets on mwlwifi to help debug. Thanks.

yuhhaurlin commented 6 years ago

@daloki83 Please put your test result and discussion to issue #243.

daloki83 commented 6 years ago

OK, if you tell me how to modify the driver ?

Btw. setting DHCP Lease to 24h + cron reboot every 24h everything is fine. (Just as a workaround for the moment)

yuhhaurlin commented 6 years ago

Check issue #243.

jbsky commented 6 years ago

Hi,

With 8864, I also have the problem.

The protocol exchanges many packets, but the iphone still doesn't display anything, "no printer found".

daloki83 commented 6 years ago

@yuhhaurlin could you share the patched .ipk file ? I never implemented patches and my tries to compile yours doesn't look like it has worked. Still at the same driver (without the "-debug" tag). Where can i find the dump ?

yuhhaurlin commented 6 years ago

@daloki83 You need to modify "#define PCIE_DRV_VERSION "10.3.4.0-20171214"" of dev.h to change driver version. It will dump to console or you can get it via logread. If you still have problem, you can load the LEDE image I posted.

eduperez commented 6 years ago

@daloki83 You can download updated .ipk files for recent LEDE releases from here: https://github.com/eduperez/mwlwifi_LEDE/releases

ad019 commented 6 years ago

@yuhhaurlin I have captured traffic from the printer. Sending it across to you on you marvell email address.

ad019 commented 6 years ago

@yuhhaurlin HP have released a new driver and firmware. It looks to have solved the issue. I did not have printer not found problem for 2-3 hours that I tested. The change log shows following:

Fix and enhancements: Improvements for WIFI robustness and reliability Firmware release fixes Industry-wide Wi-Fi WPA2 Standard Vulnerabilities and Execution of arbitrary code or Denial of Service (CVE 2017-9765) Addresses an intermittent connectivity issue when using Secure AirPrint Miscellaneous bug fixes

Thank you for your time and effort on this.

yuhhaurlin commented 6 years ago

Thanks.