From: Daniel Drake Date: Wed, 26 Sep 2007 20:45:24 +0000 (+0100) Subject: [HOSTAP]: set netdev type before registering AP interface X-Git-Tag: v2.6.24-rc1~1454^2~208 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09703f5e79a64c744721b9c27502075232ba0ea2;p=pandora-kernel.git [HOSTAP]: set netdev type before registering AP interface As detailed at https://bugs.gentoo.org/159646 hostap with hostapd confuses udev by presenting 2 interfaces with the same MAC address. Also, at the time of detection, the 'type' attribute is 1, identical to other hostap interfaces. The AP interface is supposed to have type ARPHRD_IEEE80211 (801), but this is not set until after registration. Setting it before register_netdev() is called allows us to avoid this confusion. We can do this by propogating the HOSTAP_INTERFACE type through to hostap_setup_dev(). Signed-off-by: Daniel Drake Signed-off-by: John W. Linville Signed-off-by: David S. Miller --- Reading git-diff-tree failed