wpa_supplicant: Use the 'no_ir' notation
Use the 'no_ir' notation instead of the 'passive scan' and 'no_ibss' notations to match the earlier change in nl80211. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
85b60adddd
commit
0a44358055
5 changed files with 17 additions and 22 deletions
|
@ -107,7 +107,8 @@ int hostapd_get_hw_features(struct hostapd_iface *iface)
|
|||
|
||||
/*
|
||||
* Disable all channels that are marked not to allow
|
||||
* IBSS operation or active scanning.
|
||||
* to initiate radiation (a.k.a. passive scan and no
|
||||
* IBSS).
|
||||
* Use radar channels only if the driver supports DFS.
|
||||
*/
|
||||
if ((feature->channels[j].flag &
|
||||
|
@ -118,8 +119,7 @@ int hostapd_get_hw_features(struct hostapd_iface *iface)
|
|||
!(iface->drv_flags &
|
||||
WPA_DRIVER_FLAGS_DFS_OFFLOAD)) ||
|
||||
(feature->channels[j].flag &
|
||||
(HOSTAPD_CHAN_NO_IBSS |
|
||||
HOSTAPD_CHAN_PASSIVE_SCAN))) {
|
||||
HOSTAPD_CHAN_NO_IR)) {
|
||||
feature->channels[j].flag |=
|
||||
HOSTAPD_CHAN_DISABLED;
|
||||
}
|
||||
|
@ -958,12 +958,10 @@ static int hostapd_is_usable_chan(struct hostapd_iface *iface,
|
|||
return 1;
|
||||
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"%schannel [%i] (%i) is disabled for use in AP mode, flags: 0x%x%s%s%s",
|
||||
"%schannel [%i] (%i) is disabled for use in AP mode, flags: 0x%x%s%s",
|
||||
primary ? "" : "Configured HT40 secondary ",
|
||||
i, chan->chan, chan->flag,
|
||||
chan->flag & HOSTAPD_CHAN_NO_IBSS ? " NO-IBSS" : "",
|
||||
chan->flag & HOSTAPD_CHAN_PASSIVE_SCAN ?
|
||||
" PASSIVE-SCAN" : "",
|
||||
chan->flag & HOSTAPD_CHAN_NO_IR ? " NO-IR" : "",
|
||||
chan->flag & HOSTAPD_CHAN_RADAR ? " RADAR" : "");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue