diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-23 13:16:09 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-23 13:16:09 +0000 |
commit | 76bb0f3309862e021d454783a957306b63613a9a (patch) | |
tree | c23c154a552ba0fd7f2e2d2a2eff3ea72dc7708d /package/iwinfo/src/iwinfo_wext_scan.c | |
parent | b1af9a779fda99262632d69c085aea16e17ac809 (diff) | |
download | upstream-76bb0f3309862e021d454783a957306b63613a9a.tar.gz upstream-76bb0f3309862e021d454783a957306b63613a9a.tar.bz2 upstream-76bb0f3309862e021d454783a957306b63613a9a.zip |
iwinfo: replace internal constant mode strings with enums
SVN-Revision: 30692
Diffstat (limited to 'package/iwinfo/src/iwinfo_wext_scan.c')
-rw-r--r-- | package/iwinfo/src/iwinfo_wext_scan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/iwinfo/src/iwinfo_wext_scan.c b/package/iwinfo/src/iwinfo_wext_scan.c index 0a0093305e..ecd40d71e2 100644 --- a/package/iwinfo/src/iwinfo_wext_scan.c +++ b/package/iwinfo/src/iwinfo_wext_scan.c @@ -277,16 +277,17 @@ static inline void wext_fill_entry(struct stream_descr *stream, struct iw_event switch(event->u.mode) { case 1: - sprintf((char *) e->mode, "Ad-Hoc"); + e->mode = IWINFO_OPMODE_ADHOC; break; case 2: case 3: - sprintf((char *) e->mode, "Master"); + e->mode = IWINFO_OPMODE_MASTER; break; default: - sprintf((char *) e->mode, "Unknown"); + e->mode = IWINFO_OPMODE_UNKNOWN; + break; } break; |