* Process an 802.11n HT capabilities ie. */
| 1670 | * Process an 802.11n HT capabilities ie. |
| 1671 | */ |
| 1672 | void |
| 1673 | ieee80211_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 | |
| 1691 | static void |
| 1692 | htinfo_parse(struct ieee80211_node *ni, |
no test coverage detected