OpenWrt Forum Archive

Topic: openwrt on X86 wifi detected but not working

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

hello , I recently installed openwrt on my laptop , everything works fine but I was unable to setup the access point

I did "wifi detect" here is the output :

root@OpenWrt:~# wifi detect
config wifi-device  radio0
    option type     mac80211
    option channel  11
    option hwmode    11g
    option path    'pci0000:00/0000:00:1c.0/0000:03:00.0'
    option htmode    HT20
    # REMOVE THIS LINE TO ENABLE WIFI:
    option disabled 1

config wifi-iface
    option device   radio0
    option network  lan
    option mode     ap
    option ssid     OpenWrt
    option encryption none

i copy it on the file /etc/config/wireless
i could scan and see networks  but couldn't setup the access point . my pcie wifi card is Atheros AR9285
also i ll be glad if someone tells me the best pcie wifi card the works right away with openwrt .i mean fully comptible

thanks

You have to set disabled to 0 or remove the line entirely.

Ath9k cards such as yours should have good compatibility.  Running iw list should produce a list of your card and driver's capabilities.

thanks for your quick reply . I did it already i removed the line of course , still  the same issue
here is the kernel log :
9.311419] ath: phy0: Enable LNA combining
[    9.314344] ath: phy0: ASPM enabled: 0x42
[    9.314710] ath: EEPROM regdomain: 0x65
[    9.314711] ath: EEPROM indicates we should expect a direct regpair map
[    9.314713] ath: Country alpha2 being used: 00
[    9.314714] ath: Regpair used: 0x65
[    9.326319] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.326622] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf9040000, irq=16

That bootup looks normal.  Do you have an AP device created?

root@OpenWrt:~#iw dev
phy#0
    Interface wlan0
        ifindex 16
        wdev 0x4
        addr 1e:d6:c7:XX:XX:XX
        ssid Box Office
        type AP
        channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
        txpower 18.00 dBm

You should also see the AP device being activated in br-lan:

[   29.584764] br-lan: port 2(wlan0) entered forwarding state

(Last edited by mk24 on 2 Sep 2017, 22:25)

No i dont have AP device created ,  i did 'iw dev' nothing happened .

how can  I create it  and do i have to put it in /etc/config/wireless or

in a separate file , thanks

thank you so much , after reading about the wireless card and the modes . I just realised  that i have to turn it on

all i did is: " ifconfig wlan0 up " the access point start working .

The discussion might have continued from here.