mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 08:10:17 +01:00
2006-01-03 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c - (nm_ap_add_capabilities_from_ie): presume no WEP unless the WPA IE specifies that WEP is supported * src/nm-device-802-11-wireless.c - (process_scan_results): don't mark an AP as supporting WEP if there's already other encryption capability info git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1256 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
21446d1fa6
commit
d23aba6524
3 changed files with 21 additions and 1 deletions
10
ChangeLog
10
ChangeLog
|
|
@ -1,3 +1,13 @@
|
|||
2006-01-03 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerAP.c
|
||||
- (nm_ap_add_capabilities_from_ie): presume no WEP unless
|
||||
the WPA IE specifies that WEP is supported
|
||||
|
||||
* src/nm-device-802-11-wireless.c
|
||||
- (process_scan_results): don't mark an AP as supporting WEP
|
||||
if there's already other encryption capability info
|
||||
|
||||
2006-01-03 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/dhcp-manager/nm-dhcp-manager.c
|
||||
|
|
|
|||
|
|
@ -579,6 +579,10 @@ void nm_ap_add_capabilities_from_ie (NMAccessPoint *ap, const guint8 *wpa_ie, gu
|
|||
return;
|
||||
|
||||
caps = nm_ap_get_capabilities (ap);
|
||||
|
||||
/* Mark WEP as unsupported, if it's supported it will be added below */
|
||||
caps &= ~NM_802_11_CAP_PROTO_WEP;
|
||||
|
||||
if (cap_data->proto & IW_AUTH_WPA_VERSION_WPA)
|
||||
{
|
||||
caps |= NM_802_11_CAP_PROTO_WPA;
|
||||
|
|
|
|||
|
|
@ -2836,7 +2836,13 @@ process_scan_results (NMDevice80211Wireless *dev,
|
|||
break;
|
||||
case SIOCGIWENCODE:
|
||||
if (!(iwe->u.data.flags & IW_ENCODE_DISABLED))
|
||||
nm_ap_add_capabilities_for_wep (ap);
|
||||
{
|
||||
/* Only add WEP capabilities if this AP doesn't have
|
||||
* any encryption capabilities yet.
|
||||
*/
|
||||
if (nm_ap_get_capabilities (ap) & NM_802_11_CAP_PROTO_NONE)
|
||||
nm_ap_add_capabilities_for_wep (ap);
|
||||
}
|
||||
break;
|
||||
#if 0
|
||||
case SIOCGIWRATE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue