Jump to content

Recommended Posts

Posted

How is it possible to add the second wireless interface bound to the same physical WiFi adapter?

 

This question is brought up from the following thread :

 

http://forum.armbian.com/index.php/topic/1346-howto-create-software-wireless-access-point/

 

This was already discussed. I and Igor disabled second interface in Makefile before building it, because it is confusing for most users (at least from my point of view). Talking how to rebuild driver with this option enabled is off topic...

 

---

I am running Armbian on OPI+ and BPI.

 

How is it possible to add the second wireless interface bound to the same physical WiFi adapter?

 

The goal is to configure the wlan0 in AP mode with hostapd and wlan1 in managed mode with wpa_supplicant,

 

I need to redistribute the WiFi access on a different router.

Posted

Which BPI? M2+? Yesterday wifi driver was updated for it. If p2p interface is what you want (I'm not sure as I newer needed such thing), then it is as easy as uncommenting one line from Makefile, located at drivers/net/wireless/bcmdhd,

DHDCFLAGS += -DWLP2P -DWL_ENABLE_P2P_IF

For 8189es situation is similar. Open drivers/net/wireless/8189es/Makefile and search for:

ifeq ($(CONFIG_PLATFORM_ARM_SUN8I), y)

right after that line add this below

EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE

Note, to actually be able to see these two Makefiles, you need patched Armbian kernel. There are some instructions on forum, how to build your customized kernel.

Posted

Hi, Jernej

I have two boards : OPI + (H3) and BPI M1 (A20), each running Armbians

 

It is not the p2p (if I understand it correctly), that I want, but rather 2 different wlanX's.

 

I can only connect with the WIFI in certain circumstances, so I need to get the i-net connection with the wlan0 and make it available to the other clients through the hostapd on the wlan1.

Posted

Then I can't help you with A20 board as I don't have it, but procedure for OPi+ still stands. It will bring you wlan0 and wlan1 interface.

Posted

BPI M1 is not equipped with the integrated WiFi. I use an external USB dongle, which loads

 

root@bananapi:~# lsmod
Module                  Size  Used by
rt2800usb              17554  0
rt2800lib              71732  1 rt2800usb
rt2x00usb               8815  1 rt2800usb
rt2x00lib              37161  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              533155  3 rt2x00lib,rt2x00usb,rt2800lib

 

Would it be possible for it to spin the second wlan ?

 

Are other solutions available, rather than rebuilding the driver?

Posted

You can always try to add additional interfaces with "iw" but IIRC this didn't really work. Let's hope someone else will jump in to help you.

Posted

I use the dongle

 

root@bananapi:~# lsusb
Bus 002 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

 

root@bananapi:~# lsmod
Module                  Size  Used by
ccm                     8074  3
rt2800usb              17554  0
rt2800lib              71732  1 rt2800usb
rt2x00usb               8815  1 rt2800usb
rt2x00lib              37161  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              533155  3 rt2x00lib,rt2x00usb,rt2800lib

 

The problem is that the driver spawns a single wlan :

root@bananapi:~# ifconfig

wlan0     Link encap:Ethernet  HWaddr 00:01:e0:10:30:1d  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:783127 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1350158 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:142627539 (136.0 MiB)  TX bytes:661366756 (630.7 MiB)

 

 

 

How is it possible adding additional interface with "iw" ? Will they be completely independent and functional?

Posted

How is it possible adding additional interface with "iw" ?

 

For example:

sudo iw phy phy0 interface add wlan1 type managed

phy name may be different, check with

iw phy

Will they be completely independent and functional?

 

Really don't know. Other than instructions above, I can't help you.

Posted

How is it possible adding additional interface with "iw" ? Will they be completely independent and functional?

 

There are lots of dongles and only a few of them have a chipset with useful drivers. You can either reinvent the wheel with untested HW/SW or just simply follow the instructions for setting up a dual-interface wlan dongle as per http://forum.armbian.com/index.php/topic/1237-tutorial-opi-one-wireless-success/#entry9321%C2%A0. Please follow the steps under 'Troubleshooting'.

 

A working dongle costs <$2 , some reading time and discipline to follow instructions. Good luck.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines