|
@@ -1869,7 +1869,7 @@ static int readStatsRid(struct airo_info*ai, StatsRid *sr, int rid, int lock)
|
|
|
|
|
|
static void try_auto_wep(struct airo_info *ai)
|
|
static void try_auto_wep(struct airo_info *ai)
|
|
{
|
|
{
|
|
- if (auto_wep && !(ai->flags & FLAG_RADIO_DOWN)) {
|
|
|
|
|
|
+ if (auto_wep && !test_bit(FLAG_RADIO_DOWN, &ai->flags)) {
|
|
ai->expires = RUN_AT(3*HZ);
|
|
ai->expires = RUN_AT(3*HZ);
|
|
wake_up_interruptible(&ai->thr_wait);
|
|
wake_up_interruptible(&ai->thr_wait);
|
|
}
|
|
}
|