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()
576 struct wid wid; in host_int_get_assoc_res_info() local
578 wid.id = WID_ASSOC_RES_INFO; in host_int_get_assoc_res_info()
579 wid.type = WID_STR; in host_int_get_assoc_res_info()
580 wid.val = assoc_resp_info; in host_int_get_assoc_res_info()
581 wid.size = max_assoc_resp_info_len; in host_int_get_assoc_res_info()
583 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in host_int_get_assoc_res_info()
590 *rcvd_assoc_resp_info_len = wid.size; in host_int_get_assoc_res_info()
724 struct wid wid; in wilc_disconnect() local
731 wid.id = WID_DISCONNECT; in wilc_disconnect()
732 wid.type = WID_CHAR; in wilc_disconnect()
733 wid.val = (s8 *)&dummy_reason_code; in wilc_disconnect()
734 wid.size = sizeof(char); in wilc_disconnect()
736 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_disconnect()
775 struct wid wid_list[5]; in wilc_get_statistics()
868 struct wid wid; in handle_remain_on_chan() local
881 wid.id = WID_REMAIN_ON_CHAN; in handle_remain_on_chan()
882 wid.type = WID_STR; in handle_remain_on_chan()
883 wid.size = 2; in handle_remain_on_chan()
884 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_remain_on_chan()
885 if (!wid.val) in handle_remain_on_chan()
888 wid.val[0] = remain_on_chan_flag; in handle_remain_on_chan()
889 wid.val[1] = (s8)hif_remain_ch->ch; in handle_remain_on_chan()
891 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_remain_on_chan()
892 kfree(wid.val); in handle_remain_on_chan()
908 struct wid wid; in wilc_handle_roc_expired() local
914 wid.id = WID_REMAIN_ON_CHAN; in wilc_handle_roc_expired()
915 wid.type = WID_STR; in wilc_handle_roc_expired()
916 wid.size = 2; in wilc_handle_roc_expired()
918 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_handle_roc_expired()
919 if (!wid.val) in wilc_handle_roc_expired()
922 wid.val[0] = remain_on_chan_flag; in wilc_handle_roc_expired()
923 wid.val[1] = WILC_FALSE_FRMWR_CHANNEL; in wilc_handle_roc_expired()
925 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_handle_roc_expired()
926 kfree(wid.val); in wilc_handle_roc_expired()
980 struct wid wid; in handle_set_mcast_filter() local
983 wid.id = WID_SETUP_MULTICAST_FILTER; in handle_set_mcast_filter()
984 wid.type = WID_BIN; in handle_set_mcast_filter()
985 wid.size = sizeof(struct wilc_set_multicast) + (set_mc->cnt * ETH_ALEN); in handle_set_mcast_filter()
986 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_set_mcast_filter()
987 if (!wid.val) in handle_set_mcast_filter()
990 cur_byte = wid.val; in handle_set_mcast_filter()
1000 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_set_mcast_filter()
1006 kfree(wid.val); in handle_set_mcast_filter()
1013 struct wid wid; in wilc_set_wowlan_trigger() local
1019 wid.id = WID_WOWLAN_TRIGGER; in wilc_set_wowlan_trigger()
1020 wid.type = WID_CHAR; in wilc_set_wowlan_trigger()
1021 wid.val = &wowlan_trigger; in wilc_set_wowlan_trigger()
1022 wid.size = sizeof(char); in wilc_set_wowlan_trigger()
1024 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_wowlan_trigger()
1033 struct wid wid; in wilc_set_external_auth_param() local
1036 wid.id = WID_EXTERNAL_AUTH_PARAM; in wilc_set_external_auth_param()
1037 wid.type = WID_BIN_DATA; in wilc_set_external_auth_param()
1038 wid.size = sizeof(*param); in wilc_set_external_auth_param()
1043 wid.val = (u8 *)param; in wilc_set_external_auth_param()
1048 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_external_auth_param()
1114 struct wid wid_list[2]; in wilc_add_ptk()
1147 struct wid wid; in wilc_add_ptk() local
1166 wid.id = WID_ADD_PTK; in wilc_add_ptk()
1167 wid.type = WID_STR; in wilc_add_ptk()
1168 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_ptk()
1169 wid.val = (s8 *)key_buf; in wilc_add_ptk()
1170 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_ptk()
1182 struct wid wid; in wilc_add_igtk() local
1197 wid.id = WID_ADD_IGTK; in wilc_add_igtk()
1198 wid.type = WID_STR; in wilc_add_igtk()
1199 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_igtk()
1200 wid.val = (s8 *)key_buf; in wilc_add_igtk()
1201 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_igtk()
1239 struct wid wid_list[2]; in wilc_add_rx_gtk()
1254 struct wid wid; in wilc_add_rx_gtk() local
1256 wid.id = WID_ADD_RX_GTK; in wilc_add_rx_gtk()
1257 wid.type = WID_STR; in wilc_add_rx_gtk()
1258 wid.size = sizeof(*gtk_key) + t_key_len; in wilc_add_rx_gtk()
1259 wid.val = (u8 *)gtk_key; in wilc_add_rx_gtk()
1260 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_rx_gtk()
1269 struct wid wid; in wilc_set_pmkid_info() local
1271 wid.id = WID_PMKID_INFO; in wilc_set_pmkid_info()
1272 wid.type = WID_STR; in wilc_set_pmkid_info()
1273 wid.size = (pmkid->numpmkid * sizeof(struct wilc_pmkid)) + 1; in wilc_set_pmkid_info()
1274 wid.val = (u8 *)pmkid; in wilc_set_pmkid_info()
1276 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_pmkid_info()
1282 struct wid wid; in wilc_get_mac_address() local
1284 wid.id = WID_MAC_ADDR; in wilc_get_mac_address()
1285 wid.type = WID_STR; in wilc_get_mac_address()
1286 wid.size = ETH_ALEN; in wilc_get_mac_address()
1287 wid.val = mac_addr; in wilc_get_mac_address()
1289 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_mac_address()
1298 struct wid wid; in wilc_set_mac_address() local
1301 wid.id = WID_MAC_ADDR; in wilc_set_mac_address()
1302 wid.type = WID_STR; in wilc_set_mac_address()
1303 wid.size = ETH_ALEN; in wilc_set_mac_address()
1304 wid.val = mac_addr; in wilc_set_mac_address()
1306 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_address()
1348 struct wid wid; in wilc_set_mac_chnl_num() local
1351 wid.id = WID_CURRENT_CHANNEL; in wilc_set_mac_chnl_num()
1352 wid.type = WID_CHAR; in wilc_set_mac_chnl_num()
1353 wid.size = sizeof(char); in wilc_set_mac_chnl_num()
1354 wid.val = &channel; in wilc_set_mac_chnl_num()
1356 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_chnl_num()
1366 struct wid wid; in wilc_set_operation_mode() local
1370 wid.id = WID_SET_OPERATION_MODE; in wilc_set_operation_mode()
1371 wid.type = WID_STR; in wilc_set_operation_mode()
1372 wid.size = sizeof(drv); in wilc_set_operation_mode()
1373 wid.val = (u8 *)&drv; in wilc_set_operation_mode()
1378 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_operation_mode()
1387 struct wid wid; in wilc_get_inactive_time() local
1390 wid.id = WID_SET_STA_MAC_INACTIVE_TIME; in wilc_get_inactive_time()
1391 wid.type = WID_STR; in wilc_get_inactive_time()
1392 wid.size = ETH_ALEN; in wilc_get_inactive_time()
1393 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_get_inactive_time()
1394 if (!wid.val) in wilc_get_inactive_time()
1397 ether_addr_copy(wid.val, mac); in wilc_get_inactive_time()
1398 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_get_inactive_time()
1399 kfree(wid.val); in wilc_get_inactive_time()
1405 wid.id = WID_GET_INACTIVE_TIME; in wilc_get_inactive_time()
1406 wid.type = WID_INT; in wilc_get_inactive_time()
1407 wid.val = (s8 *)out_val; in wilc_get_inactive_time()
1408 wid.size = sizeof(u32); in wilc_get_inactive_time()
1409 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_inactive_time()
1418 struct wid wid; in wilc_get_rssi() local
1426 wid.id = WID_RSSI; in wilc_get_rssi()
1427 wid.type = WID_CHAR; in wilc_get_rssi()
1428 wid.size = sizeof(char); in wilc_get_rssi()
1429 wid.val = rssi_level; in wilc_get_rssi()
1430 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_rssi()
1460 struct wid wid_list[4]; in wilc_hif_set_cfg()
1722 struct wid wid; in wilc_frame_register() local
1726 wid.id = WID_REGISTER_FRAME; in wilc_frame_register()
1727 wid.type = WID_STR; in wilc_frame_register()
1728 wid.size = sizeof(reg_frame); in wilc_frame_register()
1729 wid.val = (u8 *)&reg_frame; in wilc_frame_register()
1753 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_frame_register()
1761 struct wid wid; in wilc_add_beacon() local
1765 wid.id = WID_ADD_BEACON; in wilc_add_beacon()
1766 wid.type = WID_BIN; in wilc_add_beacon()
1767 wid.size = params->head_len + params->tail_len + 16; in wilc_add_beacon()
1768 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_add_beacon()
1769 if (!wid.val) in wilc_add_beacon()
1772 cur_byte = wid.val; in wilc_add_beacon()
1790 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_beacon()
1794 kfree(wid.val); in wilc_add_beacon()
1802 struct wid wid; in wilc_del_beacon() local
1805 wid.id = WID_DEL_BEACON; in wilc_del_beacon()
1806 wid.type = WID_CHAR; in wilc_del_beacon()
1807 wid.size = sizeof(char); in wilc_del_beacon()
1808 wid.val = &del_beacon; in wilc_del_beacon()
1810 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_beacon()
1820 struct wid wid; in wilc_add_station() local
1824 wid.id = WID_ADD_STA; in wilc_add_station()
1825 wid.type = WID_BIN; in wilc_add_station()
1826 wid.size = WILC_ADD_STA_LENGTH + in wilc_add_station()
1828 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_add_station()
1829 if (!wid.val) in wilc_add_station()
1832 cur_byte = wid.val; in wilc_add_station()
1835 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_station()
1839 kfree(wid.val); in wilc_add_station()
1846 struct wid wid; in wilc_del_station() local
1849 wid.id = WID_REMOVE_STA; in wilc_del_station()
1850 wid.type = WID_BIN; in wilc_del_station()
1851 wid.size = ETH_ALEN; in wilc_del_station()
1852 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_del_station()
1853 if (!wid.val) in wilc_del_station()
1857 eth_broadcast_addr(wid.val); in wilc_del_station()
1859 ether_addr_copy(wid.val, mac_addr); in wilc_del_station()
1861 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_station()
1865 kfree(wid.val); in wilc_del_station()
1872 struct wid wid; in wilc_del_allstation() local
1891 wid.id = WID_DEL_ALL_STA; in wilc_del_allstation()
1892 wid.type = WID_STR; in wilc_del_allstation()
1893 wid.size = (assoc_sta * ETH_ALEN) + 1; in wilc_del_allstation()
1894 wid.val = (u8 *)&del_sta; in wilc_del_allstation()
1896 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_allstation()
1906 struct wid wid; in wilc_edit_station() local
1910 wid.id = WID_EDIT_STA; in wilc_edit_station()
1911 wid.type = WID_BIN; in wilc_edit_station()
1912 wid.size = WILC_ADD_STA_LENGTH + in wilc_edit_station()
1914 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_edit_station()
1915 if (!wid.val) in wilc_edit_station()
1918 cur_byte = wid.val; in wilc_edit_station()
1921 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_edit_station()
1925 kfree(wid.val); in wilc_edit_station()
1932 struct wid wid; in wilc_set_power_mgmt() local
1941 wid.id = WID_POWER_MANAGEMENT; in wilc_set_power_mgmt()
1942 wid.val = &power_mode; in wilc_set_power_mgmt()
1943 wid.size = sizeof(char); in wilc_set_power_mgmt()
1944 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_power_mgmt()
1977 struct wid wid; in wilc_set_tx_power() local
1979 wid.id = WID_TX_POWER; in wilc_set_tx_power()
1980 wid.type = WID_CHAR; in wilc_set_tx_power()
1981 wid.val = &tx_power; in wilc_set_tx_power()
1982 wid.size = sizeof(char); in wilc_set_tx_power()
1984 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_tx_power()
1989 struct wid wid; in wilc_get_tx_power() local
1991 wid.id = WID_TX_POWER; in wilc_get_tx_power()
1992 wid.type = WID_CHAR; in wilc_get_tx_power()
1993 wid.val = tx_power; in wilc_get_tx_power()
1994 wid.size = sizeof(char); in wilc_get_tx_power()
1996 return wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_tx_power()
2001 struct wid wid; in wilc_set_default_mgmt_key_index() local
2004 wid.id = WID_DEFAULT_MGMT_KEY_ID; in wilc_set_default_mgmt_key_index()
2005 wid.type = WID_CHAR; in wilc_set_default_mgmt_key_index()
2006 wid.size = sizeof(char); in wilc_set_default_mgmt_key_index()
2007 wid.val = &index; in wilc_set_default_mgmt_key_index()
2008 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_default_mgmt_key_index()