garywill / linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️ (也欢迎关注B站 https://space.bilibili.com/2123686105 )
GNU Lesser General Public License v2.1
1.67k stars 148 forks source link

How to create 5G AP ? #51

Open CaiJingLong opened 1 year ago

CaiJingLong commented 1 year ago

My network card is 3168NGW. $ lspci 02:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10) I know that it supports 5G.

I use lnxrouter --ap wlp2s0 HelloWIFI -p 12345678 to create AP. But the wifi only support 2.4G.

garywill commented 1 year ago

Hi, there

Sorry for currently our script doesn't have 5G support. I don't have a 5G adapter to do tests.

You can try some other create_ap forks (e.g. https://github.com/lakinduakash/linux-wifi-hotspot) to see if they have added that support.

Actually also I'm expecting someone send a PR to add 5G support to linux-router.

CaiJingLong commented 1 year ago

Thanks for your help, I try to use the linux-wifi-hotspot. I can't even open the AP use linux-wifi-hotspot.

Host anyone to open PR to support 5G.

zqlee-ronghui commented 1 year ago

I have a MT7612U adaptor, and I can get hotspot with sudo lnxrouter -ap wlan0 apppp --ieee80211n --freq-band 5 under Ubuntu 20.04.

The question here is I can't connect to the AP if I don't set a static IP for the client, I guess the reason maybe similar to https://github.com/garywill/linux-router/issues/19

garywill commented 1 year ago

--freq-band 5 is from create_ap. I myself didn't tried it ever. I may work. maybe~


@zqlee-ronghui

The question here is I can't connect to the AP if I don't set a static IP for the client, I guess the reason maybe similar to #19

If it's because of firewalld, do this https://github.com/garywill/linux-router/blob/a414ac035b3bc8edbdac594fc49f5eed185a2f70/lnxrouter#L862

keogami commented 4 months ago

I have just tried --freq-band 5 and it seems to be working fine