MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ieee80211_parse_htcap

Function ieee80211_parse_htcap

freebsd/net80211/ieee80211_ht.c:1672–1689  ·  view source on GitHub ↗

* Process an 802.11n HT capabilities ie. */

Source from the content-addressed store, hash-verified

1670 * Process an 802.11n HT capabilities ie.
1671 */
1672void
1673ieee80211_parse_htcap(struct ieee80211_node *ni, const uint8_t *ie)
1674{
1675 if (ie[0] == IEEE80211_ELEMID_VENDOR) {
1676 /*
1677 * Station used Vendor OUI ie to associate;
1678 * mark the node so when we respond we'll use
1679 * the Vendor OUI's and not the standard ie's.
1680 */
1681 ni->ni_flags |= IEEE80211_NODE_HTCOMPAT;
1682 ie += 4;
1683 } else
1684 ni->ni_flags &= ~IEEE80211_NODE_HTCOMPAT;
1685
1686 ni->ni_htcap = le16dec(ie +
1687 __offsetof(struct ieee80211_ie_htcap, hc_cap));
1688 ni->ni_htparam = ie[__offsetof(struct ieee80211_ie_htcap, hc_param)];
1689}
1690
1691static void
1692htinfo_parse(struct ieee80211_node *ni,

Callers 4

ieee80211_ht_updatehtcapFunction · 0.85
ieee80211_sta_joinFunction · 0.85
ieee80211_init_neighborFunction · 0.85

Calls 1

le16decFunction · 0.85

Tested by

no test coverage detected