|
@@ -2835,7 +2835,7 @@ static void hostap_passive_scan(unsigned long data)
|
|
|
{
|
|
|
local_info_t *local = (local_info_t *) data;
|
|
|
struct net_device *dev = local->dev;
|
|
|
- u16 channel;
|
|
|
+ u16 chan;
|
|
|
|
|
|
if (local->passive_scan_interval <= 0)
|
|
|
return;
|
|
@@ -2872,11 +2872,11 @@ static void hostap_passive_scan(unsigned long data)
|
|
|
|
|
|
printk(KERN_DEBUG "%s: passive scan channel %d\n",
|
|
|
dev->name, local->passive_scan_channel);
|
|
|
- channel = local->passive_scan_channel;
|
|
|
+ chan = local->passive_scan_channel;
|
|
|
local->passive_scan_state = PASSIVE_SCAN_WAIT;
|
|
|
local->passive_scan_timer.expires = jiffies + HZ / 10;
|
|
|
} else {
|
|
|
- channel = local->channel;
|
|
|
+ chan = local->channel;
|
|
|
local->passive_scan_state = PASSIVE_SCAN_LISTEN;
|
|
|
local->passive_scan_timer.expires = jiffies +
|
|
|
local->passive_scan_interval * HZ;
|
|
@@ -2884,9 +2884,9 @@ static void hostap_passive_scan(unsigned long data)
|
|
|
|
|
|
if (hfa384x_cmd_callback(dev, HFA384X_CMDCODE_TEST |
|
|
|
(HFA384X_TEST_CHANGE_CHANNEL << 8),
|
|
|
- channel, NULL, 0))
|
|
|
+ chan, NULL, 0))
|
|
|
printk(KERN_ERR "%s: passive scan channel set %d "
|
|
|
- "failed\n", dev->name, channel);
|
|
|
+ "failed\n", dev->name, chan);
|
|
|
|
|
|
add_timer(&local->passive_scan_timer);
|
|
|
}
|