JCM
JCM

Reputation: 570

Force wireless card to scan only one channel (programatically)

I'm using Wlanapi.dll in Windows (Visual Studio), the default WlanScan function always scans for wifi networks in all channels.

Is there a command to nail the wireless card to one wifi-channel? The reason is to speed up the scanning and be more accurate. Filtering the results is not valid.

Upvotes: 2

Views: 720

Answers (2)

Neil
Neil

Reputation: 11889

The reason for having multiple channels is that WiFi will change channels if a particular one is full of noise (from other 2.4Ghz sources: microwave ovens, cordless phones, Bluetooth devices, wireless video cameras, outdoor microwave links, wireless game controllers, Zigbee devices, fluorescent lights, WiMAX, and so on). Even if you could limit your WiFi card to 1 channel, it would probably stop working pretty quickly because of noise. I can't remember how often WiFi hops channels, but BlueTooth does it 75 times a second, and any time it decides to use YOUR channel, you lose data.

Upvotes: 0

JCM
JCM

Reputation: 570

I've been studying and using the MSDN in the last weeks. Even if it is possible to stick the scan to a specific SSID, but however it's not possible to stick it to one channel. You have to filter the results by yourself.

This applies to the native Wlanapi.dll and/or the commonly-used adaptation layer ManagedWifi by many programs (like inSSIDer 2). However I can see that the NDIS is another world and thus another question.

Upvotes: 0

Related Questions