VIM2 pro as AP and wifi client

Hi,
My ubuntu only showing wlan0 on kernel 4.9 but VIM2 pro should have 2 wlan I think as it is 2.4 and 5Ghz. Any clue how I enable them both to set AP and wireless client too.

Majed

any clue how I enable them both to set AP and wireless client too.

something like this

iw phy phy0 interface add wlan2 type __ap
$ iwconfig 2>/dev/null 
wlan2     IEEE 802.11  Mode:Master  
          RTS thr:off   Fragment thr:off
          Power Management:on
          
wlan0     IEEE 802.11  Mode:Master  Tx-Power=31 dBm   
          RTS thr:off   Fragment thr:off
          Power Management:off

but after u can setup hostapd daemon properly for both interfaces together

2 Likes

Thanks for replying

I did add wlan2 but looks both wlan0 and wlan2 are the same frequency 5G

iwconfig 2>/dev/null
wlan0 IEEE 802.11 ESSID:“mike5”
Mode:Master Frequency:5.22 GHz Access Point:
Bit Rate=260 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=2/5 Signal level=-70 dBm Noise level=-92 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

wlan2 IEEE 802.11 ESSID:""
Mode:Master Frequency:5.18 GHz Access Point: Not-Associated
Bit Rate:866.5 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=5/5 Signal level=-2 dBm Noise level=-92 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

:wink:

u must understand after u need setup second interface

iw - get more info about this or man iw or iw --help
iw phy - check available freq channels modes etc…
iw dev - show current stare for wlan interfaces

or try to use more simple iwconfig

for example

iwconfig wlan2 channel 11

I meant the chipset on VIM2 has two frequencies 2.4g and 5G, is the iw command add wlan2 is a virtual interface on the same same frequencies? Or we can create virtual interface and we can use both frequencies on each interface?

its not virtual its real :wink: we can create many dev for phy
dev is network interface for phy - is hardware device

we can create and configure dev for diff modes freqs etc
and use it same time but is depend from chipset hardware device and driver which allowed

for example for VIM2 we can

$ iw phy | grep comb -A99 | grep = -B99

	valid interface combinations:
		 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
		   total <= 3, #channels <= 2
		 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1

YES not very cool combination

for example my laptop wifi have another more advanced combinations

$ iw phy | grep comb -A99 | grep = -B99

	valid interface combinations:
		 * #{ managed } <= 2, #{ AP, mesh point, P2P-client, P2P-GO } <= 2, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 1
		 * #{ managed } <= 2, #{ P2P-client } <= 2, #{ AP, mesh point, P2P-GO } <= 1, #{ P2P-device } <= 1,
		   total <= 4, #channels <= 2
		 * #{ managed } <= 1, #{ IBSS } <= 1,
		   total <= 2, #channels <= 1
1 Like

How to know which standard my Wi-Fi connection is currently using?
Thank you