Skip to content
Commit 42639fcd authored by Bob Copeland's avatar Bob Copeland Committed by John W. Linville
Browse files

ath5k: reduce exported channel list



Claiming every available 5 ghz channel has a couple of negative
side-effects: scanning takes a long time, and the channel list
overflows the available buffer space for netlink commands,
resulting in:

    $ iw phy phy0 info
    command failed: No buffer space available (-105)

This patch adds a modparam so people who want to see all the channels
can do so by passing all_channels=1.  By default users will see a
smaller list of channels.  This also halves scan time, from 10 seconds
down to less than 5 when using world regulatory.

Changes-licensed-under: 3-Clause-BSD

Signed-off-by: default avatarBob Copeland <me@bobcopeland.com>
Reported-by: default avatarSimon Farnsworth <simon@farnz.org.uk>
Tested-By: default avatarSimon Farnsworth <simon@farnz.org.uk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d5522e03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment