Lines Matching defs:dhd

35 #include <dhd.h>
70 extern void htsf_update(struct dhd_info *dhd, void *data);
95 extern int dhd_change_mtu(dhd_pub_t *dhd, int new_mtu, int ifidx);
97 extern int dhd_get_concurrent_capabilites(dhd_pub_t *dhd);
475 /* The dhd application queries the driver to check if its usb or sdio. */
908 "dhd version:%d dongle version:%d]\n",
1040 /* dhd already has created an interface by default, for 0 */
1214 dhd_pktfilter_offload_enable(dhd_pub_t * dhd, char *arg, int enable, int master_mode)
1230 if (!(arg_save = MALLOC(dhd->osh, strlen(arg) + 1))) {
1265 rc = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, buf, buf_len, TRUE, 0);
1276 rc = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, buf, sizeof(buf), TRUE, 0);
1284 MFREE(dhd->osh, arg_org, strlen(arg) + 1);
1288 dhd_pktfilter_offload_set(dhd_pub_t * dhd, char *arg)
1306 if (!(arg_save = MALLOC(dhd->osh, strlen(arg) + 1))) {
1313 if (!(buf = MALLOC(dhd->osh, BUF_SIZE))) {
1406 rc = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, buf, buf_len, TRUE, 0);
1418 MFREE(dhd->osh, arg_org, strlen(arg) + 1);
1421 MFREE(dhd->osh, buf, BUF_SIZE);
1430 dhd_arp_offload_set(dhd_pub_t * dhd, int arp_mode)
1436 retcode = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, sizeof(iovbuf), TRUE, 0);
1447 dhd_arp_offload_enable(dhd_pub_t * dhd, int arp_enable)
1453 retcode = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, sizeof(iovbuf), TRUE, 0);
1464 dhd_aoe_arp_clr(dhd_pub_t *dhd)
1470 if (dhd == NULL) return;
1473 if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, iov_len, TRUE, 0) < 0))
1478 dhd_aoe_hostip_clr(dhd_pub_t *dhd)
1484 if (dhd == NULL) return;
1487 if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, iov_len, TRUE, 0)) < 0)
1492 dhd_arp_offload_add_ip(dhd_pub_t *dhd, uint32 ipaddr)
1499 retcode = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, iov_len, TRUE, 0);
1510 dhd_arp_get_arp_hostip_table(dhd_pub_t *dhd, void *buf, int buflen)
1522 retcode = dhd_wl_ioctl_cmd(dhd, WLC_GET_VAR, buf, buflen, FALSE, 0);
1567 bool dhd_is_associated(dhd_pub_t *dhd, void *bss_buf, int *retval)
1575 ret = dhd_wl_ioctl_cmd(dhd, WLC_GET_BSSID, (char *)&bssid, ETHER_ADDR_LEN, FALSE, 0);
1605 dhd_get_dtim_skip(dhd_pub_t *dhd)
1611 if ((dhd->dtim_skip == 0) || (dhd->dtim_skip == 1))
1614 bcn_li_dtim = dhd->dtim_skip;
1617 if (dhd_is_associated(dhd, NULL, NULL) == FALSE) {
1623 if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_GET_DTIMPRD,
1657 bool dhd_support_sta_mode(dhd_pub_t *dhd)
1661 if (!(dhd->op_mode & DHD_FLAG_STA_MODE))
1670 dhd_pno_clean(dhd_pub_t *dhd)
1679 if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, sizeof(iovbuf), TRUE, 0)) >= 0) {
1683 if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf,
1700 dhd_pno_enable(dhd_pub_t *dhd, int pfn_enabled)
1705 if ((!dhd) && ((pfn_enabled != 0) || (pfn_enabled != 1))) {
1711 if (!dhd_support_sta_mode(dhd))
1716 if ((pfn_enabled) && (dhd_is_associated(dhd, NULL, NULL) == TRUE)) {
1724 if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR,
1730 dhd->pno_enable = pfn_enabled;
1732 __FUNCTION__, dhd->pno_enable ? "Enable" : "Disable"));
1742 dhd_pno_set(dhd_pub_t *dhd, wlc_ssid_t* ssids_local, int nssid, ushort scan_fr,
1754 if ((!dhd) || (!ssids_local)) {
1756 (!dhd)?"dhd is null":"", (!ssids_local)?"ssid is null":""));
1761 if (!dhd_support_sta_mode(dhd))
1784 if ((err = dhd_pno_clean(dhd)) < 0) {
1816 if ((err = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, len, TRUE, 0)) < 0) {
1838 dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, len, TRUE, 0)) < 0) {
1852 /* dhd_pno_enable(dhd, 1); */
1857 dhd_pno_get_status(dhd_pub_t *dhd)
1861 if (!dhd)
1864 return (dhd->pno_enable);
1870 int dhd_keep_alive_onoff(dhd_pub_t *dhd)
1880 if (!dhd_support_sta_mode(dhd))
1905 res = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, buf, buf_len, TRUE, 0);