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[4]; in wilc_send_connect_wid()
327 struct wid wid; in handle_connect_timeout() local
347 wid.id = WID_DISCONNECT; in handle_connect_timeout()
348 wid.type = WID_CHAR; in handle_connect_timeout()
349 wid.val = (s8 *)&dummy_reason_code; in handle_connect_timeout()
350 wid.size = sizeof(char); in handle_connect_timeout()
352 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_connect_timeout()
540 struct wid wid; in host_int_get_assoc_res_info() local
542 wid.id = WID_ASSOC_RES_INFO; in host_int_get_assoc_res_info()
543 wid.type = WID_STR; in host_int_get_assoc_res_info()
544 wid.val = assoc_resp_info; in host_int_get_assoc_res_info()
545 wid.size = max_assoc_resp_info_len; in host_int_get_assoc_res_info()
547 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in host_int_get_assoc_res_info()
554 *rcvd_assoc_resp_info_len = wid.size; in host_int_get_assoc_res_info()
685 struct wid wid; in wilc_disconnect() local
692 wid.id = WID_DISCONNECT; in wilc_disconnect()
693 wid.type = WID_CHAR; in wilc_disconnect()
694 wid.val = (s8 *)&dummy_reason_code; in wilc_disconnect()
695 wid.size = sizeof(char); in wilc_disconnect()
697 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_disconnect()
735 struct wid wid_list[5]; in wilc_get_statistics()
828 struct wid wid; in handle_remain_on_chan() local
841 wid.id = WID_REMAIN_ON_CHAN; in handle_remain_on_chan()
842 wid.type = WID_STR; in handle_remain_on_chan()
843 wid.size = 2; in handle_remain_on_chan()
844 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_remain_on_chan()
845 if (!wid.val) in handle_remain_on_chan()
848 wid.val[0] = remain_on_chan_flag; in handle_remain_on_chan()
849 wid.val[1] = (s8)hif_remain_ch->ch; in handle_remain_on_chan()
851 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_remain_on_chan()
852 kfree(wid.val); in handle_remain_on_chan()
868 struct wid wid; in wilc_handle_roc_expired() local
874 wid.id = WID_REMAIN_ON_CHAN; in wilc_handle_roc_expired()
875 wid.type = WID_STR; in wilc_handle_roc_expired()
876 wid.size = 2; in wilc_handle_roc_expired()
878 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_handle_roc_expired()
879 if (!wid.val) in wilc_handle_roc_expired()
882 wid.val[0] = remain_on_chan_flag; in wilc_handle_roc_expired()
883 wid.val[1] = WILC_FALSE_FRMWR_CHANNEL; in wilc_handle_roc_expired()
885 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_handle_roc_expired()
886 kfree(wid.val); in wilc_handle_roc_expired()
940 struct wid wid; in handle_set_mcast_filter() local
943 wid.id = WID_SETUP_MULTICAST_FILTER; in handle_set_mcast_filter()
944 wid.type = WID_BIN; in handle_set_mcast_filter()
945 wid.size = sizeof(struct wilc_set_multicast) + (set_mc->cnt * ETH_ALEN); in handle_set_mcast_filter()
946 wid.val = kmalloc(wid.size, GFP_KERNEL); in handle_set_mcast_filter()
947 if (!wid.val) in handle_set_mcast_filter()
950 cur_byte = wid.val; in handle_set_mcast_filter()
960 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_set_mcast_filter()
966 kfree(wid.val); in handle_set_mcast_filter()
973 struct wid wid; in wilc_set_wowlan_trigger() local
979 wid.id = WID_WOWLAN_TRIGGER; in wilc_set_wowlan_trigger()
980 wid.type = WID_CHAR; in wilc_set_wowlan_trigger()
981 wid.val = &wowlan_trigger; in wilc_set_wowlan_trigger()
982 wid.size = sizeof(char); in wilc_set_wowlan_trigger()
984 ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_wowlan_trigger()
1043 struct wid wid; in wilc_remove_wep_key() local
1046 wid.id = WID_REMOVE_WEP_KEY; in wilc_remove_wep_key()
1047 wid.type = WID_STR; in wilc_remove_wep_key()
1048 wid.size = sizeof(char); in wilc_remove_wep_key()
1049 wid.val = &index; in wilc_remove_wep_key()
1051 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_remove_wep_key()
1060 struct wid wid; in wilc_set_wep_default_keyid() local
1063 wid.id = WID_KEY_ID; in wilc_set_wep_default_keyid()
1064 wid.type = WID_CHAR; in wilc_set_wep_default_keyid()
1065 wid.size = sizeof(char); in wilc_set_wep_default_keyid()
1066 wid.val = &index; in wilc_set_wep_default_keyid()
1067 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_wep_default_keyid()
1078 struct wid wid; in wilc_add_wep_key_bss_sta() local
1082 wid.id = WID_ADD_WEP_KEY; in wilc_add_wep_key_bss_sta()
1083 wid.type = WID_STR; in wilc_add_wep_key_bss_sta()
1084 wid.size = sizeof(*wep_key) + len; in wilc_add_wep_key_bss_sta()
1085 wep_key = kzalloc(wid.size, GFP_KERNEL); in wilc_add_wep_key_bss_sta()
1089 wid.val = (u8 *)wep_key; in wilc_add_wep_key_bss_sta()
1095 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_wep_key_bss_sta()
1107 struct wid wid_list[3]; in wilc_add_wep_key_bss_ap()
1151 struct wid wid_list[2]; in wilc_add_ptk()
1184 struct wid wid; in wilc_add_ptk() local
1203 wid.id = WID_ADD_PTK; in wilc_add_ptk()
1204 wid.type = WID_STR; in wilc_add_ptk()
1205 wid.size = sizeof(*key_buf) + t_key_len; in wilc_add_ptk()
1206 wid.val = (s8 *)key_buf; in wilc_add_ptk()
1207 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_ptk()
1246 struct wid wid_list[2]; in wilc_add_rx_gtk()
1261 struct wid wid; in wilc_add_rx_gtk() local
1263 wid.id = WID_ADD_RX_GTK; in wilc_add_rx_gtk()
1264 wid.type = WID_STR; in wilc_add_rx_gtk()
1265 wid.size = sizeof(*gtk_key) + t_key_len; in wilc_add_rx_gtk()
1266 wid.val = (u8 *)gtk_key; in wilc_add_rx_gtk()
1267 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_rx_gtk()
1276 struct wid wid; in wilc_set_pmkid_info() local
1278 wid.id = WID_PMKID_INFO; in wilc_set_pmkid_info()
1279 wid.type = WID_STR; in wilc_set_pmkid_info()
1280 wid.size = (pmkid->numpmkid * sizeof(struct wilc_pmkid)) + 1; in wilc_set_pmkid_info()
1281 wid.val = (u8 *)pmkid; in wilc_set_pmkid_info()
1283 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_pmkid_info()
1289 struct wid wid; in wilc_get_mac_address() local
1291 wid.id = WID_MAC_ADDR; in wilc_get_mac_address()
1292 wid.type = WID_STR; in wilc_get_mac_address()
1293 wid.size = ETH_ALEN; in wilc_get_mac_address()
1294 wid.val = mac_addr; in wilc_get_mac_address()
1296 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_mac_address()
1305 struct wid wid; in wilc_set_mac_address() local
1308 wid.id = WID_MAC_ADDR; in wilc_set_mac_address()
1309 wid.type = WID_STR; in wilc_set_mac_address()
1310 wid.size = ETH_ALEN; in wilc_set_mac_address()
1311 wid.val = mac_addr; in wilc_set_mac_address()
1313 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_address()
1355 struct wid wid; in wilc_set_mac_chnl_num() local
1358 wid.id = WID_CURRENT_CHANNEL; in wilc_set_mac_chnl_num()
1359 wid.type = WID_CHAR; in wilc_set_mac_chnl_num()
1360 wid.size = sizeof(char); in wilc_set_mac_chnl_num()
1361 wid.val = &channel; in wilc_set_mac_chnl_num()
1363 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_mac_chnl_num()
1373 struct wid wid; in wilc_set_operation_mode() local
1377 wid.id = WID_SET_OPERATION_MODE; in wilc_set_operation_mode()
1378 wid.type = WID_STR; in wilc_set_operation_mode()
1379 wid.size = sizeof(drv); in wilc_set_operation_mode()
1380 wid.val = (u8 *)&drv; in wilc_set_operation_mode()
1385 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_operation_mode()
1394 struct wid wid; in wilc_get_inactive_time() local
1397 wid.id = WID_SET_STA_MAC_INACTIVE_TIME; in wilc_get_inactive_time()
1398 wid.type = WID_STR; in wilc_get_inactive_time()
1399 wid.size = ETH_ALEN; in wilc_get_inactive_time()
1400 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_get_inactive_time()
1401 if (!wid.val) in wilc_get_inactive_time()
1404 ether_addr_copy(wid.val, mac); in wilc_get_inactive_time()
1405 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_get_inactive_time()
1406 kfree(wid.val); in wilc_get_inactive_time()
1412 wid.id = WID_GET_INACTIVE_TIME; in wilc_get_inactive_time()
1413 wid.type = WID_INT; in wilc_get_inactive_time()
1414 wid.val = (s8 *)out_val; in wilc_get_inactive_time()
1415 wid.size = sizeof(u32); in wilc_get_inactive_time()
1416 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_inactive_time()
1425 struct wid wid; in wilc_get_rssi() local
1433 wid.id = WID_RSSI; in wilc_get_rssi()
1434 wid.type = WID_CHAR; in wilc_get_rssi()
1435 wid.size = sizeof(char); in wilc_get_rssi()
1436 wid.val = rssi_level; in wilc_get_rssi()
1437 result = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_rssi()
1467 struct wid wid_list[4]; in wilc_hif_set_cfg()
1729 struct wid wid; in wilc_frame_register() local
1733 wid.id = WID_REGISTER_FRAME; in wilc_frame_register()
1734 wid.type = WID_STR; in wilc_frame_register()
1735 wid.size = sizeof(reg_frame); in wilc_frame_register()
1736 wid.val = (u8 *)&reg_frame; in wilc_frame_register()
1756 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_frame_register()
1764 struct wid wid; in wilc_add_beacon() local
1768 wid.id = WID_ADD_BEACON; in wilc_add_beacon()
1769 wid.type = WID_BIN; in wilc_add_beacon()
1770 wid.size = params->head_len + params->tail_len + 16; in wilc_add_beacon()
1771 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_add_beacon()
1772 if (!wid.val) in wilc_add_beacon()
1775 cur_byte = wid.val; in wilc_add_beacon()
1793 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_beacon()
1797 kfree(wid.val); in wilc_add_beacon()
1805 struct wid wid; in wilc_del_beacon() local
1808 wid.id = WID_DEL_BEACON; in wilc_del_beacon()
1809 wid.type = WID_CHAR; in wilc_del_beacon()
1810 wid.size = sizeof(char); in wilc_del_beacon()
1811 wid.val = &del_beacon; in wilc_del_beacon()
1813 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_beacon()
1823 struct wid wid; in wilc_add_station() local
1827 wid.id = WID_ADD_STA; in wilc_add_station()
1828 wid.type = WID_BIN; in wilc_add_station()
1829 wid.size = WILC_ADD_STA_LENGTH + params->supported_rates_len; in wilc_add_station()
1830 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_add_station()
1831 if (!wid.val) in wilc_add_station()
1834 cur_byte = wid.val; in wilc_add_station()
1837 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_add_station()
1841 kfree(wid.val); in wilc_add_station()
1848 struct wid wid; in wilc_del_station() local
1851 wid.id = WID_REMOVE_STA; in wilc_del_station()
1852 wid.type = WID_BIN; in wilc_del_station()
1853 wid.size = ETH_ALEN; in wilc_del_station()
1854 wid.val = kzalloc(wid.size, GFP_KERNEL); in wilc_del_station()
1855 if (!wid.val) in wilc_del_station()
1859 eth_broadcast_addr(wid.val); in wilc_del_station()
1861 ether_addr_copy(wid.val, mac_addr); in wilc_del_station()
1863 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_station()
1867 kfree(wid.val); in wilc_del_station()
1874 struct wid wid; in wilc_del_allstation() local
1893 wid.id = WID_DEL_ALL_STA; in wilc_del_allstation()
1894 wid.type = WID_STR; in wilc_del_allstation()
1895 wid.size = (assoc_sta * ETH_ALEN) + 1; in wilc_del_allstation()
1896 wid.val = (u8 *)&del_sta; in wilc_del_allstation()
1898 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_del_allstation()
1908 struct wid wid; in wilc_edit_station() local
1912 wid.id = WID_EDIT_STA; in wilc_edit_station()
1913 wid.type = WID_BIN; in wilc_edit_station()
1914 wid.size = WILC_ADD_STA_LENGTH + params->supported_rates_len; in wilc_edit_station()
1915 wid.val = kmalloc(wid.size, GFP_KERNEL); in wilc_edit_station()
1916 if (!wid.val) in wilc_edit_station()
1919 cur_byte = wid.val; in wilc_edit_station()
1922 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_edit_station()
1926 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()
1975 struct wid wid; in wilc_set_tx_power() local
1977 wid.id = WID_TX_POWER; in wilc_set_tx_power()
1978 wid.type = WID_CHAR; in wilc_set_tx_power()
1979 wid.val = &tx_power; in wilc_set_tx_power()
1980 wid.size = sizeof(char); in wilc_set_tx_power()
1982 return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in wilc_set_tx_power()
1987 struct wid wid; in wilc_get_tx_power() local
1989 wid.id = WID_TX_POWER; in wilc_get_tx_power()
1990 wid.type = WID_CHAR; in wilc_get_tx_power()
1991 wid.val = tx_power; in wilc_get_tx_power()
1992 wid.size = sizeof(char); in wilc_get_tx_power()
1994 return wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1); in wilc_get_tx_power()