Brewder wrote:davidc502 wrote:Brewder wrote:Hello - I'm new to OpenWRT and am running Davidc502 Lede Reboot SNAPSHOT r4323-1898f73 / LuCI Master (git-17.152.82962-a9e8376) with the 4.4.70 Kernel on my WRT1900ACv1.
I'm curious why when I set my 5Ghz channel to 149 it actually runs on 153? I can confirm by checking connected devices who also report being on channel 153...
For fun, I configured my 5GHz to use channel 161 and everything reported in LuCI and on my devices as 161....
Only seems the 149 channel is odd... am I doing something wrong?
//Brew
Most run 5Ghz in 80Mhz width, and 80Mhz covers roughly 4 channels. So, the channel the devices choose isn't necessarily the same channel chosen in LuCi. However, it will be within the width chosen.
Hi David - thanks for the response and yes I understand. I guess I found it more interesting that my SSID is configured for the channel I want, but the interface is reporting something different on the router itself... and my connected clients match what the interface says. I don't know how to post pictures here, or I could more easily show you what I'm talking about.
//Brew
This happens to me occasionally also. I keep mine set for channel 157, but sometimes on boot, it will boot on channel 161, instead. If you check the system log, you will see it says something to the effect of "Another BSS identified on primary channel, swapping primary channel with secondary channel"
However, since we are using 80MHz, there is no primary channel and secondary channel (or upper and lower channel) as there is with 40MHz. So the message is meaningless (probably shouldn't even be displayed), and regardless and most importantly, if your router is set to channel 149, 153, 157, or 161 (and you are using 80MHz), the router is really set/centered at channel 155. On some newer routers (not sure if in LEDE or not, but definitely in stock firmware), if you select 80MHz, it will only allow you to choose 155.
So in reality, your router is set to channel 155 if you are at 80MHz and set to channel 149, 153, 157, or 161. There are two SSH commands which will show you this. I can't remember the better one at the moment (it actually says channel 155), but if you do:
You'll see the center frequency is 5775MHz (which corresponds to channel 155, you can google it), and it will remain 5775MHz regardless if you select channels 149, 153, 157, and 161. This is because at 80MHz, the router is using all of those channels.
If I can remember the other command which actually says channel 155 in it's output, I'll update my post. Hope that helps clear things up!
Edit: I thought the second method was easier, which most likely means there is a third method also But to actually show you center channel instead of the center frequency you can do:
cat /var/run/hostapd-phy0.conf
There is alot of info in there, but in the second "paragraph," you'll see an entry for vht_oper_centr_freq_seg0_idx= That will display your center channel.
Here is a snippet of my hostapd-phy0.conf file. You can see the channel I have set and the actual center channel because AP is set at 80MHz.
hw_mode=a
beacon_int=100
channel=157
ieee80211n=1
ht_coex=0
ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][DSSS_CCK-40]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=155
(Last edited by starcms on 22 Jun 2017, 08:12)