[package] libpcap: explicitely disable libnl support to prevent different build resul...
[openwrt.git] / package / iwinfo / src / iwinfo_wext_scan.c
index 0a00933..ecd40d7 100644 (file)
@@ -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;
This page took 0.024273 seconds and 4 git commands to generate.