AR150 with usb wifi

I am trying to get my alfa awus036h working as wlan1 on my AR150. It shows up when i lsusb but not in ifconfig. Also the power light on the alfa is off. So Im kinda thinking its something with the power. I was reading over this gpio stuff today but not really grasping what needs to be done.

Does the AR150 provide power over the usb port?

do i have to play with the gpio switch?

is there a better/confirmed external usb wifi adapter that works out of the box with the AR150?

I can not comment on the specific device. You do not say what driver you loaded or that you did.

Regarding the power light, there has been some discussion with USB devices, mostly HDs, needing a robust power supply. Try getting a 2.1A or higher supply and see if that helps.

This Google search indicates problems getting this device working.

https://www.google.com/search?q=Alfa+AWUS036H+openwrt&ie=utf-8&oe=utf-8

The below driver is installed for the device. Can you explain the 3 gpio options better to me please? for power over usb what should it be set to?
Bus 001 Device 004: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter

It is recognized, you can reboot your router and the device should appear in /etc/config/wireless

It is disabled by default, you should set it up manually by changing ssid, key, etc.

The LEDs from left to right: power, reserved, wifi, you can configure the middle one to indicate your 2nd radio in luci.

i can get as far as etc/config then i get the error below when trying to cd into wireless

-ash: cd: can’t cd to wireless

also in my ifconfig, all i see are the built in wlans (wlan0 and wlan0-1). I would have thought the external should be wlan1

How do i enable and configure the device (if it is disabled)?

 

Wireless is a file, not a folder. You want to post the contents of this file.

ya sorry i should have posted an update. i did figure that much out

here is what my wireless file looks like:

config wifi-device ‘radio0’

option type ‘mac80211’

option channel ‘11’

option hwmode ‘11g’

option path ‘platform/ar933x_wmac’

option htmode ‘HT20’

 

config wifi-iface

option device ‘radio0’

option network ‘lan’

option mode ‘ap’

option encryption ‘none’

option ssid ‘AR150_open’

option hidden ‘1’

 

config wifi-iface

option device ‘radio0’

option network ‘lan’

option mode ‘ap’

option encryption ‘psk2+ccmp’

option ssid ‘AR150’

option key ‘password’

 

You are missing two sections for your Alfa USB device in this file. There should be sections that are similar to the following, assuming you want to use the USB device as WWAN (and you probably do, that way you always have a WLAN available on the internal device). I replaced most of my values with the variable [value]. You may need to change others too. The option type and path you need to know. Most of the rest can be backed into knowing the STAtion you want to connect to on the WWAN side.

config wifi-device ‘radio1’
option type ‘[value]’
option channel ‘[value]’
option hwmode ‘11g’
option path ‘[value]’
option htmode ‘HT20’
option txpower ‘20’
option country ‘[value]’

config wifi-iface
option network ‘wwan’
option ssid ‘[value]’
option encryption ‘psk2’
option device ‘radio1’
option mode ‘sta’
option bssid ‘[value]’
option key ‘[value]’

These sections should be created for you I assume when you install the driver. To be clear, exactly what packages did you install?

Did you try another power supply?

Not clear why you have 2 APs on the WLAN side. You do not have a STAtion (WWAN) configured.

 

I have some power splitter cables for it, as i originally bought it for a phone that supported it but not power. however i end up with a microusb port and of course the ar150 only has normal size usb (for input). as a last resort I will get a converter piece for it. However im not sure if power is the issue or if its configuration. So im trying to answer that first.

I of course know the ssid of the network im connecting to and the key but as for the rest of the ones above marked as ‘[value]’ I wouldnt know what to populate them with?

I guess its confession time, Im not using stock firmware. I have pineapple 1.0.6 nano loaded. There is something called WiFi Client Mode in there which Im trying to use. Which makes it an AP and a client to my home wifi

Really all Im trying to do is get internet on the ar150

  • If i plug it into my router via the ar150's wan port, it keeps the 172.16.42.1 address and cant connect to the internet (tried editing the network file to make it dhcp but that didnt work)
  • so now im trying an external wifi adapter in hopes of getting Wifi Client Mode to work. Currently in the pineapple ui, the interface list for this mode is empty. Im thinking this is because their isnt an available adapter for it to use, and if i could get this device installed maybe there would be.
 

For people to help you you really need to disclose up front these things, and answer all the questions.

Can not help w/ Pineapple.

What packages did you load.

Not clear I understand your cable comments. The micro cable is the power input. The USB is for data or wifi adapter. Plug the micro adapter into your phones wall supply and router. That should be at least 1A. See if the alpha lights up.

Suffice it to say that for now i do not have any cable configurations that would allow for a power input.

 

Here is a list of installed packages. take in mind with no internet i cannot update or add any others. I have also been trying to get my usb drive working in order to transfer files but that is not working either. was thinking of going back to stock but need to find a way to either access the internet and download the file or transfer via usb

Error on mounting usb (sorry i know this is a bit off topic, just explaining all the steps i took):

block: mounting /dev/mtdblock4 (squashfs) as /mnt/mtdblock4 failed (-1) - Unknown error -1

block: /dev/mtdblock5 is already mounted

 

opkg list output:

aircrack-ng - 1.2-rc2

at - 3.1.13-2

ath9k-htc-firmware - 2016-01-25-52442afee9907bc32a058f22bb3295d040677c26-1

autossh - 1.4b-6

base-files - 157.2-r48884

bash - 4.3.39-1

block-mount - 2016-01-10-96415afecef35766332067f4205ef3b2c7561d21

busybox - 1.23.2-1

chat - 2.4.7-6

dnsmasq - 2.73-1

dsniff - 2.4b1-2

e2fsprogs - 1.42.12-1

empty - 0.6.18b-1

ethtool - 3.18-1

ettercap - 0.8.2-1

firewall - 2015-07-27

fstools - 2016-01-10-96415afecef35766332067f4205ef3b2c7561d21

hostapd-common - 2015-03-25-1

hostapd-utils - 2015-03-25-1

iptables - 1.4.21-1

iptables-mod-ipopt - 1.4.21-1

iptables-mod-nat-extra - 1.4.21-1

iw - 4.3-1

iwinfo - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371

jshn - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb

jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9

kernel - 3.18.23-1-f80f1e72ec1214259d6b271a5bd3d713

kmod-ath - 3.18.23+2016-01-10-1

kmod-ath9k - 3.18.23+2016-01-10-1

kmod-ath9k-common - 3.18.23+2016-01-10-1

kmod-ath9k-htc - 3.18.23+2016-01-10-1

kmod-cfg80211 - 3.18.23+2016-01-10-1

kmod-crypto-aead - 3.18.23-1

kmod-crypto-aes - 3.18.23-1

kmod-crypto-arc4 - 3.18.23-1

kmod-crypto-core - 3.18.23-1

kmod-crypto-hash - 3.18.23-1

kmod-crypto-manager - 3.18.23-1

kmod-crypto-pcompress - 3.18.23-1

kmod-dnsresolver - 3.18.23-1

kmod-eeprom-93cx6 - 3.18.23-1

kmod-fs-ext4 - 3.18.23-1

kmod-fs-nfs - 3.18.23-1

kmod-fs-nfs-common - 3.18.23-1

kmod-fs-vfat - 3.18.23-1

kmod-gpio-button-hotplug - 3.18.23-1

kmod-ipt-conntrack - 3.18.23-1

kmod-ipt-core - 3.18.23-1

kmod-ipt-ipopt - 3.18.23-1

kmod-ipt-nat - 3.18.23-1

kmod-ipt-nat-extra - 3.18.23-1

kmod-leds-gpio - 3.18.23-1

kmod-ledtrig-default-on - 3.18.23-1

kmod-ledtrig-netdev - 3.18.23-1

kmod-ledtrig-timer - 3.18.23-1

kmod-lib-crc-ccitt - 3.18.23-1

kmod-lib-crc-itu-t - 3.18.23-1

kmod-lib-crc16 - 3.18.23-1

kmod-libphy - 3.18.23-1

kmod-mac80211 - 3.18.23+2016-01-10-1

kmod-mii - 3.18.23-1

kmod-nf-conntrack - 3.18.23-1

kmod-nf-ipt - 3.18.23-1

kmod-nf-nat - 3.18.23-1

kmod-nf-nathelper - 3.18.23-1

kmod-nls-base - 3.18.23-1

kmod-nls-cp437 - 3.18.23-1

kmod-nls-iso8859-1 - 3.18.23-1

kmod-nls-utf8 - 3.18.23-1

kmod-ppp - 3.18.23-1

kmod-pppoe - 3.18.23-1

kmod-pppox - 3.18.23-1

kmod-rt2800-lib - 3.18.23+2016-01-10-1

kmod-rt2800-usb - 3.18.23+2016-01-10-1

kmod-rt2x00-lib - 3.18.23+2016-01-10-1

kmod-rt2x00-usb - 3.18.23+2016-01-10-1

kmod-rtl8187 - 3.18.23+2016-01-10-1

kmod-rtl8192c-common - 3.18.23+2016-01-10-1

kmod-rtl8192cu - 3.18.23+2016-01-10-1

kmod-rtlwifi - 3.18.23+2016-01-10-1

kmod-rtlwifi-usb - 3.18.23+2016-01-10-1

kmod-scsi-core - 3.18.23-1

kmod-scsi-generic - 3.18.23-1

kmod-slhc - 3.18.23-1

kmod-tun - 3.18.23-1

d-nf-nat - 3.18.23-1

kmod-nf-nathelper - 3.18.23-1

kmod-nls-base - 3.18.23-1

kmod-nls-cp437 - 3.18.23-1

kmod-nls-iso8859-1 - 3.18.23-1

kmod-nls-utf8 - 3.18.23-1

kmod-ppp - 3.18.23-1

kmod-pppoe - 3.18.23-1

kmod-pppox - 3.18.23-1

kmod-rt2800-lib - 3.18.23+2016-01-10-1

kmod-rt2800-usb - 3.18.23+2016-01-10-1

kmod-rt2x00-lib - 3.18.23+2016-01-10-1

kmod-rt2x00-usb - 3.18.23+2016-01-10-1

kmod-rtl8187 - 3.18.23+2016-01-10-1

kmod-rtl8192c-common - 3.18.23+2016-01-10-1

kmod-rtl8192cu - 3.18.23+2016-01-10-1

kmod-rtlwifi - 3.18.23+2016-01-10-1

kmod-rtlwifi-usb - 3.18.23+2016-01-10-1

kmod-scsi-core - 3.18.23-1

kmod-scsi-generic - 3.18.23-1

kmod-slhc - 3.18.23-1

kmod-tun - 3.18.23-1

kmod-usb-acm - 3.18.23-1

kmod-usb-core - 3.18.23-1

kmod-usb-net - 3.18.23-1

kmod-usb-net-asix - 3.18.23-1

kmod-usb-net-cdc-ether - 3.18.23-1

kmod-usb-net-qmi-wwan - 3.18.23-1

kmod-usb-net-rndis - 3.18.23-1

kmod-usb-net-sierrawireless - 3.18.23-1

kmod-usb-ohci - 3.18.23-1

kmod-usb-serial - 3.18.23-1

kmod-usb-serial-option - 3.18.23-1

kmod-usb-serial-pl2303 - 3.18.23-1

kmod-usb-serial-wwan - 3.18.23-1

kmod-usb-storage - 3.18.23-1

kmod-usb-storage-extras - 3.18.23-1

kmod-usb-uhci - 3.18.23-1

kmod-usb-wdm - 3.18.23-1

kmod-usb2 - 3.18.23-1

libblkid - 2.25.2-4

libblobmsg-json - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb

libbz2 - 1.0.6-2

libc - 0.9.33.2-1

libcurl - 7.40.0-3.1

libdb47 - 4.7.25.4.NC-4.1

libelf1 - 0.161-1

libext2fs - 1.42.12-1

libffi - 3.0.13-1

libgcc - 4.8-linaro-1

libgdbm - 1.11-1

libgmp - 6.0.0-1

libiconv-full - 1.11.1-1

libintl-full - 0.19.6-2

libip4tc - 1.4.21-1

libip6tc - 1.4.21-1

libiwinfo - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371

libjson-c - 0.12-1

libjson-script - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb

libltdl - 2.4-1

libncurses - 5.9-2

libnet0 - 1.0.2a-9

libnet1 - 1.1.6-1

libnids - 1.24-1

libnl-tiny - 0.1-4

libopenssl - 1.0.2g-1

libpcap - 1.5.3-1

libpcre - 8.38-1

libpolarssl - 1.3.14-1

libpthread - 0.9.33.2-1

librpc - 2015-04-10-308e9964bfb623773dc0dcc99ef9d18d1551d6ae

librt - 0.9.33.2-1

librtlsdr - 2014-02-10

libsqlite3 - 3081101-1

libstdcpp - 4.8-linaro-1

libubox - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb

libubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e

libuci - 2015-08-27.1-1

libusb-1.0 - 1.0.19-1

libuuid - 2.25.2-4

libxml2 - 2.9.2-3

libxtables - 1.4.21-1

log_daemon - 1

macchanger - 1.7.0-1

mtd - 21

nano - 2.4.1-1

ncat - 6.47-2

netcat - 0.7.1-1

netifd - 2015-12-16-245527193e90906451be35c2b8e972b8712ea6ab

nginx - 1.4.7-2

nginx-naxsi - 1.4.7-2

nginx-syslog - 1.4.7-2

ngrep - 1.45-3

openssh-client - 6.8p1-1

openssh-keygen - 6.8p1-1

openssh-server - 6.8p1-1

openssh-sftp-server - 6.8p1-1

openssl-util - 1.0.2g-1

opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-9

php5 - 5.6.17-1

php5-cgi - 5.6.17-1

php5-fpm - 5.6.17-1

php5-mod-hash - 5.6.17-1

php5-mod-json - 5.6.17-1

php5-mod-mbstring - 5.6.17-1

php5-mod-openssl - 5.6.17-1

php5-mod-session - 5.6.17-1

php5-mod-sqlite3 - 5.6.17-1

pineap - 1

pineapple - 1

pinejector - 1

pinesniffer - 1

ppp - 2.4.7-6

ppp-mod-pppoe - 2.4.7-6

procd - 2015-10-29.1-d5fddd91b966424bb63e943e789704d52382cc18

python-base - 2.7.9-6

python-codecs - 2.7.9-6

python-light - 2.7.9-6

python-openssl - 2.7.9-6

python-sqlite3 - 2.7.9-6

rt2800-usb-firmware - 2016-01-25-52442afee9907bc32a058f22bb3295d040677c26-1

rtl-sdr - 2014-02-10

rtl8192cu-firmware - 2016-01-25-52442afee9907bc32a058f22bb3295d040677c26-1

sdparm - 1.04-1

ssmtp - 2.64-1.1

swap-utils - 2.25.2-4

tcpdump - 4.5.1-4

terminfo - 5.9-2

uboot-envtools - 2014.10-2

ubox - 2015-11-22-c086167a0154745c677f8730a336ea9cf7d71031

ubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e

ubusd - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e

uci - 2015-08-27.1-1

usb-modeswitch - 2014-08-26-993a9a542791953c4804f7ddbb3a07756738e37a

usbreset - 4

usbutils - 007-1

usign - 2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131

wget - 1.17.1-1

wireless-tools - 29-5

wpad - 2015-03-25-1

zlib - 1.2.8-1

zoneinfo-core - 2015d-1

 

1 Like

FYI the above is default for this build (which is where i downloaded and installed it)

also, just yesterday they added a new bin with “fixes”"

so im gonna try this, as soon as i can figure a way to get the ar150 to read a bin on the usb drive (or connect to internet)

I meant what packages did you load for the alfa.

I got the impression you can connect by wireless. Can you not flash a bin that way?

I would go back to stock. Figure out how to get the alfa running (packages and config). Backup your config files to a local resource so you can reference the individual elements with Pineapple later.

ok, I flashed GL.iNet download center

which i realize now isnt stock but hopefully close enough?

I figure the first step is to add the 2 entries into the wireless config file(that you posted above)?

config wifi-device ‘radio1’

option type ‘[value]’ — how do i find this value?

option channel ‘[value]’ — is this just any channel value 1-11?

option hwmode ’11g’

option path ‘[value]’ — how do i find this value?

option htmode ‘HT20′

option txpower ’20’

option country ‘[value]’ — just plain text? “USA” for example?

 

config wifi-iface

option network ‘wwan’

option ssid ‘[value]’ — SSID of the network i want to connect to right?

option encryption ‘psk2’

option device ‘radio1’

option mode ‘sta’

option bssid ‘[value]’ — same as SSID usually right?

option key ‘[value]’ — is this plain text, password for the network im connecting to?

 

1 Like

Actually your first step is make sure the device works as a basic router. Connect the WAN port via Ethernet to a LAN port on your home router or the cable modem. Connect to the WLAN (probably openwrt or goodlife) with a device. Make sure the internet works.

Next you need to load the driver (OPKG) for your device. Based on this it’s probably kmod<span style=“color: blue;”>-rtl8187</span><b></b>

https://wikidevi.com/wiki/ALFA_Network_AWUS036H

Then see what your wireless file looks like and post it back here. It should be similar to the above, though may not have the wifi-iface section. It should have the wifi-device ‘radio1’ section.

 

1 Like

installing the kow rtl8187 package did get the extra radio to show up and work

thank you very much

Super! Your Welcome