Network Manager, hal 0.5.11 and Gentoo

In case you’re using Network Manager at Gentoo, with a wireless driver using phy80211, you’ll probably notice that with a more recent kernel version your wireless device started showing itself as a wired one at Network Manager.

This happens basically because hal 0.5.11 has a bug that it shows the wrong information about the device, and Network Manager believes in hal.

To fix this just apply the patch showed at bug #246026. I made a backport of 2 patches from latest hal version so I could still use hal 0.5.11 with my ath9k driver.

Hopes that this gets into Gentoo soon.