terminate channel/frequency information if the driver doesn't report a frequency
@@ -7749,7 +7749,7 @@ for(c = 2412; c <= 2484; c++)
else
{
fprintf(stderr, "driver doesn't support/allow frequency scan (reported exponent (%d), reported frequency (%d)\n", pwrq.u.freq.e, pwrq.u.freq.m);
- continue;
+ return;
}
memset(&pwrq, 0, sizeof(pwrq));
memcpy(&pwrq.ifr_name, interfacename, IFNAMSIZ);
@@ -7796,7 +7796,7 @@ for(c = 5180; c <= 5905; c++)
else
{
fprintf(stderr, "driver doesn't support/allow frequency scan (reported exponent (%d), reported frequency (%d)\n", pwrq.u.freq.e, pwrq.u.freq.m);
- continue;
+ return;
}
memset(&pwrq, 0, sizeof(pwrq));
memcpy(&pwrq.ifr_name, interfacename, IFNAMSIZ);
@@ -7842,7 +7842,7 @@ for(c = 5955; c <= 7115; c++)
else
{
fprintf(stderr, "driver doesn't support/allow frequency scan (reported exponent (%d), reported frequency (%d)\n", pwrq.u.freq.e, pwrq.u.freq.m);
- continue;
+ return;
}
memset(&pwrq, 0, sizeof(pwrq));
memcpy(&pwrq.ifr_name, interfacename, IFNAMSIZ);
