summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/debug.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-10-12 22:07:44 +0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-13 00:05:30 +0400
commit908ebfb95d16bdf7f5f37ad911ccd9b7350ba780 (patch)
tree4a11c71816c2c545e8beabc4cc5c64d713d4f83e /drivers/net/wireless/ath/debug.c
parentcfd8e12f42746df396ecbdf7a1d8e92e8e4dbb97 (diff)
downloadlinux-908ebfb95d16bdf7f5f37ad911ccd9b7350ba780.tar.xz
ath5k: fix build break from "ath5k: Print out opmode in debugfs"
Also improve ath_opmode_to_string usage by having it return UNKNOWN rather than NULL in the event of failure to map the opmode value to a representative string. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/debug.c')
-rw-r--r--drivers/net/wireless/ath/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/debug.c b/drivers/net/wireless/ath/debug.c
index a9eb7876dbe1..dacfb234f491 100644
--- a/drivers/net/wireless/ath/debug.c
+++ b/drivers/net/wireless/ath/debug.c
@@ -55,7 +55,7 @@ const char *ath_opmode_to_string(enum nl80211_iftype opmode)
case NL80211_IFTYPE_P2P_GO:
return "P2P-GO";
default:
- return NULL;
+ return "UNKNOWN";
}
}
EXPORT_SYMBOL(ath_opmode_to_string);