a few changes in bcmdhd from Dorimanx