diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2006-12-24 19:10:00 -0200 |
---|---|---|
committer | Andres Salomon <dilinger@debian.org> | 2007-01-02 10:33:32 -0500 |
commit | ba04adf73a8c86f9bfbf5e1eec1c9a691ac114df (patch) | |
tree | 53d050325c007d09a70be8079d10f63a18d51bbb | |
parent | 148ae53385465c68c41d5af48400cbe57d52f4bb (diff) | |
download | lwn-ba04adf73a8c86f9bfbf5e1eec1c9a691ac114df.tar.gz lwn-ba04adf73a8c86f9bfbf5e1eec1c9a691ac114df.zip |
libertas: add event capability reporting
Subject says it all.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
(cherry picked from f2dee3024bdcdc7c3904ada6f196fcb291a59e08 commit)
-rw-r--r-- | drivers/net/wireless/libertas/wlan_wext.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/wlan_wext.c b/drivers/net/wireless/libertas/wlan_wext.c index 67a4bbc7f946..f4026b9dcdb1 100644 --- a/drivers/net/wireless/libertas/wlan_wext.c +++ b/drivers/net/wireless/libertas/wlan_wext.c @@ -1087,6 +1087,11 @@ static int wlan_get_range(struct net_device *dev, struct iw_request_info *info, range->txpower_capa = IW_TXPOW_DBM; range->txpower_capa |= IW_TXPOW_RANGE; + range->event_capa[0] = (IW_EVENT_CAPA_K_0 | + IW_EVENT_CAPA_MASK(SIOCGIWAP) | + IW_EVENT_CAPA_MASK(SIOCGIWSCAN)); + range->event_capa[1] = IW_EVENT_CAPA_K_1; + if (Adapter->fwCapInfo & FW_CAPINFO_WPA) { range->enc_capa = IW_ENC_CAPA_WPA | IW_ENC_CAPA_WPA2 |