iwlcore: fix channel display in debugfs
authorMohamed Abbas <mohamed.abbas@intel.com>
Wed, 8 Apr 2009 18:39:31 +0000 (11:39 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:44 +0000 (16:54 -0400)
Fix displaying of wrong channel information when user query
channel through debugfs

Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c

index af1d121..5b8c839 100644 (file)
@@ -389,7 +389,7 @@ static ssize_t iwl_dbgfs_channels_read(struct file *file, char __user *user_buf,
                                channels[i].max_power,
                                channels[i].flags & IEEE80211_CHAN_RADAR ?
                                " (IEEE 802.11h required)" : "",
-                               (!(channels[i].flags & IEEE80211_CHAN_NO_IBSS)
+                               ((channels[i].flags & IEEE80211_CHAN_NO_IBSS)
                                || (channels[i].flags &
                                IEEE80211_CHAN_RADAR)) ? "" :
                                ", IBSS",