Files
sablink-distro/sys-apps/hal/files/hal-0.5.8.1-dscape-stack-support.patch
T
lxnay fd826fc5a5 hal with dscape wifi stack support
git-svn-id: http://svn.sabayonlinux.org/overlay@860 d7aec97c-591d-0410-af39-a8856400b30a
2007-02-07 22:22:08 +00:00

21 lines
903 B
Diff

--- hald/linux/classdev.c.old
+++ hald/linux/classdev.c
@@ -191,11 +191,16 @@ net_add (const gchar *sysfs_path, const
if (media_type == ARPHRD_ETHER) {
const char *addr;
char wireless_path[HAL_PATH_MAX];
+ char wiphy_path[HAL_PATH_MAX];
gboolean is_wireless;
struct stat s;
snprintf (wireless_path, HAL_PATH_MAX, "%s/wireless", sysfs_path);
- if (stat (wireless_path, &s) == 0 && (s.st_mode & S_IFDIR)) {
+ /* wireless dscape stack e.g. from rt2500pci driver*/
+ snprintf (wiphy_path, HAL_PATH_MAX, "%s/wiphy", sysfs_path);
+
+ if ((stat (wireless_path, &s) == 0 && (s.st_mode & S_IFDIR)) ||
+ (stat (wiphy_path, &s) == 0) && (s.st_mode & S_IFDIR)) {
hal_device_property_set_string (d, "info.product", "WLAN Interface");
hal_device_property_set_string (d, "info.category", "net.80211");
hal_device_add_capability (d, "net.80211");