Lines Matching refs:wid

122 	struct wid wid;  in handle_scan_done()  local
128 wid.id = WID_ABORT_RUNNING_SCAN; in handle_scan_done()
129 wid.type = WID_CHAR; in handle_scan_done()
130 wid.val = (s8 *)&abort_running_scan; in handle_scan_done()
131 wid.size = sizeof(char); in handle_scan_done()
133 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_scan_done()
161 struct wid wid_list[WILC_SCAN_WID_LIST_SIZE]; in wilc_scan()
274 struct wid wid_list[5]; in wilc_send_connect_wid()
337 struct wid wid; in handle_connect_timeout() local
357 wid.id = WID_DISCONNECT; in handle_connect_timeout()
358 wid.type = WID_CHAR; in handle_connect_timeout()
359 wid.val = (s8 *)&dummy_reason_code; in handle_connect_timeout()
360 wid.size = sizeof(char); in handle_connect_timeout()
362 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_connect_timeout()
561 struct wid wid; in host_int_get_assoc_res_info() local
563 wid.id = WID_ASSOC_RES_INFO; in host_int_get_assoc_res_info()
564 wid.type = WID_STR; in host_int_get_assoc_res_info()
565 wid.val = assoc_resp_info; in host_int_get_assoc_res_info()
566 wid.size = max_assoc_resp_info_len; in host_int_get_assoc_res_info()
568 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in host_int_get_assoc_res_info()
575 *rcvd_assoc_resp_info_len = wid.size; in host_int_get_assoc_res_info()
709 struct wid wid; in wilc_disconnect() local
716 wid.id = WID_DISCONNECT; in wilc_disconnect()
717 wid.type = WID_CHAR; in wilc_disconnect()
718 wid.val = (s8 *)&dummy_reason_code; in wilc_disconnect()
719 wid.size = sizeof(char); in wilc_disconnect()
721 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_disconnect()
760 struct wid wid_list[5]; in wilc_get_statistics()
853 struct wid wid; in handle_remain_on_chan() local
866 wid.id = WID_REMAIN_ON_CHAN; in handle_remain_on_chan()
867 wid.type = WID_STR; in handle_remain_on_chan()
868 wid.size = 2; in handle_remain_on_chan()
869 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_remain_on_chan()
870 if (!wid.val) in handle_remain_on_chan()
873 wid.val[0] = remain_on_chan_flag; in handle_remain_on_chan()
874 wid.val[1] = (s8)hif_remain_ch->ch; in handle_remain_on_chan()
876 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_remain_on_chan()
877 kfree(wid.val); in handle_remain_on_chan()
893 struct wid wid; in wilc_handle_roc_expired() local
899 wid.id = WID_REMAIN_ON_CHAN; in wilc_handle_roc_expired()
900 wid.type = WID_STR; in wilc_handle_roc_expired()
901 wid.size = 2; in wilc_handle_roc_expired()
903 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_handle_roc_expired()
904 if (!wid.val) in wilc_handle_roc_expired()
907 wid.val[0] = remain_on_chan_flag; in wilc_handle_roc_expired()
908 wid.val[1] = WILC_FALSE_FRMWR_CHANNEL; in wilc_handle_roc_expired()
910 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_handle_roc_expired()
911 kfree(wid.val); in wilc_handle_roc_expired()
965 struct wid wid; in handle_set_mcast_filter() local
968 wid.id = WID_SETUP_MULTICAST_FILTER; in handle_set_mcast_filter()
969 wid.type = WID_BIN; in handle_set_mcast_filter()
970 wid.size = sizeof(struct wilc_set_multicast) + (set_mc->cnt * ETH_ALEN); in handle_set_mcast_filter()
971 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_set_mcast_filter()
972 if (!wid.val) in handle_set_mcast_filter()
975 cur_byte = wid.val; in handle_set_mcast_filter()
985 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_set_mcast_filter()
991 kfree(wid.val); in handle_set_mcast_filter()
998 struct wid wid; in wilc_set_wowlan_trigger() local
1004 wid.id = WID_WOWLAN_TRIGGER; in wilc_set_wowlan_trigger()
1005 wid.type = WID_CHAR; in wilc_set_wowlan_trigger()
1006 wid.val = &wowlan_trigger; in wilc_set_wowlan_trigger()
1007 wid.size = sizeof(char); in wilc_set_wowlan_trigger()
1009 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_wowlan_trigger()
1018 struct wid wid; in wilc_set_external_auth_param() local
1021 wid.id = WID_EXTERNAL_AUTH_PARAM; in wilc_set_external_auth_param()
1022 wid.type = WID_BIN_DATA; in wilc_set_external_auth_param()
1023 wid.size = sizeof(*param); in wilc_set_external_auth_param()
1028 wid.val = (u8 *)param; in wilc_set_external_auth_param()
1033 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_external_auth_param()
1099 struct wid wid_list[2]; in wilc_add_ptk()
1132 struct wid wid; in wilc_add_ptk() local
1151 wid.id = WID_ADD_PTK; in wilc_add_ptk()
1152 wid.type = WID_STR; in wilc_add_ptk()
1153 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_ptk()
1154 wid.val = (s8 *)key_buf; in wilc_add_ptk()
1155 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_ptk()
1167 struct wid wid; in wilc_add_igtk() local
1182 wid.id = WID_ADD_IGTK; in wilc_add_igtk()
1183 wid.type = WID_STR; in wilc_add_igtk()
1184 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_igtk()
1185 wid.val = (s8 *)key_buf; in wilc_add_igtk()
1186 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_igtk()
1224 struct wid wid_list[2]; in wilc_add_rx_gtk()
1239 struct wid wid; in wilc_add_rx_gtk() local
1241 wid.id = WID_ADD_RX_GTK; in wilc_add_rx_gtk()
1242 wid.type = WID_STR; in wilc_add_rx_gtk()
1243 wid.size = sizeof(*gtk_key) + t_key_len; in wilc_add_rx_gtk()
1244 wid.val = (u8 *)gtk_key; in wilc_add_rx_gtk()
1245 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_rx_gtk()
1254 struct wid wid; in wilc_set_pmkid_info() local
1256 wid.id = WID_PMKID_INFO; in wilc_set_pmkid_info()
1257 wid.type = WID_STR; in wilc_set_pmkid_info()
1258 wid.size = (pmkid->numpmkid * sizeof(struct wilc_pmkid)) + 1; in wilc_set_pmkid_info()
1259 wid.val = (u8 *)pmkid; in wilc_set_pmkid_info()
1261 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_pmkid_info()
1267 struct wid wid; in wilc_get_mac_address() local
1269 wid.id = WID_MAC_ADDR; in wilc_get_mac_address()
1270 wid.type = WID_STR; in wilc_get_mac_address()
1271 wid.size = ETH_ALEN; in wilc_get_mac_address()
1272 wid.val = mac_addr; in wilc_get_mac_address()
1274 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_mac_address()
1283 struct wid wid; in wilc_set_mac_address() local
1286 wid.id = WID_MAC_ADDR; in wilc_set_mac_address()
1287 wid.type = WID_STR; in wilc_set_mac_address()
1288 wid.size = ETH_ALEN; in wilc_set_mac_address()
1289 wid.val = mac_addr; in wilc_set_mac_address()
1291 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_address()
1333 struct wid wid; in wilc_set_mac_chnl_num() local
1336 wid.id = WID_CURRENT_CHANNEL; in wilc_set_mac_chnl_num()
1337 wid.type = WID_CHAR; in wilc_set_mac_chnl_num()
1338 wid.size = sizeof(char); in wilc_set_mac_chnl_num()
1339 wid.val = &channel; in wilc_set_mac_chnl_num()
1341 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_chnl_num()
1351 struct wid wid; in wilc_set_operation_mode() local
1355 wid.id = WID_SET_OPERATION_MODE; in wilc_set_operation_mode()
1356 wid.type = WID_STR; in wilc_set_operation_mode()
1357 wid.size = sizeof(drv); in wilc_set_operation_mode()
1358 wid.val = (u8 *)&drv; in wilc_set_operation_mode()
1363 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_operation_mode()
1372 struct wid wid; in wilc_get_inactive_time() local
1375 wid.id = WID_SET_STA_MAC_INACTIVE_TIME; in wilc_get_inactive_time()
1376 wid.type = WID_STR; in wilc_get_inactive_time()
1377 wid.size = ETH_ALEN; in wilc_get_inactive_time()
1378 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_get_inactive_time()
1379 if (!wid.val) in wilc_get_inactive_time()
1382 ether_addr_copy(wid.val, mac); in wilc_get_inactive_time()
1383 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_get_inactive_time()
1384 kfree(wid.val); in wilc_get_inactive_time()
1390 wid.id = WID_GET_INACTIVE_TIME; in wilc_get_inactive_time()
1391 wid.type = WID_INT; in wilc_get_inactive_time()
1392 wid.val = (s8 *)out_val; in wilc_get_inactive_time()
1393 wid.size = sizeof(u32); in wilc_get_inactive_time()
1394 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_inactive_time()
1403 struct wid wid; in wilc_get_rssi() local
1411 wid.id = WID_RSSI; in wilc_get_rssi()
1412 wid.type = WID_CHAR; in wilc_get_rssi()
1413 wid.size = sizeof(char); in wilc_get_rssi()
1414 wid.val = rssi_level; in wilc_get_rssi()
1415 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_rssi()
1445 struct wid wid_list[4]; in wilc_hif_set_cfg()
1707 struct wid wid; in wilc_frame_register() local
1711 wid.id = WID_REGISTER_FRAME; in wilc_frame_register()
1712 wid.type = WID_STR; in wilc_frame_register()
1713 wid.size = sizeof(reg_frame); in wilc_frame_register()
1714 wid.val = (u8 *)&reg_frame; in wilc_frame_register()
1738 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_frame_register()
1746 struct wid wid; in wilc_add_beacon() local
1750 wid.id = WID_ADD_BEACON; in wilc_add_beacon()
1751 wid.type = WID_BIN; in wilc_add_beacon()
1752 wid.size = params->head_len + params->tail_len + 16; in wilc_add_beacon()
1753 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_add_beacon()
1754 if (!wid.val) in wilc_add_beacon()
1757 cur_byte = wid.val; in wilc_add_beacon()
1775 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_beacon()
1779 kfree(wid.val); in wilc_add_beacon()
1787 struct wid wid; in wilc_del_beacon() local
1790 wid.id = WID_DEL_BEACON; in wilc_del_beacon()
1791 wid.type = WID_CHAR; in wilc_del_beacon()
1792 wid.size = sizeof(char); in wilc_del_beacon()
1793 wid.val = &del_beacon; in wilc_del_beacon()
1795 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_beacon()
1805 struct wid wid; in wilc_add_station() local
1809 wid.id = WID_ADD_STA; in wilc_add_station()
1810 wid.type = WID_BIN; in wilc_add_station()
1811 wid.size = WILC_ADD_STA_LENGTH + in wilc_add_station()
1813 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_add_station()
1814 if (!wid.val) in wilc_add_station()
1817 cur_byte = wid.val; in wilc_add_station()
1820 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_station()
1824 kfree(wid.val); in wilc_add_station()
1831 struct wid wid; in wilc_del_station() local
1834 wid.id = WID_REMOVE_STA; in wilc_del_station()
1835 wid.type = WID_BIN; in wilc_del_station()
1836 wid.size = ETH_ALEN; in wilc_del_station()
1837 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_del_station()
1838 if (!wid.val) in wilc_del_station()
1842 eth_broadcast_addr(wid.val); in wilc_del_station()
1844 ether_addr_copy(wid.val, mac_addr); in wilc_del_station()
1846 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_station()
1850 kfree(wid.val); in wilc_del_station()
1857 struct wid wid; in wilc_del_allstation() local
1876 wid.id = WID_DEL_ALL_STA; in wilc_del_allstation()
1877 wid.type = WID_STR; in wilc_del_allstation()
1878 wid.size = (assoc_sta * ETH_ALEN) + 1; in wilc_del_allstation()
1879 wid.val = (u8 *)&del_sta; in wilc_del_allstation()
1881 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_allstation()
1891 struct wid wid; in wilc_edit_station() local
1895 wid.id = WID_EDIT_STA; in wilc_edit_station()
1896 wid.type = WID_BIN; in wilc_edit_station()
1897 wid.size = WILC_ADD_STA_LENGTH + in wilc_edit_station()
1899 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_edit_station()
1900 if (!wid.val) in wilc_edit_station()
1903 cur_byte = wid.val; in wilc_edit_station()
1906 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_edit_station()
1910 kfree(wid.val); in wilc_edit_station()
1917 struct wid wid; in wilc_set_power_mgmt() local
1926 wid.id = WID_POWER_MANAGEMENT; in wilc_set_power_mgmt()
1927 wid.val = &power_mode; in wilc_set_power_mgmt()
1928 wid.size = sizeof(char); in wilc_set_power_mgmt()
1929 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_power_mgmt()
1962 struct wid wid; in wilc_set_tx_power() local
1964 wid.id = WID_TX_POWER; in wilc_set_tx_power()
1965 wid.type = WID_CHAR; in wilc_set_tx_power()
1966 wid.val = &tx_power; in wilc_set_tx_power()
1967 wid.size = sizeof(char); in wilc_set_tx_power()
1969 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_tx_power()
1974 struct wid wid; in wilc_get_tx_power() local
1976 wid.id = WID_TX_POWER; in wilc_get_tx_power()
1977 wid.type = WID_CHAR; in wilc_get_tx_power()
1978 wid.val = tx_power; in wilc_get_tx_power()
1979 wid.size = sizeof(char); in wilc_get_tx_power()
1981 return wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_tx_power()
1986 struct wid wid; in wilc_set_default_mgmt_key_index() local
1989 wid.id = WID_DEFAULT_MGMT_KEY_ID; in wilc_set_default_mgmt_key_index()
1990 wid.type = WID_CHAR; in wilc_set_default_mgmt_key_index()
1991 wid.size = sizeof(char); in wilc_set_default_mgmt_key_index()
1992 wid.val = &index; in wilc_set_default_mgmt_key_index()
1993 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_default_mgmt_key_index()