On Mon, 2010-04-26 at 19:54 +0200, Felix Fietkau wrote: > A misplaced interface type check bails out too early if the interface > is not in monitor mode. This patch moves it to the right place, so that > it only covers changes to the monitor flags. ... > + if (sdata->vif.type != NL80211_IFTYPE_MONITOR || !flags) > + return 0; > + > sdata->u.mntr_flags = *flags; > return 0; > } Perhaps you could write it in a more readable way: if (sdata->vif.type == NL80211_IFTYPE_MONITOR && flags) sdata->u.mntr_flags = *flags; return 0; Just an idea, not an objection. -- Regards, Pavel Roskin -- 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