/[gentoo-x86]/net-misc/networkmanager/files/networkmanager-0.9.4.0-nl80211-encryption-caps.patch
Gentoo

Contents of /net-misc/networkmanager/files/networkmanager-0.9.4.0-nl80211-encryption-caps.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jul 17 05:43:11 2012 UTC (2 years, 2 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Fix ipw2200 driver problems caused by wext vs. nl80211 API use (bug #426844, thanks to Jonathan Müller).

(Portage version: 2.2.0_alpha118/cvs/Linux x86_64)

1 tetromino 1.1 From de3353d58c22ba9882784e9cf0653c7ac427eb9b Mon Sep 17 00:00:00 2001
2     From: Mathieu Trudel-Lapierre <mathieu@canonical.com>
3     Date: Thu, 12 Apr 2012 12:01:28 +0200
4     Subject: [PATCH] wifi: check the driver reports any encryption caps with
5     nl80211 (bgo #673717)
6    
7     Some drivers, such as ipw2200 doesn't report any encryption with newer kernels.
8     See also https://bugs.launchpad.net/ubuntu/+source/linux/+bug/973241
9     ---
10     src/wifi/wifi-utils-nl80211.c | 10 ++++++++++
11     1 files changed, 10 insertions(+), 0 deletions(-)
12    
13     diff --git a/src/wifi/wifi-utils-nl80211.c b/src/wifi/wifi-utils-nl80211.c
14     index 4a4e661..048d9d2 100644
15     --- a/src/wifi/wifi-utils-nl80211.c
16     +++ b/src/wifi/wifi-utils-nl80211.c
17     @@ -650,6 +650,9 @@ static int nl80211_wiphy_info_handler (struct nl_msg *msg, void *arg)
18     info->caps |= NM_WIFI_DEVICE_CAP_CIPHER_CCMP |
19     NM_WIFI_DEVICE_CAP_RSN;
20     break;
21     + default:
22     + nm_log_err (LOGD_HW | LOGD_WIFI, "Don't know the meaning of NL80211_ATTR_CIPHER_SUITES %#8.8x.", ciphers[i]);
23     + break;
24     }
25     }
26     }
27     @@ -735,6 +738,13 @@ wifi_nl80211_init (const char *iface, int ifindex)
28     goto error;
29     }
30    
31     + if (device_info.caps == 0) {
32     + nm_log_err (LOGD_HW | LOGD_WIFI,
33     + "(%s): driver doesn't report support of any encryption",
34     + nl80211->parent.iface);
35     + goto error;
36     + }
37     +
38     nl80211->freqs = device_info.freqs;
39     nl80211->num_freqs = device_info.num_freqs;
40     nl80211->parent.can_scan_ssid = device_info.can_scan_ssid;
41     --
42     1.7.8.6

  ViewVC Help
Powered by ViewVC 1.1.20