> > +#include <linux/nl80211.h> > > It seems to me that cfg80211 shouldn't depend on nl80211, so the > nl80211_iftype enum should be moved to cfg80211.h and become cfg80211_iftype. That's not possible because nl80211_{iftype,phymode} are userspace API. If they were defined in cfg80211.h, nl80211.h would need to at least mirror them. And since nl80211.h can't include cfg80211.h (since the former is a "public" header supposed to go to /usr/include with some linux-headers-* package), this way around is the simplest and cleanest solution. Anyway, I don't really think including a header to be a "dependency". You can disable the nl80211 implementation and still use the API enum just fine. (Note that nl80211.h contains enums, more enums and ONLY enums :) -David - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html