Lines Matching refs:index
83 /* The idx starts from 0 to (NUM_CONCURRENT_IFC - 1), but 0 index used as
84 * special purpose in wilc device, so we add 1 to the index to starts from 1.
85 * As a result, the returned index will be 1 to NUM_CONCURRENT_IFC.
92 /* We need to minus 1 from idx which is from wilc device to get real index
95 * As a result, the index should be between 0 and (NUM_CONCURRENT_IFC - 1).
99 int index = idx - 1;
102 if (index < 0 || index >= WILC_NUM_CONCURRENT_IFC)
106 if (vif->idx == index)
157 u32 index = 0;
184 wid_list[index].id = WID_SSID_PROBE_REQ;
185 wid_list[index].type = WID_STR;
186 wid_list[index].val = search_ssid_vals;
187 buffer = wid_list[index].val;
197 wid_list[index].size = (s32)(valuesize + 1);
198 index++;
202 wid_list[index].id = WID_INFO_ELEMENT_PROBE;
203 wid_list[index].type = WID_BIN_DATA;
204 wid_list[index].val = (s8 *)request->ie;
205 wid_list[index].size = request->ie_len;
206 index++;
208 wid_list[index].id = WID_SCAN_TYPE;
209 wid_list[index].type = WID_CHAR;
210 wid_list[index].size = sizeof(char);
211 wid_list[index].val = (s8 *)&scan_type;
212 index++;
215 wid_list[index].id = WID_PASSIVE_SCAN_TIME;
216 wid_list[index].type = WID_SHORT;
217 wid_list[index].size = sizeof(u16);
218 wid_list[index].val = (s8 *)&request->duration;
219 index++;
226 wid_list[index].id = WID_SCAN_CHANNEL_LIST;
227 wid_list[index].type = WID_BIN_DATA;
236 wid_list[index].val = ch_freq_list;
237 wid_list[index].size = ch_list_len;
238 index++;
240 wid_list[index].id = WID_START_SCAN_REQ;
241 wid_list[index].type = WID_CHAR;
242 wid_list[index].size = sizeof(char);
243 wid_list[index].val = (s8 *)&scan_source;
244 index++;
249 result = wilc_send_config_pkt(vif, WILC_SET_CFG, wid_list, index);
429 param->idx = noa_attr.index;
1028 int wilc_remove_wep_key(struct wilc_vif *vif, u8 index)
1036 wid.val = &index;
1045 int wilc_set_wep_default_keyid(struct wilc_vif *vif, u8 index)
1053 wid.val = &index;
1063 u8 index)
1078 wep_key->index = index;
1092 u8 index, u8 mode, enum authtype auth_type)
1117 wep_key->index = index;
1132 u8 mode, u8 cipher_mode, u8 index)
1151 key_buf->index = index;
1202 u8 index, u32 key_rsc_len, const u8 *key_rsc,
1221 gtk_key->index = index;
1340 int wilc_set_operation_mode(struct wilc_vif *vif, int index, u8 mode,
1352 drv.handler = cpu_to_le32(index);