Am Donnerstag, 23. Juli 2009 schrieb Johannes Berg: > On Thu, 2009-07-23 at 12:14 +0200, Helmut Schaa 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 but allows us to enhance the scan flags later (for example > > for background scanning). > > > + if (test_bit(SCAN_SW_SCANNING, &local->scanning)) > > Do we actually need atomic bitops? No (at least not yet). That's why I used __set_bit. test_bit seems to not have a non-atomic equivalent. Or did you mean not to use *_bit functions at all? Helmut -- 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