Lines Matching defs:bo

2537 	struct ieee80211_beacon_offsets *bo, struct ieee80211_node *ni)
2574 memset(bo, 0, sizeof(*bo));
2581 bo->bo_caps = (uint16_t *)frm;
2598 bo->bo_cfp = frm;
2601 bo->bo_tim = frm;
2606 bo->bo_tim_len = 0;
2619 bo->bo_tim_len = 1;
2621 bo->bo_tim_trailer = frm;
2628 bo->bo_csa = frm;
2632 bo->bo_csa = frm;
2634 bo->bo_erp = frm;
2641 bo->bo_htinfo = frm;
2646 bo->bo_wme = frm;
2656 bo->bo_ath = frm;
2662 bo->bo_tdma = frm;
2667 bo->bo_appie = frm;
2668 bo->bo_appie_len = vap->iv_appie_beacon->ie_len;
2674 bo->bo_meshconf = frm;
2678 bo->bo_tim_trailer_len = frm - bo->bo_tim_trailer;
2679 bo->bo_csa_trailer_len = frm - bo->bo_csa;
2688 struct ieee80211_beacon_offsets *bo)
2769 ieee80211_beacon_construct(m, frm, bo, ni);
2791 struct ieee80211_beacon_offsets *bo, struct mbuf *m, int mcast)
2808 if (isset(bo->bo_flags, IEEE80211_BEACON_CSA) &&
2823 mtod(m, uint8_t*) + sizeof(struct ieee80211_frame), bo, ni);
2838 *bo->bo_caps = htole16(capinfo);
2875 if (isset(bo->bo_flags, IEEE80211_BEACON_WME)) {
2876 (void) ieee80211_add_wme_param(bo->bo_wme, wme);
2877 clrbit(bo->bo_flags, IEEE80211_BEACON_WME);
2881 if (isset(bo->bo_flags, IEEE80211_BEACON_HTINFO)) {
2882 ieee80211_ht_update_beacon(vap, bo);
2883 clrbit(bo->bo_flags, IEEE80211_BEACON_HTINFO);
2890 ieee80211_tdma_update_beacon(vap, bo);
2895 ieee80211_mesh_update_beacon(vap, bo);
2901 (struct ieee80211_tim_ie *) bo->bo_tim;
2902 if (isset(bo->bo_flags, IEEE80211_BEACON_TIM)) {
2936 if (timlen != bo->bo_tim_len) {
2939 - bo->bo_tim_trailer;
2940 ovbcopy(bo->bo_tim_trailer,
2941 bo->bo_tim_trailer+adjust,
2942 bo->bo_tim_trailer_len);
2943 bo->bo_tim_trailer += adjust;
2944 bo->bo_erp += adjust;
2945 bo->bo_htinfo += adjust;
2947 bo->bo_ath += adjust;
2950 bo->bo_tdma += adjust;
2953 bo->bo_meshconf += adjust;
2955 bo->bo_appie += adjust;
2956 bo->bo_wme += adjust;
2957 bo->bo_csa += adjust;
2958 bo->bo_tim_len = timlen;
2966 bo->bo_tim_len);
2968 clrbit(bo->bo_flags, IEEE80211_BEACON_TIM);
2984 if (isset(bo->bo_flags, IEEE80211_BEACON_CSA)) {
2986 (struct ieee80211_csa_ie *) bo->bo_csa;
2996 memmove(&csa[1], csa, bo->bo_csa_trailer_len);
2997 bo->bo_erp += sizeof(*csa);
2998 bo->bo_htinfo += sizeof(*csa);
2999 bo->bo_wme += sizeof(*csa);
3001 bo->bo_ath += sizeof(*csa);
3004 bo->bo_tdma += sizeof(*csa);
3007 bo->bo_meshconf += sizeof(*csa);
3009 bo->bo_appie += sizeof(*csa);
3010 bo->bo_csa_trailer_len += sizeof(*csa);
3011 bo->bo_tim_trailer_len += sizeof(*csa);
3015 ieee80211_add_csa(bo->bo_csa, vap);
3021 if (isset(bo->bo_flags, IEEE80211_BEACON_ERP)) {
3025 (void) ieee80211_add_erp(bo->bo_erp, ic);
3026 clrbit(bo->bo_flags, IEEE80211_BEACON_ERP);
3029 if (isset(bo->bo_flags, IEEE80211_BEACON_ATH)) {
3030 ieee80211_add_athcaps(bo->bo_ath, ni);
3031 clrbit(bo->bo_flags, IEEE80211_BEACON_ATH);
3035 if (isset(bo->bo_flags, IEEE80211_BEACON_APPIE)) {
3043 if (aielen != bo->bo_appie_len) {
3045 int adjust = aielen - bo->bo_appie_len;
3046 ovbcopy(bo->bo_tim_trailer, bo->bo_tim_trailer+adjust,
3047 bo->bo_tim_trailer_len);
3048 bo->bo_tim_trailer += adjust;
3049 bo->bo_appie += adjust;
3050 bo->bo_appie_len = aielen;
3054 frm = bo->bo_appie;
3057 clrbit(bo->bo_flags, IEEE80211_BEACON_APPIE);