OpenWrt Forum Archive

Topic: wireless config - hwmode useless?

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

Hello there!

I need to restrict one wifi device used as a client to 5GHz mode only. This is my config:

#########################################

config wifi-device  radio1
        option type     mac80211
        option channel  44
        option hwmode   11na
        option path     'platform/ehci-platform/usb1/1-1/1-1:1.0'
        list ht_capab   GF
        list ht_capab   SHORT-GI-20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC12
        option htmode   HT40+

config wifi-iface
        option device   radio1
        option network  wan
        option mode     sta
        option ssid     'uplink'
        option encryption psk2+aes
        option key 'xxxxxxxxxxxxxxxxxxxxxx'

#########################################


Even though I've specified hwmode as 11na, the device scans and sees also 2.4GHz networks.
Since the AP on the other side is configured with the same SSID and password on both bands
my client establishes a connection on 2.4GHz when the 5GHz link fails.

So, am I doing something wrong or is the hwmode setting simply useless?

What is the proper way to limit my device (RT5572 dual band USB 802.11abgn) to 5GHz only?

Platform is a TP-Link wr703n with current trunk
Linux OpenWrt 3.10.36 #1 Fri Apr 18 08:25:14 UTC 2014 mips GNU/Linux

TP-Link wr703n not a dual band router, so it cannot operated on 5Ghz band.

I guess he's using a wifi usb dongle..

The discussion might have continued from here.