Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My android doesn't see AdHoc networks so I cannot share internet to my phone that way.

I heard of making a network in infrastructure mode, and I am wondering how to find out if my card supports it.

share|improve this question
up vote 9 down vote accepted

use the command:

sudo iwconfig wlan0 mode master

if it gives the following as output, it means it doesn't support infrastructure mode:

Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.

If it gives no output, it supports the infrastructure mode. Also, just remember to change "wlan0" to the actual name of your wireless device. You can get the name using the command ifconfig .

share|improve this answer
thanks.. :( I guess my card doesn't support it – Matt Mar 19 '12 at 18:20
I think that some cards may have Infrastucture mode with Mad Wifi Drivers, but you have to compile them and use as modules. With my old card wifi it worked – Omegafil Oct 4 '12 at 17:36

You can check if your device supports AP mode by running "iw list" and looking in the 'Supported interface mode*s' section for "*AP". See: Wireless Driver Support for AP support.

This is the Source

share|improve this answer
Hmm.. I see AP as well as AP/VLAN in the list of Supported Interface Modes. However, trying to set the mode to master as per @The Terminator's answer gives error message indicating that it doesn't support infrastructure mode. – intuited Nov 23 '13 at 1:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.