Lines Matching defs:val
124 int val;
126 wl_ioctl(WIF, WLC_GET_AP, &val, sizeof(val));
128 return val;
137 int val;
164 int val, i;
169 val = 1;
170 wl_ioctl(WIF, WLC_SET_AP, &val, sizeof(val));
173 val = 1;
174 wl_ioctl(WIF, WLC_SET_INFRA, &val, sizeof(val));
179 val = 0;
180 wl_ioctl(WIF, WLC_SET_AP, &val, sizeof(val));
183 if (profile->mode == STATION_MODE_INFRA) val = 1;
184 else val=0;
185 wl_ioctl(WIF, WLC_SET_INFRA, &val, sizeof(val));
187 if (nvram_invmatch("wlp_clientmode_x", "2")) val=0;
188 else val=1;
189 wl_ioctl(WIF, WLC_SET_WET, &val, sizeof(val));
193 val = profile->sharedkeyauth;
194 //printf("auth: %d\n", val);
195 wl_ioctl(WIF, WLC_SET_AUTH, &val, sizeof(val));
230 //val = WEP_ENABLED;
231 val = 1;
233 else val = 0;
235 //wl_ioctl(WIF, WLC_SET_WSEC, &val, sizeof(val)); For AP?
236 wl_ioctl(WIF, WLC_SET_WEP, &val, sizeof(val));
394 void nvram_set_val(char *name, int val, int index)
402 sprintf(tmpval, "%d", val);