Skip to content

Commit

Permalink
mwifiex: fix minor issue in debugfs command 'info'
Browse files Browse the repository at this point in the history
Debugfs command 'info' shows wrong interface type. The regression
occurred due to commit eecd825 (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>
  • Loading branch information
Amitkumar Karwar authored and John W. Linville committed Jul 8, 2011
1 parent e6faada commit 38869d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mwifiex/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ static struct dentry *mwifiex_dfs_dir;

static char *bss_modes[] = {
"Unknown",
"Managed",
"Ad-hoc",
"Managed",
"Auto"
};

Expand Down

0 comments on commit 38869d7

Please sign in to comment.