diff options
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index a7f4e7902104..41af3a0e9961 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -545,12 +545,12 @@ static int nl80211_msg_put_channel(struct sk_buff *msg, | |||
545 | if ((chan->flags & IEEE80211_CHAN_DISABLED) && | 545 | if ((chan->flags & IEEE80211_CHAN_DISABLED) && |
546 | nla_put_flag(msg, NL80211_FREQUENCY_ATTR_DISABLED)) | 546 | nla_put_flag(msg, NL80211_FREQUENCY_ATTR_DISABLED)) |
547 | goto nla_put_failure; | 547 | goto nla_put_failure; |
548 | if ((chan->flags & IEEE80211_CHAN_PASSIVE_SCAN) && | 548 | if (chan->flags & IEEE80211_CHAN_NO_IR) { |
549 | nla_put_flag(msg, NL80211_FREQUENCY_ATTR_PASSIVE_SCAN)) | 549 | if (nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_IR)) |
550 | goto nla_put_failure; | 550 | goto nla_put_failure; |
551 | if ((chan->flags & IEEE80211_CHAN_NO_IBSS) && | 551 | if (nla_put_flag(msg, __NL80211_FREQUENCY_ATTR_NO_IBSS)) |
552 | nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_IBSS)) | 552 | goto nla_put_failure; |
553 | goto nla_put_failure; | 553 | } |
554 | if (chan->flags & IEEE80211_CHAN_RADAR) { | 554 | if (chan->flags & IEEE80211_CHAN_RADAR) { |
555 | if (nla_put_flag(msg, NL80211_FREQUENCY_ATTR_RADAR)) | 555 | if (nla_put_flag(msg, NL80211_FREQUENCY_ATTR_RADAR)) |
556 | goto nla_put_failure; | 556 | goto nla_put_failure; |