mwifiex: fix minor issue in debugfs command 'info'
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 8 Jul 2011 00:33:20 +0000 (17:33 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jul 2011 15:47:15 +0000 (11:47 -0400)
Debugfs command 'info' shows wrong interface type. The regression
occurred due to commit eecd8250e (mwifiex: remove MWIFIEX_BSS_MODE_
macros) in which we replaced MWIFIEX_BSS_MODE_* macros by
NL80211_IFTYPE_*, for example,

MWIFIEX_BSS_MODE_IBSS (2) --> NL80211_IFTYPE_ADHOC (1)

The issue is fixed by swapping static character array used to
display interface type information.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/debugfs.c

index 46d65e02c7baa1145780740e199dffbb5ec18125..1bcf9eaa107d5de4adf415ad622d21eb4304cd29 100644 (file)
@@ -27,8 +27,8 @@ static struct dentry *mwifiex_dfs_dir;
 
 static char *bss_modes[] = {
        "Unknown",
-       "Managed",
        "Ad-hoc",
+       "Managed",
        "Auto"
 };