diff options
| author | Michael Biebl <biebl@debian.org> | 2008-01-24 23:44:13 +0000 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2008-01-24 23:44:13 +0000 |
| commit | a9ad53f2fd8a78cfcc18daf8f09dc2b5b490c2af (patch) | |
| tree | b5eb49d9e29fc77e1e51c2da347c51b30254787a /debian/patches/13-validate_mac_addr.patch | |
| parent | c1cffd3cc3bad85d1e28a2a8f4cc0fd0e1359bbd (diff) | |
| parent | 13a4c904828864b472ba0a8b87a02340e7f7048b (diff) | |
Open the experimental branch for the long awaited NM 0.7 release.
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-utopia/packages/experimental/networkmanager@2062 ceb527fc-18e6-0310-9fe2-813c157c29e7
Diffstat (limited to 'debian/patches/13-validate_mac_addr.patch')
| -rw-r--r-- | debian/patches/13-validate_mac_addr.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/13-validate_mac_addr.patch b/debian/patches/13-validate_mac_addr.patch new file mode 100644 index 00000000..47a81e19 --- /dev/null +++ b/debian/patches/13-validate_mac_addr.patch @@ -0,0 +1,33 @@ +--- network-manager-0.6.5.orig/src/nm-device-802-11-wireless.c ++++ network-manager-0.6.5/src/nm-device-802-11-wireless.c +@@ -3439,6 +3439,20 @@ + } + + static gboolean ++has_valid_ether_addr (NMAccessPoint *ap) ++{ ++ struct ether_addr *addr; ++ int i; ++ ++ addr = nm_ap_get_address (ap); ++ for (i = 0 ; i < ETH_ALEN; i++) ++ if (addr->ether_addr_octet[i] != 0) ++ return TRUE; ++ ++ return FALSE; ++} ++ ++static gboolean + process_scan_results (NMDevice80211Wireless *dev, + const guint8 *res_buf, + guint32 res_buf_len) +@@ -3474,7 +3488,8 @@ + + /* Merge previous AP */ + if (ap) { +- add_new_ap_to_device_list (dev, ap); ++ if (has_valid_ether_addr (ap)) ++ add_new_ap_to_device_list (dev, ap); + nm_ap_unref (ap); + ap = NULL; + } |