diff options
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 0a00933..ecd40d7 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; |