Lines Matching refs:wrqu
1442 union iwreq_data *wrqu, char *extra) in wl3501_get_name() argument
1444 strscpy(wrqu->name, "IEEE 802.11-DS", sizeof(wrqu->name)); in wl3501_get_name()
1449 union iwreq_data *wrqu, char *extra) in wl3501_set_freq() argument
1452 int channel = wrqu->freq.m; in wl3501_set_freq()
1463 union iwreq_data *wrqu, char *extra) in wl3501_get_freq() argument
1467 wrqu->freq.m = 100000 * in wl3501_get_freq()
1469 wrqu->freq.e = 1; in wl3501_get_freq()
1474 union iwreq_data *wrqu, char *extra) in wl3501_set_mode() argument
1478 if (wrqu->mode == IW_MODE_INFRA || in wl3501_set_mode()
1479 wrqu->mode == IW_MODE_ADHOC || in wl3501_set_mode()
1480 wrqu->mode == IW_MODE_AUTO) { in wl3501_set_mode()
1483 this->net_type = wrqu->mode; in wl3501_set_mode()
1490 union iwreq_data *wrqu, char *extra) in wl3501_get_mode() argument
1494 wrqu->mode = this->net_type; in wl3501_get_mode()
1499 union iwreq_data *wrqu, char *extra) in wl3501_get_sens() argument
1503 wrqu->sens.value = this->rssi; in wl3501_get_sens()
1504 wrqu->sens.disabled = !wrqu->sens.value; in wl3501_get_sens()
1505 wrqu->sens.fixed = 1; in wl3501_get_sens()
1511 union iwreq_data *wrqu, char *extra) in wl3501_get_range() argument
1516 wrqu->data.length = sizeof(*range); in wl3501_get_range()
1530 union iwreq_data *wrqu, char *extra) in wl3501_set_wap() argument
1536 if (wrqu->ap_addr.sa_family != ARPHRD_ETHER) in wl3501_set_wap()
1538 if (is_broadcast_ether_addr(wrqu->ap_addr.sa_data)) { in wl3501_set_wap()
1541 memcpy(this->bssid, wrqu->ap_addr.sa_data, ETH_ALEN); in wl3501_set_wap()
1549 union iwreq_data *wrqu, char *extra) in wl3501_get_wap() argument
1553 wrqu->ap_addr.sa_family = ARPHRD_ETHER; in wl3501_get_wap()
1554 memcpy(wrqu->ap_addr.sa_data, this->bssid, ETH_ALEN); in wl3501_get_wap()
1559 union iwreq_data *wrqu, char *extra) in wl3501_set_scan() argument
1568 union iwreq_data *wrqu, char *extra) in wl3501_get_scan() argument
1611 wrqu->data.length = (current_ev - extra); in wl3501_get_scan()
1612 wrqu->data.flags = 0; /* FIXME: set properly these flags */ in wl3501_get_scan()
1618 union iwreq_data *wrqu, char *extra) in wl3501_set_essid() argument
1622 if (wrqu->data.flags) { in wl3501_set_essid()
1625 extra, wrqu->data.length); in wl3501_set_essid()
1635 union iwreq_data *wrqu, char *extra) in wl3501_get_essid() argument
1641 wrqu->essid.flags = 1; in wl3501_get_essid()
1642 wrqu->essid.length = this->essid.el.len; in wl3501_get_essid()
1649 union iwreq_data *wrqu, char *extra) in wl3501_set_nick() argument
1653 if (wrqu->data.length > sizeof(this->nick)) in wl3501_set_nick()
1655 strscpy(this->nick, extra, wrqu->data.length); in wl3501_set_nick()
1660 union iwreq_data *wrqu, char *extra) in wl3501_get_nick() argument
1665 wrqu->data.length = strlen(extra); in wl3501_get_nick()
1670 union iwreq_data *wrqu, char *extra) in wl3501_get_rate() argument
1677 wrqu->bitrate.value = 2000000; in wl3501_get_rate()
1678 wrqu->bitrate.fixed = 1; in wl3501_get_rate()
1684 union iwreq_data *wrqu, char *extra) in wl3501_get_rts_threshold() argument
1691 wrqu->rts.value = threshold; in wl3501_get_rts_threshold()
1692 wrqu->rts.disabled = threshold >= 2347; in wl3501_get_rts_threshold()
1693 wrqu->rts.fixed = 1; in wl3501_get_rts_threshold()
1700 union iwreq_data *wrqu, char *extra) in wl3501_get_frag_threshold() argument
1707 wrqu->frag.value = threshold; in wl3501_get_frag_threshold()
1708 wrqu->frag.disabled = threshold >= 2346; in wl3501_get_frag_threshold()
1709 wrqu->frag.fixed = 1; in wl3501_get_frag_threshold()
1716 union iwreq_data *wrqu, char *extra) in wl3501_get_txpow() argument
1724 wrqu->txpower.value = txpow; in wl3501_get_txpow()
1725 wrqu->txpower.disabled = 0; in wl3501_get_txpow()
1730 wrqu->txpower.fixed = 0; in wl3501_get_txpow()
1731 wrqu->txpower.flags = IW_TXPOW_MWATT; in wl3501_get_txpow()
1738 union iwreq_data *wrqu, char *extra) in wl3501_get_retry() argument
1747 if (wrqu->retry.flags & IW_RETRY_LONG) { in wl3501_get_retry()
1748 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_LONG; in wl3501_get_retry()
1755 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_SHORT; in wl3501_get_retry()
1757 wrqu->retry.value = retry; in wl3501_get_retry()
1758 wrqu->retry.disabled = 0; in wl3501_get_retry()
1765 union iwreq_data *wrqu, char *extra) in wl3501_get_encode() argument
1775 wrqu->encoding.flags = IW_ENCODE_DISABLED; in wl3501_get_encode()
1782 wrqu->encoding.flags = restricted ? IW_ENCODE_RESTRICTED : in wl3501_get_encode()
1792 tocopy = min_t(u16, len_keys, wrqu->encoding.length); in wl3501_get_encode()
1794 wrqu->encoding.length = tocopy; in wl3501_get_encode()
1802 union iwreq_data *wrqu, char *extra) in wl3501_get_power() argument
1811 wrqu->power.disabled = !pwr_state; in wl3501_get_power()
1812 wrqu->power.flags = IW_POWER_ON; in wl3501_get_power()