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()
162 struct wid wid_list[WILC_SCAN_WID_LIST_SIZE]; in wilc_scan()
276 struct wid wid_list[5]; in wilc_send_connect_wid()
339 struct wid wid; in handle_connect_timeout() local
359 wid.id = WID_DISCONNECT; in handle_connect_timeout()
360 wid.type = WID_CHAR; in handle_connect_timeout()
361 wid.val = (s8 *)&dummy_reason_code; in handle_connect_timeout()
362 wid.size = sizeof(char); in handle_connect_timeout()
364 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_connect_timeout()
579 struct wid wid; in host_int_get_assoc_res_info() local
581 wid.id = WID_ASSOC_RES_INFO; in host_int_get_assoc_res_info()
582 wid.type = WID_STR; in host_int_get_assoc_res_info()
583 wid.val = assoc_resp_info; in host_int_get_assoc_res_info()
584 wid.size = max_assoc_resp_info_len; in host_int_get_assoc_res_info()
586 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in host_int_get_assoc_res_info()
593 *rcvd_assoc_resp_info_len = wid.size; in host_int_get_assoc_res_info()
727 struct wid wid; in wilc_disconnect() local
734 wid.id = WID_DISCONNECT; in wilc_disconnect()
735 wid.type = WID_CHAR; in wilc_disconnect()
736 wid.val = (s8 *)&dummy_reason_code; in wilc_disconnect()
737 wid.size = sizeof(char); in wilc_disconnect()
739 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_disconnect()
778 struct wid wid_list[5]; in wilc_get_statistics()
871 struct wid wid; in handle_remain_on_chan() local
884 wid.id = WID_REMAIN_ON_CHAN; in handle_remain_on_chan()
885 wid.type = WID_STR; in handle_remain_on_chan()
886 wid.size = 2; in handle_remain_on_chan()
887 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_remain_on_chan()
888 if (!wid.val) in handle_remain_on_chan()
891 wid.val[0] = remain_on_chan_flag; in handle_remain_on_chan()
892 wid.val[1] = (s8)hif_remain_ch->ch; in handle_remain_on_chan()
894 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_remain_on_chan()
895 kfree(wid.val); in handle_remain_on_chan()
911 struct wid wid; in wilc_handle_roc_expired() local
917 wid.id = WID_REMAIN_ON_CHAN; in wilc_handle_roc_expired()
918 wid.type = WID_STR; in wilc_handle_roc_expired()
919 wid.size = 2; in wilc_handle_roc_expired()
921 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_handle_roc_expired()
922 if (!wid.val) in wilc_handle_roc_expired()
925 wid.val[0] = remain_on_chan_flag; in wilc_handle_roc_expired()
926 wid.val[1] = WILC_FALSE_FRMWR_CHANNEL; in wilc_handle_roc_expired()
928 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_handle_roc_expired()
929 kfree(wid.val); in wilc_handle_roc_expired()
983 struct wid wid; in handle_set_mcast_filter() local
986 wid.id = WID_SETUP_MULTICAST_FILTER; in handle_set_mcast_filter()
987 wid.type = WID_BIN; in handle_set_mcast_filter()
988 wid.size = sizeof(struct wilc_set_multicast) + (set_mc->cnt * ETH_ALEN); in handle_set_mcast_filter()
989 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_set_mcast_filter()
990 if (!wid.val) in handle_set_mcast_filter()
993 cur_byte = wid.val; in handle_set_mcast_filter()
1003 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_set_mcast_filter()
1009 kfree(wid.val); in handle_set_mcast_filter()
1016 struct wid wid; in wilc_set_wowlan_trigger() local
1022 wid.id = WID_WOWLAN_TRIGGER; in wilc_set_wowlan_trigger()
1023 wid.type = WID_CHAR; in wilc_set_wowlan_trigger()
1024 wid.val = &wowlan_trigger; in wilc_set_wowlan_trigger()
1025 wid.size = sizeof(char); in wilc_set_wowlan_trigger()
1027 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_wowlan_trigger()
1036 struct wid wid; in wilc_set_external_auth_param() local
1039 wid.id = WID_EXTERNAL_AUTH_PARAM; in wilc_set_external_auth_param()
1040 wid.type = WID_BIN_DATA; in wilc_set_external_auth_param()
1041 wid.size = sizeof(*param); in wilc_set_external_auth_param()
1046 wid.val = (u8 *)param; in wilc_set_external_auth_param()
1051 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_external_auth_param()
1117 struct wid wid_list[2]; in wilc_add_ptk()
1150 struct wid wid; in wilc_add_ptk() local
1169 wid.id = WID_ADD_PTK; in wilc_add_ptk()
1170 wid.type = WID_STR; in wilc_add_ptk()
1171 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_ptk()
1172 wid.val = (s8 *)key_buf; in wilc_add_ptk()
1173 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_ptk()
1185 struct wid wid; in wilc_add_igtk() local
1200 wid.id = WID_ADD_IGTK; in wilc_add_igtk()
1201 wid.type = WID_STR; in wilc_add_igtk()
1202 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_igtk()
1203 wid.val = (s8 *)key_buf; in wilc_add_igtk()
1204 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_igtk()
1242 struct wid wid_list[2]; in wilc_add_rx_gtk()
1257 struct wid wid; in wilc_add_rx_gtk() local
1259 wid.id = WID_ADD_RX_GTK; in wilc_add_rx_gtk()
1260 wid.type = WID_STR; in wilc_add_rx_gtk()
1261 wid.size = sizeof(*gtk_key) + t_key_len; in wilc_add_rx_gtk()
1262 wid.val = (u8 *)gtk_key; in wilc_add_rx_gtk()
1263 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_rx_gtk()
1272 struct wid wid; in wilc_set_pmkid_info() local
1274 wid.id = WID_PMKID_INFO; in wilc_set_pmkid_info()
1275 wid.type = WID_STR; in wilc_set_pmkid_info()
1276 wid.size = (pmkid->numpmkid * sizeof(struct wilc_pmkid)) + 1; in wilc_set_pmkid_info()
1277 wid.val = (u8 *)pmkid; in wilc_set_pmkid_info()
1279 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_pmkid_info()
1285 struct wid wid; in wilc_get_mac_address() local
1287 wid.id = WID_MAC_ADDR; in wilc_get_mac_address()
1288 wid.type = WID_STR; in wilc_get_mac_address()
1289 wid.size = ETH_ALEN; in wilc_get_mac_address()
1290 wid.val = mac_addr; in wilc_get_mac_address()
1292 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_mac_address()
1301 struct wid wid; in wilc_set_mac_address() local
1304 wid.id = WID_MAC_ADDR; in wilc_set_mac_address()
1305 wid.type = WID_STR; in wilc_set_mac_address()
1306 wid.size = ETH_ALEN; in wilc_set_mac_address()
1307 wid.val = (u8 *)mac_addr; in wilc_set_mac_address()
1309 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_address()
1351 struct wid wid; in wilc_set_mac_chnl_num() local
1354 wid.id = WID_CURRENT_CHANNEL; in wilc_set_mac_chnl_num()
1355 wid.type = WID_CHAR; in wilc_set_mac_chnl_num()
1356 wid.size = sizeof(char); in wilc_set_mac_chnl_num()
1357 wid.val = &channel; in wilc_set_mac_chnl_num()
1359 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_chnl_num()
1369 struct wid wid; in wilc_set_operation_mode() local
1373 wid.id = WID_SET_OPERATION_MODE; in wilc_set_operation_mode()
1374 wid.type = WID_STR; in wilc_set_operation_mode()
1375 wid.size = sizeof(drv); in wilc_set_operation_mode()
1376 wid.val = (u8 *)&drv; in wilc_set_operation_mode()
1381 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_operation_mode()
1390 struct wid wid; in wilc_get_inactive_time() local
1393 wid.id = WID_SET_STA_MAC_INACTIVE_TIME; in wilc_get_inactive_time()
1394 wid.type = WID_STR; in wilc_get_inactive_time()
1395 wid.size = ETH_ALEN; in wilc_get_inactive_time()
1396 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_get_inactive_time()
1397 if (!wid.val) in wilc_get_inactive_time()
1400 ether_addr_copy(wid.val, mac); in wilc_get_inactive_time()
1401 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_get_inactive_time()
1402 kfree(wid.val); in wilc_get_inactive_time()
1408 wid.id = WID_GET_INACTIVE_TIME; in wilc_get_inactive_time()
1409 wid.type = WID_INT; in wilc_get_inactive_time()
1410 wid.val = (s8 *)out_val; in wilc_get_inactive_time()
1411 wid.size = sizeof(u32); in wilc_get_inactive_time()
1412 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_inactive_time()
1421 struct wid wid; in wilc_get_rssi() local
1429 wid.id = WID_RSSI; in wilc_get_rssi()
1430 wid.type = WID_CHAR; in wilc_get_rssi()
1431 wid.size = sizeof(char); in wilc_get_rssi()
1432 wid.val = rssi_level; in wilc_get_rssi()
1433 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_rssi()
1463 struct wid wid_list[4]; in wilc_hif_set_cfg()
1728 struct wid wid; in wilc_frame_register() local
1732 wid.id = WID_REGISTER_FRAME; in wilc_frame_register()
1733 wid.type = WID_STR; in wilc_frame_register()
1734 wid.size = sizeof(reg_frame); in wilc_frame_register()
1735 wid.val = (u8 *)&reg_frame; in wilc_frame_register()
1759 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_frame_register()
1767 struct wid wid; in wilc_add_beacon() local
1771 wid.id = WID_ADD_BEACON; in wilc_add_beacon()
1772 wid.type = WID_BIN; in wilc_add_beacon()
1773 wid.size = params->head_len + params->tail_len + 16; in wilc_add_beacon()
1774 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_add_beacon()
1775 if (!wid.val) in wilc_add_beacon()
1778 cur_byte = wid.val; in wilc_add_beacon()
1796 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_beacon()
1800 kfree(wid.val); in wilc_add_beacon()
1808 struct wid wid; in wilc_del_beacon() local
1811 wid.id = WID_DEL_BEACON; in wilc_del_beacon()
1812 wid.type = WID_CHAR; in wilc_del_beacon()
1813 wid.size = sizeof(char); in wilc_del_beacon()
1814 wid.val = &del_beacon; in wilc_del_beacon()
1816 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_beacon()
1826 struct wid wid; in wilc_add_station() local
1830 wid.id = WID_ADD_STA; in wilc_add_station()
1831 wid.type = WID_BIN; in wilc_add_station()
1832 wid.size = WILC_ADD_STA_LENGTH + in wilc_add_station()
1834 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_add_station()
1835 if (!wid.val) in wilc_add_station()
1838 cur_byte = wid.val; in wilc_add_station()
1841 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_station()
1845 kfree(wid.val); in wilc_add_station()
1852 struct wid wid; in wilc_del_station() local
1855 wid.id = WID_REMOVE_STA; in wilc_del_station()
1856 wid.type = WID_BIN; in wilc_del_station()
1857 wid.size = ETH_ALEN; in wilc_del_station()
1858 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_del_station()
1859 if (!wid.val) in wilc_del_station()
1863 eth_broadcast_addr(wid.val); in wilc_del_station()
1865 ether_addr_copy(wid.val, mac_addr); in wilc_del_station()
1867 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_station()
1871 kfree(wid.val); in wilc_del_station()
1878 struct wid wid; in wilc_del_allstation() local
1897 wid.id = WID_DEL_ALL_STA; in wilc_del_allstation()
1898 wid.type = WID_STR; in wilc_del_allstation()
1899 wid.size = (assoc_sta * ETH_ALEN) + 1; in wilc_del_allstation()
1900 wid.val = (u8 *)&del_sta; in wilc_del_allstation()
1902 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_allstation()
1912 struct wid wid; in wilc_edit_station() local
1916 wid.id = WID_EDIT_STA; in wilc_edit_station()
1917 wid.type = WID_BIN; in wilc_edit_station()
1918 wid.size = WILC_ADD_STA_LENGTH + in wilc_edit_station()
1920 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_edit_station()
1921 if (!wid.val) in wilc_edit_station()
1924 cur_byte = wid.val; in wilc_edit_station()
1927 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_edit_station()
1931 kfree(wid.val); in wilc_edit_station()
1938 struct wid wid; in wilc_set_power_mgmt() local
1947 wid.id = WID_POWER_MANAGEMENT; in wilc_set_power_mgmt()
1948 wid.val = &power_mode; in wilc_set_power_mgmt()
1949 wid.size = sizeof(char); in wilc_set_power_mgmt()
1950 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_power_mgmt()
1983 struct wid wid; in wilc_set_tx_power() local
1985 wid.id = WID_TX_POWER; in wilc_set_tx_power()
1986 wid.type = WID_CHAR; in wilc_set_tx_power()
1987 wid.val = &tx_power; in wilc_set_tx_power()
1988 wid.size = sizeof(char); in wilc_set_tx_power()
1990 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_tx_power()
1995 struct wid wid; in wilc_get_tx_power() local
1997 wid.id = WID_TX_POWER; in wilc_get_tx_power()
1998 wid.type = WID_CHAR; in wilc_get_tx_power()
1999 wid.val = tx_power; in wilc_get_tx_power()
2000 wid.size = sizeof(char); in wilc_get_tx_power()
2002 return wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_tx_power()
2007 struct wid wid; in wilc_set_default_mgmt_key_index() local
2010 wid.id = WID_DEFAULT_MGMT_KEY_ID; in wilc_set_default_mgmt_key_index()
2011 wid.type = WID_CHAR; in wilc_set_default_mgmt_key_index()
2012 wid.size = sizeof(char); in wilc_set_default_mgmt_key_index()
2013 wid.val = &index; in wilc_set_default_mgmt_key_index()
2014 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_default_mgmt_key_index()