Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@odevodyssey
Last active September 30, 2022 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odevodyssey/bd16cd8eb4707ef14c4d59d6fb15a406 to your computer and use it in GitHub Desktop.
Save odevodyssey/bd16cd8eb4707ef14c4d59d6fb15a406 to your computer and use it in GitHub Desktop.
Wireless Config OpenWrt Raspberry Pi
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option country 'US'
option htmode 'VHT40'
option hwmode '11a'
option channel 'auto'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option encryption 'psk2'
option key 'Str0ngWiF1P4sswOrd'
option ssid 'Raspberry Pi'
option mode 'ap'
@zotz
Copy link

zotz commented Mar 9, 2022

I cannot get the ssid from the pi to show up on clients. Has anyone else reported this issue?

@zotz
Copy link

zotz commented Mar 9, 2022

I found this info elsewhere and it seems to get things working:
Mode - legacy
Band - 2.4GHz
Channel - 1 (2412 MHz)

@odevodyssey
Copy link
Author

Hi @zotz,

Thanks for sharing. I did not personally experience this issue, not sure if anyone else has. I used a Raspberry Pi 4 and OpenWrt 21.02 version for this configuration. Not sure if you are using any different hardware that could be limiting your use of using 5Ghz WiFi. On the RPi 4, both 2.4 Ghz and 5 Ghz should work under 802.11ac.

@egzakutacno
Copy link

hi dude. thanks for your efforts to teach us noobs 👍
can i use these settings if i only need wifi connection to pi?

i dont need usb -eth connector as i only want to be able to connect wirelessly.

@odevodyssey
Copy link
Author

Hi @egzakutacno,

Thank you! We're all noobs at some point 😊

Yes, you can use the wireless settings here to if you only need a wifi connection. In particular, the settings here create a WiFi Access Point, that being, it broadcasts a WiFi signal called, Raspberry Pi.

This does not connect to a WiFi network called Raspberry Pi. If you want, you can change the settings so that its actually connecting to a WiFi network as a client.

@egzakutacno
Copy link

egzakutacno commented Sep 27, 2022 via email

@odevodyssey
Copy link
Author

odevodyssey commented Sep 28, 2022

@egzakutacno You're welcome.

It seems like there is some confusion in your understanding, that I hope I can clear up. First, can you confirm to me that you are trying to set up a Raspberry Pi as a travel router as done in NetworkChuck's video?

First, according to your response, you should have your LAN and WAN in different groups (I assume that you mean networks here). Your WAN zone, more specifically, the WAN interface, is the zone / interface that is used to get your Internet connection. You are effectively joining an internet connected network with this zone. The LAN zone / interface, is the local network. This is what you would connect your devices to, that would then use the WAN zone / interface for internet. So in this regard, they serve different purposes and should be different. More specifically, the networks of your WAN zone / interface and LAN zone / interface should be different. (Zones and Interfaces are different, but in the context of this conversation, I am using them in the same reference, but they are not the same)

Now, for using the built in WiFi to run two radios (a WAN and a LAN), is probably not a good idea. Quite honestly, I forget how many active radios the Raspberry Pi's WiFi chip can run, but in the way you are trying to use it, you should only run one active radio at a time. By this, I mean active WiFi network, whether it's acting as an Access Point, or a client. Especially in this scenario, they would be operating in two different modes.

My suggestion is to run the built in WiFi as a client. This should be your WAN interface (or WWAN). The USB WiFi adapter should act as your LAN interface (or WLAN), for your personal devices to connect to.

It honestly seems like you have a bad / low quality USB WiFi adapter, and should probably get a newer one, that supports WiFi 5 at the least. You should be getting faster speeds than 1 mbs with that, assuming you have the right driver too.

@egzakutacno
Copy link

egzakutacno commented Sep 28, 2022 via email

@odevodyssey
Copy link
Author

@egzakutacno You're welcome, I appreciate hearing that.

We all learn in different ways, and often enough through videos, through blogs, and even interacting with random strangers on then internet. You'll learn more as you go along and troubleshoot. It's the best way to learn, in my opinion, and also the most frustrating.

You're indeed correct the world would be a better place that way, but alas, here we are.

I'll check out your OpenWrt forum post to get more details.

@egzakutacno
Copy link

egzakutacno commented Sep 28, 2022 via email

@odevodyssey
Copy link
Author

odevodyssey commented Sep 28, 2022

@egzakutacno You're welcome! maybe one day 😊

@egzakutacno
Copy link

egzakutacno commented Sep 29, 2022 via email

@odevodyssey
Copy link
Author

Hi @egzakutacno, Yes i did review those screenshots. You can see my reply in the OpenWrt thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment