diff options
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r-- | net/wireless/chan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 16f3c3a7b2c1..9b8cc877eb19 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -504,7 +504,8 @@ cfg80211_get_chan_state(struct wireless_dev *wdev, | |||
504 | case NL80211_IFTYPE_ADHOC: | 504 | case NL80211_IFTYPE_ADHOC: |
505 | if (wdev->current_bss) { | 505 | if (wdev->current_bss) { |
506 | *chan = wdev->current_bss->pub.channel; | 506 | *chan = wdev->current_bss->pub.channel; |
507 | *chanmode = wdev->ibss_fixed | 507 | *chanmode = (wdev->ibss_fixed && |
508 | !wdev->ibss_dfs_possible) | ||
508 | ? CHAN_MODE_SHARED | 509 | ? CHAN_MODE_SHARED |
509 | : CHAN_MODE_EXCLUSIVE; | 510 | : CHAN_MODE_EXCLUSIVE; |
510 | return; | 511 | return; |