Lines Matching refs:dwrq
1646 struct iw_point *dwrq, in atmel_set_essid() argument
1652 if (dwrq->flags == 0) { in atmel_set_essid()
1655 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in atmel_set_essid()
1660 if (dwrq->length > MAX_SSID_LENGTH) in atmel_set_essid()
1665 memcpy(priv->new_SSID, extra, dwrq->length); in atmel_set_essid()
1666 priv->new_SSID_size = dwrq->length; in atmel_set_essid()
1674 struct iw_point *dwrq, in atmel_get_essid() argument
1682 dwrq->length = priv->new_SSID_size; in atmel_get_essid()
1685 dwrq->length = priv->SSID_size; in atmel_get_essid()
1688 dwrq->flags = !priv->connect_to_any_BSS; /* active */ in atmel_get_essid()
1707 struct iw_point *dwrq, in atmel_set_encode() argument
1718 if (dwrq->length > 0) { in atmel_set_encode()
1719 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in atmel_set_encode()
1722 if (dwrq->length > 13) { in atmel_set_encode()
1731 if (dwrq->length > 5) in atmel_set_encode()
1734 if (dwrq->length > 0) in atmel_set_encode()
1740 if (!(dwrq->flags & IW_ENCODE_NOKEY)) { in atmel_set_encode()
1744 memcpy(priv->wep_keys[index], extra, dwrq->length); in atmel_set_encode()
1763 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in atmel_set_encode()
1768 if (!(dwrq->flags & IW_ENCODE_MODE)) in atmel_set_encode()
1772 if (dwrq->flags & IW_ENCODE_DISABLED) { in atmel_set_encode()
1786 if (dwrq->flags & IW_ENCODE_RESTRICTED) in atmel_set_encode()
1788 if (dwrq->flags & IW_ENCODE_OPEN) in atmel_set_encode()
1796 struct iw_point *dwrq, in atmel_get_encode() argument
1800 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in atmel_get_encode()
1803 dwrq->flags = IW_ENCODE_DISABLED; in atmel_get_encode()
1806 dwrq->flags = IW_ENCODE_RESTRICTED; in atmel_get_encode()
1808 dwrq->flags = IW_ENCODE_OPEN; in atmel_get_encode()
1813 dwrq->flags |= index + 1; in atmel_get_encode()
1815 dwrq->length = priv->wep_key_len[index]; in atmel_get_encode()
1816 if (dwrq->length > 16) { in atmel_get_encode()
1817 dwrq->length = 0; in atmel_get_encode()
1820 memcpy(extra, priv->wep_keys[index], dwrq->length); in atmel_get_encode()
2285 struct iw_point *dwrq, in atmel_set_scan() argument
2323 struct iw_point *dwrq, in atmel_get_scan() argument
2386 dwrq->length = (current_ev - extra); in atmel_get_scan()
2387 dwrq->flags = 0; in atmel_get_scan()
2394 struct iw_point *dwrq, in atmel_get_range() argument
2401 dwrq->length = sizeof(struct iw_range); in atmel_get_range()