[Madwifi-devel] madwifi needs to call SET_NETDEV_DEV() to create sysfs symlinks
Status: Beta
Brought to you by:
otaku
From: Kay S. <kay...@vr...> - 2004-07-03 21:43:34
|
Hi, attached is a patch to the current version, to create the needed 'driver' and 'device' symlinks in sysfs. The entries are needed for HAL as a example, to merge the network device information with the corresponding pci device. [root@pim e1000]# tree /sys/class/net/ath0/ /sys/class/net/ath0/ |-- addr_len |-- address |-- broadcast |-- device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:02.0 |-- driver -> ../../../bus/pci/drivers/ath_pci |-- features |-- flags |-- ifindex |-- iflink |-- mtu |-- statistics | |-- collisions ... Thanks, Kay |