OpenWrt Forum Archive

Topic: How do I select wireless-g only?

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am a first time OpenWRT user (and this is my first post). So far, I really like it. I'm using it without any GUI and that suits the Linux geek in me just fine.

I was running a different 3rd-party firmware (DD-WRT v23 SP3 beta) on my Buffalo WHR-HP-G54 and running it as a "wireless access point", to just bridge the wireless onto my LAN. I wanted to switch to OpenWRT. This is what I did:

***I spent an afternoon reading the OpenWRT documentation.***
THEN:

The unit had an IP of 192.168.1.3, so I:

Configured my PC NIC with an IP of 192.168.1.15.
Connected a cable between a lan port on the Buffalo and my PC NIC.
Did a tftp install of the latest version of WhiteRussian.
Telnet'd into the unit and ran: mtd -r erase nvram

After it rebooted, the Buffalo came up on Buffalo's default IP of 192.168.11.1, so I:

Configured my PC NIC with an IP of 192.168.11.2.
I telnet'd in again and ran the following:

passwd
cd /etc/init.d
rm S35firewall S50httpd S50telnet S60cron S60dnsmasq
nvram set lan_ipaddr=192.168.1.3
nvram set lan_gateway=192.168.1.1
nvram set lan_dns=192.168.1.1
nvram set wan_proto=none
nvram set vlan0ports="0 1 2 3 4 5*"
nvram set vlan1ports=5
nvram set wl0_closed=0
nvram set wl0_channel=1
nvram set wl0_macmode=allow
nvram set wl0_maclist="<space separated list of allowed MAC addresses>"
nvram set wl0_akm=psk2
nvram set wl0_crypto=aes
nvram set wl0_wpa_psk="<my passphrase>"
nvram set wl0_auth=0
nvram commit
reboot

While it rebooted, I connected it, via it's WAN port (really a LAN port now) to my LAN, and reconfigured my PC for DHCP and put it back on my network. When the Buffalo was back up, I:

Ssh'd in to the unit and ran:

ipkg update
ipkg install nas
ipkg install ntpclient
ipkg install openntpd

Lastly, I used vi to create an /etc/TZ file, with contents of: EST5EDT,M3.2.0,M11.1.0
and I rebooted one last time.

Now I have a very nicely working, slim AP.

However, when I used KisMAC to view my network, I noticed something odd. My main router and my other three APs - which are still running DD-WRT (they'll get switched later) - show up as using WPA, as I would expect. My OpenWRT AP seems to show up as using both WEP & WPA, as it keeps changing back and forth between the two, in KisMAC.

This leads me to believe that I might be running in mixed mode, rather than in G-only mode (which is what I want).

I have two questions:

How do I set it to G-only mode?
Where can I find advanced documentation on all the wl0_* (and related) nvram variables? The documentation I looked at seemed to only cover the most basic needed to get the wireless up and running. Perhaps there's a section I missed? Feel free to point me at it.

ste wrote:

... This leads me to believe that I might be running in mixed mode, rather than in G-only mode (which is what I want).

I have two questions:

How do I set it to G-only mode?
Where can I find advanced documentation on all the wl0_* (and related) nvram variables? The documentation I looked at seemed to only cover the most basic needed to get the wireless up and running. Perhaps there's a section I missed? Feel free to point me at it.

And, as it turns out, there was a section I missed. wl0_gmode is what I need. In my case, it needs to be set to 2.

The discussion might have continued from here.