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

iw warning and error #60

Closed dca00 closed 10 months ago

dca00 commented 10 months ago

Hi Gary, I've been using lnxrouter on an older Linux, since you've helped me with installing hostapd. Now, I put it on a brand new Linux, and when I start it with the same command --ap wlan0 Name -p password it throws the following warning and error:

WARN:  Can't use 'iw' to operate interface 'wlan0'. trying 'iwconfig' (not as good as 'iw')...
ERR: Can't use 'iwconfig' to operate interface 'wlan0'.

Old: Fedora 26 New: Fedora 36

Is this newer Linux missing a package or is it a misconfiguration?

garywill commented 10 months ago

Have you installed iw or wireless-tools? Do you have iw or iwconfig command in bash?

Are they on same hardware? Unsupported wlan adapter could cause that

dca00 commented 10 months ago

iw is present, as a package and command iwconfig is not present wireless-tools is not an available package in F36, whereas it was in F26. Is it the culprit?

NetworkManager has no problem enabling the hotspot with the wifi card that is there, so I assume that it is supported.

garywill commented 10 months ago
iw dev wlan0 info

what's the output?

dca00 commented 10 months ago

Great tip! I forgot to turn "predictable device naming" off. Thanks again!