On Thu, Apr 17, 2014 at 08:11:03PM +0200, Qian Li wrote: > I run into some problems while I was using Intel Wireless 3945ABG WNIC to > do some routing experiments. I've been using Ubuntu 12.04. The default WNIC > driver is iwl3945. I could set essid, IP address, and mode of the NIC. But > I can't switch to all the channels. I want the computer to be able to > switch to any 5GHZ band channel in the Ad-Hoc mode. But the WNIC could only > be switched to certain channels (e.g., 40, 44, 48) after it is set to the > Ad-Hoc mode (it can be switched to any channel when it is in the Managed > mode). When I tried to switch to other channels (e.g. 42, 46, 100, 124, > etc.), I got errors such as "invalid argument". Use "iw phy" to check on which channels IBSS is allowed on your device. Most likely all 5GHz channels are disallowed. For example I have: $ iw phy | grep "no IBSS" * 2467 MHz [12] (15.0 dBm) (passive scanning, no IBSS) * 2472 MHz [13] (15.0 dBm) (passive scanning, no IBSS) * 5180 MHz [36] (15.0 dBm) (passive scanning, no IBSS) * 5200 MHz [40] (15.0 dBm) (passive scanning, no IBSS) * 5220 MHz [44] (15.0 dBm) (passive scanning, no IBSS) * 5240 MHz [48] (15.0 dBm) (passive scanning, no IBSS) * 5260 MHz [52] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5280 MHz [56] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5300 MHz [60] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5320 MHz [64] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5500 MHz [100] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5520 MHz [104] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5540 MHz [108] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5560 MHz [112] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5580 MHz [116] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5600 MHz [120] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5620 MHz [124] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5640 MHz [128] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5660 MHz [132] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5680 MHz [136] (15.0 dBm) (passive scanning, no IBSS, radar detection) * 5700 MHz [140] (15.0 dBm) (passive scanning, no IBSS, radar detection) Stanislaw -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html