wl12xx: disable 11a channels when regulatory changes if 11a is not supported
authorLuciano Coelho <luciano.coelho@nokia.com>
Fri, 26 Nov 2010 11:44:59 +0000 (13:44 +0200)
committerLuciano Coelho <luciano.coelho@nokia.com>
Fri, 26 Nov 2010 13:09:15 +0000 (15:09 +0200)
commit573c67cf819d52d2e12adf75a9a8cfbd216190a3
treeac7f321f43d6c7965349f5479d44dd7b7cc3fb96
parent6735329934e9acc1941a991ed6f6ad4be3e082a5
wl12xx: disable 11a channels when regulatory changes if 11a is not supported

Instead of simply not scanning for the 11a channels when not supported by the
hardware, disable the channels in reg_notify.  This centralizes the decision
on whether to scan 5GHz channel in one place and allows userspace to know
exactly which channels are in use.

Based on Juuso Oikarinen's idea.

Cc: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
drivers/net/wireless/wl12xx/main.c