cfg80211: minimal error handling for wext-compat freq scanning
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
a4e7b730f1
commit
8862dc5f25
|
@ -675,6 +675,11 @@ int cfg80211_wext_siwscan(struct net_device *dev,
|
|||
wext_freq_not_found: ;
|
||||
}
|
||||
}
|
||||
/* No channels found? */
|
||||
if (!i) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Set real number of channels specified in creq->channels[] */
|
||||
creq->n_channels = i;
|
||||
|
|
Loading…
Reference in a new issue