On Thu, Jul 16, 2009 at 9:43 AM, Johannes Berg<johannes@xxxxxxxxxxxxxxxx> wrote: > On Thu, 2009-07-16 at 09:30 -0700, Luis R. Rodriguez wrote: >> On Thu, Jul 16, 2009 at 2:08 AM, Helmut >> Schaa<helmut.schaa@xxxxxxxxxxxxxx> wrote: >> > Use a bitfield to store the current scan mode instead of two boolean >> > variables {sw,hw}_scanning. This patch does not introduce functional >> > changes. >> > >> >> > +enum mac80211_scan_flag { >> > + SCAN_SW_SCANNING = 1, >> > + SCAN_HW_SCANNING = 2, >> > +}; >> > + >> >> But why is that needed? The commit log doesn't state that. We won't >> use both at the same time. > > You're nitpicking ;) > We currently have two variables, and this just changes them into two > bits instead, so he can extend the sw-scanning case with another bit :) I didn't realize that until reading the next patch. Luis -- 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