-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got to linux-router is working but hostapd failed... #1
Comments
Hi @zorq, Can you show me the entire log before this? What error did hostapd give? |
sudo ./lnxrouter --ap wlp4s0 xxx -p yyy --mac 6a:d7:9a:1a:9a:f4 --ieee80211ac --freq-band 5 --no-dnsmasq -n WARN: Since you're using in this mode, make sure you've read Notice 1 linux-router 0.6.3 (https://github.com/garywill/linux-router) ERROR: Your adapter can not transmit to channel 36, frequency band 5GHz. Doing cleanup.. |
sudo ./lnxrouter --ap wlp4s0 xxx -p yyy --mac 6a:d7:9a:1a:9a:f4 --ieee80211ac --freq-band 5 --no-dnsmasq -n -c 161 WARN: Since you're using in this mode, make sure you've read Notice 1 linux-router 0.6.3 (https://github.com/garywill/linux-router) haveged_watchdog PID: 8208 Starting hostapd iptables v1.8.7 (nf_tables) iptables: allow DNS == Setting up completed, now linux-router is working == ERROR: hostapd failed Error occured Doing cleanup.. |
Can you please try running lnxrouter with the |
udo ./lnxrouter --ap wlp4s0 xxx -p yyy --mac 6a:d7:9a:1a:9a:f4 --ieee80211ac --freq-band 5 --no-dnsmasq -n --no-virt WARN: Since you're using in this mode, make sure you've read Notice 1 linux-router 0.6.3 (https://github.com/garywill/linux-router) ERROR: Your adapter can not transmit to channel 36, frequency band 5GHz. Doing cleanup.. I turned off wifi before attempting and I've tried forgetting the network and leaving wifi enabled, both did not work. Thanks so much for your help! |
Can you show me the output of |
Thank you! It says most of your 5 GHz channels are disabled except a few? Can you try with no virtual and channel 165? Also, what about |
I'm not sure why my 5 GHz channels are disabled, I'm booting from "try ubuntu", I have tried this on 2 different Lenovo laptop models and the results are similar where a lot of the 5g channels are disabled. I tried to boot this off of a Asus mobo desktop but I can't get that wifi card to work either... I thought Telus IP TV must work on 5g hence --freq-band 5 is a requirement?sudo ./lnxrouter --ap wlp4s0 TELUS4979 -p 76mnzyqzv3Jt --mac 6a:d7:9a:1a:9a:f4 --ieee80211ac --freq-band 5 --no-dnsmasq -n -c 165 --no-virt WARN: Since you're using in this mode, make sure you've read Notice 1 linux-router 0.6.3 (https://github.com/garywill/linux-router) haveged_watchdog PID: 9747 Starting hostapd iptables v1.8.7 (nf_tables) iptables: allow DNS == Setting up completed, now linux-router is working == ERROR: hostapd failed Error occured Doing cleanup.. |
Very odd, I booted Ubuntu off my MacBook laptop and it worked fine for 5G. Maybe the card doesn't have the right regulatory country set on it. Can you show me the output of Can you also run |
Hmm, no change. It still doesn't work when you try with channel 153 for example? Can you also try with Also, do you have any USB WiFi adapters lying around that you could use instead of the built-in WiFi? Btw, what WiFi card do you have? |
I tried 2.4 but the tv box doesn't detect the signal. It's a integrated wifi card on lenovo laptops. I have tried this on two lenovo laptops of different model and the results are same, i believe they are running intel wifi. I don't have any USB wifi adapters lying around. The only other option I have is the desktop but I can't get the wifi to work on that. It's a Asus ROG Strix x570-e gaming mobo. |
Let me run it on my other laptop tonight that I believe has Intel WiFi and I'll get back to you. |
After doing some research, it seems Intel WiFi adapters do not support 5 GHz AP mode. It's disabled by Intel in the hardware/driver (see here or here. All 3 of your devices seem to be using Intel cards. So that means you will need to find another device that has another WiFi card, or you will need to buy a USB WiFi adapter that supports 5GHz AP mode ($15-$25 on Amazon). Do you have any other device you could try? |
Let me try one from amazon: I'll report back after. Thank you for your help! |
I will also buy a couple adapters and test out which ones work and report back. It's not so straightforward because driver support is all over the place with different features for different chipsets and it's difficult to figure out which would work. Looks like I was very lucky that my laptop worked the first time without any issues! |
FYI, the TP-Link Archer T3U you linked uses a Realtek RTL8812BU chipset, and I found this driver for it that claims to support 5GHz AP mode. So we definitely should be able to get it to work with that driver if not the native one, hopefully. I'll get mine on Saturday and will test it then. |
Thanks for the help! I ended up buying this as it claims to work with Linux out of box BrosTrend 650Mbps Long Range Linux WiFi Adapter for Desktop, Laptop of Ubuntu, Mint, Kali, Debian, Raspbian, Lubuntu, Xubuntu, Zorin, Raspberry Pi, Windows 10/8.1/8/7/XP, 5GHz / 2.4GHz, 5dBi Antenna https://www.amazon.ca/dp/B01GC8XH0S/ref=cm_sw_r_apan_glt_i_WQ8WA6F3PFS1S023SJ62 |
I believe that one uses the Realtek RTL8821CU chipset. There is also a driver for that in case the built-in driver doesn't work. Tell me how that goes! |
So I got my usb adapter, can't seem to get it to function. I tried following the link you provided but it isn't working... I see the device under lsusb, but i don't see the device when checking with ip link. Thanks... |
Some good news! I got my Archer T3U earlier than expected today and was able to get it working easily with the driver I linked. 5G AP mode worked without any extra options needed and the TELUS box was able to connect to it via WPS. So at least we know that works! Your device should hopefully be just as straight forward if it uses that other driver I linked. I actually ordered yours today and will be receiving it tomorrow. I'll tell you how to do it if it's successful. FYI, you need to install and load the driver. Not sure if you did that. Anyways I'll figure out the process tomorrow. Cheers! |
Can you explain the process of installing and loading the driver? I'm not savvy in the Linux world unfortunately lol. Thanks!
Ian
…________________________________
From: peacey ***@***.***>
Sent: Friday, October 1, 2021 10:52:00 PM
To: peacey/udm-telus ***@***.***>
Cc: zorq ***@***.***>; Mention ***@***.***>
Subject: Re: [peacey/udm-telus] Got to linux-router is working but hostapd failed... (#1)
Some good news! I got my Archer T3U earlier than expected today and was able to get it working easily with the driver I linked. 5G AP mode worked without any extra options needed and the TELUS box was able to connect to it via WPS. So at least we know that works!
Your device should hopefully be just as straight forward if it uses that other driver I linked. I actually ordered yours today and will be receiving it tomorrow. I'll tell you how to do it if it's successful.
FYI, you need to install and load the driver. Not sure if you did that. Anyways I'll figure out the process tomorrow.
Cheers!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADUY2EHR4JLWWFDQTZNXWKLUE2MYBANCNFSM5E6V2RFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
So I received the BrosTrend today and was able to get it working quite easily with the driver I linked. 5G AP mode also worked fine. Here are some rough instructions for how to install the driver for it. Install the module first: sudo apt update
sudo apt install git bc dkms
cd ~
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
sudo ./dkms-install.sh
cd ~ The install will take 5 minutes or so. Afterwards, load the module: sudo modprobe 8821cu You should get no errors. Then, unplug and replug the usb wifi adapter. Now the light on the adapter should come on, and if you check under You don't need any extra options like specifying the channel, just use the instructions normally and it should work. See how it goes! |
This issue has just saved me after hours of troubleshooting; by chance I had the exact same wireless adapter lying around but only realized it after I wanted to give up and buy the one you recommended here Peacey, The images on amazon looked awfully similar to the one I had that was not recognized in ubuntu... After installing the driver it totally worked like a charm <3. I think all the resets might have messed up the configuration on the iptv box since all it does is initializing after the steps... but I have yet to try again. |
sudo apt update Creating symlink /var/lib/dkms/rtl8821CU/5.4.1/source -> DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping... Building module:
|
This looks like a Secure Boot issue (the driver has to be signed properly to be loadable if Secure Boot is enabled). Can you please disable Secure Boot in your computer's UEFI/BIOS and try again, or try a different computer that doesn't use Secure Boot? |
sudo modprobe 8211cu |
@zorq, you need to re-run all the commands to install it first then load it again. Linux booted from the USB is not persistent. |
I ran exactly these commands, with secure boot disabled. |
@zorq, you had a typo in your last comment. It says 8211cu in your output but it should be 8821cu. Can you please run the module load again with the correct name? |
@peacey I typed it wrong "8211cu" instead of "8821cu" lol |
its working! let me try the rest of the solution and report back! |
Lol okay great. Tell me how the rest goes! |
First of all, disabling Secure Boot and following above instructions made everything worked, I was able to get the wireless STB to recognize the wifi network. However, my issue extends beyond your solution and I'm hoping you could help me further as my implementation is slightly different than yours. I'm using a UAP-BeaconHD (wireless uplink) to connect to the wireless STB. Signal is full, and stream plays smooth for 30ish seconds and then after it'll start to stutter. If I change the channel, it'll become smooth again and 30 seconds later begin to stutter. Here are the different setup I've tried and the results:
Wiring a AP closer to the wireless STB is not an option. From what I understand there shouldn't be anything I can adjust on the unifi settings other than "Enable multicast enhancement (IGMPv3)" since I'm using the Telus Router. I apologize if this is a bit out of the original intent, but as you can see I obviously tried a billion other things before stumbling on your solution. Ultimately, I had to use wireless APs to boost the signal in the whole house but for whatever reason, the Telus Booster are not very good at that despite that is the exact purpose of its existence. The Beacon HD on the other hand does a wonderful job, plus the fact that it's manageable. I would love to buy you a beer for all your help! Thank you! |
@gilliangoud, glad it worked for you! When you try again properly (and make sure your devices are registered first), tell me if you run into any issues. Feel free to open a new issue if you're having problems. |
@zorq, good you got the AP mode working. So I guess we can mark that as resolved! So the only difference in your implementation is that you are using the TELUS router instead of a UDMP. Is it stuttering as in stops every 2 seconds and continues, or that the stream stops after 30s and then doesn't continue at all until you change the channel? Stuttering every 2 seconds is a symptom of IGMPv3 being disabled, but stopping completely is a symptom of multicast traffic not making it to the STB. I will try the simplest case (Telus router -> Unifi AP -> Wireless STB) and see if it stutters for me as well. This is similar to my setup which is (UDMP router -> Unifi AP -> Wireless STB) which does not stutter. If it stutters for me with the Telus router, I'm not sure we can do anything really. It might just be something with how the TELUS router handles multicast traffic to the AP, or the Unifi AP only having proper IGMPv3 support with Unifi routers (for example, I don't know yet). Anyways, will try it out and see what happens. |
It seems to be stopping completely after 30s. |
Alrighty, I successfully got the tv box connected; could only get the driver for the wifi adapter working on an old mac book running ubuntu weird enough... I'm running the simple configuration (Telus router -> Unifi AP -> Wireless STB). The box started out with cutting out and having stuttering, after a reboot of the tv box everything seems to be running smooth. @zorq these are the settings I'm running for the AP, which is an uap-ac-mesh. Might help, might not... |
@gilliangoud great you got it all working. On your other computers where the WiFi driver didn't work, you might have had Secure Boot enabled on them as explained above (you would need to disable it first from the BIOS). Btw you mentioned you're using the Telus router? So you're not using a UDM for your router? |
Hey @zorq, so I tried it with TELUS router -> Unifi AP -> Wireless STB and it worked without any stuttering or stopping. Also, @gilliangoud says he got the same setup working as well. So this setup should work fine with the TELUS router. I would say to start debugging, can you start with this basic setup (TELUS router -> Unifi AP -> Wireless STB) and try to get it working? You said it didn't initialize, can you try again and make sure you use the correct BSSID of the Unifi AP, network name, and network pass. If it gets stuck at initializing after you restart it, make sure the Unifi Network is fully up first and then restart the box one more time or a couple of times and see if it works. |
Sorry I havn't had a chance to look into this again as I've been busy with my newborn! I currently have it set up as such: TELUS Router -> Unifi Switch -> Unifi AP - nanohd -> Unifi Beacon HD -> Wireless STB. Connection again works for first 15 seconds, and then stutters or stops after. I'm wondering if the issue is caused by the Unifi Switch? It's a PoE switch to power all my equipments at the house. I'll definitely try to skip the Beacon HD and see if it works, but last time I tried the signal might have been too weak so it's not initializing. I'll report back when I get a chance to try this out. Thanks! |
Hey @zorq, Congratulations on your newborn! What a gift this universe has given you! Please continue whenever you have the chance, no rush. FYI, I also had a PoE Unifi switch between the Telus router and my AP when I tried it but forgot to mention it. So my pathway is actually Telus Router -> Switch -> AP -> STB. So I don't think your switch is impacting it. If the stream is completely stopping, it sounds like multicast traffic is not getting to the STB. Can you please check your wireless network settings in the old UI and make sure "Block LAN to WLAN Multicast and Broadcast Data" is disabled? This option is only available in the old UI and can mess things up. Good luck with your new baby! |
Thank you! She is definitely a bundle of joy!
Please take a look at the screenshot for the settings on the SSID for IPTV.
From: peacey ***@***.***>
Sent: Wednesday, October 13, 2021 11:16 AM
To: peacey/udm-telus ***@***.***>
Cc: zorq ***@***.***>; Mention ***@***.***>
Subject: Re: [peacey/udm-telus] Got to linux-router is working but hostapd failed... (#1)
Hey @zorq<https://github.com/zorq>,
Congratulations on your newborn! What a gift this universe has given you! Please continue whenever you have the chance, no rush.
FYI, I also had a PoE Unifi switch between the Telus router and my AP when I tried it but forgot to mention it. So my pathway is actually Telus Router -> Switch -> AP -> STB. So I don't think your switch is impacting it.
If the stream is completely stopping, it sounds like multicast traffic is not getting to the STB. Can you please check your wireless network settings in the old UI and make sure "Block LAN to WLAN Multicast and Broadcast Data" is disabled? This option is only available in the old UI and can mess things up.
Good luck with your new baby!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADUY2EF5YWT7MJSRRMCP7G3UGXEF7ANCNFSM5E6V2RFA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sorry @zorq, I cannot see the screenshot (I don't think you can send email screenshots via github). You'll have to upload it online and post the link. |
Settings look good. Please try without the BeaconHD and let's see what happens. |
== Setting up completed, now linux-router is working ==
Error occured
ERROR: hostapd failed
Error occured
Doing cleanup..
Terminated
Killed 9127 lnxrouter
Killed 9155 bash
iptables: unallow DNS
Exiting: This is the only running instance
Cleaning up done
The text was updated successfully, but these errors were encountered: