• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/uwb/wlp/

Lines Matching defs:wss

148 			       struct wlp_wss *wss)
154 datalen = sizeof(struct wlp_wss_info) + strlen(wss->name);
156 used = wlp_set_wssid(ptr, &wss->wssid);
157 used += wlp_set_wss_name(ptr + used, wss->name, strlen(wss->name));
158 used += wlp_set_accept_enrl(ptr + used, wss->accept_enroll);
159 used += wlp_set_wss_sec_status(ptr + used, wss->secure_status);
160 used += wlp_set_wss_bcast(ptr + used, &wss->bcast);
546 * @wss: ptr to WSS being enrolled in, NULL if discovery in progress
567 struct wlp_wss *wss, ssize_t buflen)
582 if (neighbor != NULL && wss == NULL)
584 else if (wss != NULL && neighbor == NULL)
604 if (enroll && !memcmp(&wssid, &wss->wssid, sizeof(wssid))) {
611 memcpy(wss->name, wss_info.name, sizeof(wss->name));
612 wss->bcast = wss_info.bcast;
613 wss->secure_status = wss_info.sec_status;
614 wss->accept_enroll = wss_info.accept_enroll;
615 wss->state = WLP_WSS_STATE_PART_ENROLLED;
661 * @wss: the WSS that will be enrolled
666 struct wlp_wss *wss, ssize_t buflen)
668 return wlp_get_all_wss_info(wlp, attr, NULL, wss, buflen);
681 static int wlp_build_assoc_d1(struct wlp *wlp, struct wlp_wss *wss,
762 int wlp_build_assoc_d2(struct wlp *wlp, struct wlp_wss *wss,
799 if (wlp->wss.state >= WLP_WSS_STATE_ACTIVE)
802 + strlen(wlp->wss.name);
820 if (wlp->wss.state >= WLP_WSS_STATE_ACTIVE)
821 used += wlp_set_wss_info(d2_itr + used, &wlp->wss);
1145 struct wlp_wss *wss = &wlp->wss;
1157 mutex_lock(&wss->mutex);
1180 result = wlp_build_assoc_d2(wlp, wss, &resp, &uuid_e);
1200 mutex_unlock(&wss->mutex);
1298 * @wss: our WSS that will be enrolled
1309 int wlp_parse_d2_frame_to_enroll(struct wlp_wss *wss, struct sk_buff *skb,
1313 struct wlp *wlp = container_of(wss, struct wlp, wss);
1356 wss->wssid = *wssid;
1357 result = wlp_get_wss_info_to_enroll(wlp, ptr + used, wss, len - used);
1363 if (wss->state != WLP_WSS_STATE_PART_ENROLLED) {
1395 if (wss->state == WLP_WSS_STATE_PART_ENROLLED) {
1398 wlp_wss_reset(wss);
1464 int wlp_build_assoc_c1c2(struct wlp *wlp, struct wlp_wss *wss,
1487 wlp_set_wssid(&c->wssid, &wss->wssid);
1497 int wlp_build_assoc_c1(struct wlp *wlp, struct wlp_wss *wss,
1500 return wlp_build_assoc_c1c2(wlp, wss, skb, WLP_ASSOC_C1);
1504 int wlp_build_assoc_c2(struct wlp *wlp, struct wlp_wss *wss,
1507 return wlp_build_assoc_c1c2(wlp, wss, skb, WLP_ASSOC_C2);
1517 int wlp_build_assoc_c3c4(struct wlp *wlp, struct wlp_wss *wss,
1542 wlp_set_wssid(&c->wssid, &wss->wssid);
1543 wlp_set_wss_tag(&c->wss_tag, wss->tag);
1544 wlp_set_wss_virt(&c->wss_virt, &wss->virtual_addr);
1553 int wlp_build_assoc_c3(struct wlp *wlp, struct wlp_wss *wss,
1556 return wlp_build_assoc_c3c4(wlp, wss, skb, WLP_ASSOC_C3);
1560 int wlp_build_assoc_c4(struct wlp *wlp, struct wlp_wss *wss,
1563 return wlp_build_assoc_c3c4(wlp, wss, skb, WLP_ASSOC_C4);
1568 static int wlp_send_assoc_##type(struct wlp *wlp, struct wlp_wss *wss, \
1576 result = wlp_build_assoc_##type(wlp, wss, &skb); \
1606 int wlp_send_assoc_frame(struct wlp *wlp, struct wlp_wss *wss,
1614 result = wlp_send_assoc_d1(wlp, wss, dev_addr);
1617 result = wlp_send_assoc_c1(wlp, wss, dev_addr);
1620 result = wlp_send_assoc_c3(wlp, wss, dev_addr);
1644 struct wlp_wss *wss = &wlp->wss;
1654 mutex_lock(&wss->mutex);
1661 if (!memcmp(&wssid, &wss->wssid, sizeof(wssid))
1662 && wss->state == WLP_WSS_STATE_ACTIVE) {
1664 result = wlp_build_assoc_c2(wlp, wss, &resp);
1691 mutex_unlock(&wss->mutex);
1708 struct wlp_wss *wss = &wlp->wss;
1719 mutex_lock(&wss->mutex);
1725 if (!memcmp(&wssid, &wss->wssid, sizeof(wssid))
1726 && wss->state >= WLP_WSS_STATE_ACTIVE) {
1727 result = wlp_eda_update_node(&wlp->eda, src, wss,
1741 wss->state = WLP_WSS_STATE_CONNECTED;
1743 result = wlp_build_assoc_c4(wlp, wss, &resp);
1772 mutex_unlock(&wss->mutex);