I am using this driver in an 802.1 bridge on a linux platform. I am trying to locate the code where the device sets the path cost for STP. In br_if.c the function br_initial_port_cost() sets the cost. In my implentation the cost seems to oscillate between 100(the general default value for 10M ethernet) and 0. For ethernet, e.g. au1000, in au1000_eth.c the function au1000_set_settings() does the job. For MadWifi I could find the function ath_ioctl_ethtool() in if_ath_pci.c. But it doesnt appear to set the speed value as br_initial_port_cost() would expect it to. Any pointers?