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

Function htcap_update_shortgi

freebsd/net80211/ieee80211_ht.c:1865–1877  ·  view source on GitHub ↗

* Update short GI state according to received htcap * and local settings. */

Source from the content-addressed store, hash-verified

1863 * and local settings.
1864 */
1865static __inline void
1866htcap_update_shortgi(struct ieee80211_node *ni)
1867{
1868 struct ieee80211vap *vap = ni->ni_vap;
1869
1870 ni->ni_flags &= ~(IEEE80211_NODE_SGI20|IEEE80211_NODE_SGI40);
1871 if ((ni->ni_htcap & IEEE80211_HTCAP_SHORTGI20) &&
1872 (vap->iv_flags_ht & IEEE80211_FHT_SHORTGI20))
1873 ni->ni_flags |= IEEE80211_NODE_SGI20;
1874 if ((ni->ni_htcap & IEEE80211_HTCAP_SHORTGI40) &&
1875 (vap->iv_flags_ht & IEEE80211_FHT_SHORTGI40))
1876 ni->ni_flags |= IEEE80211_NODE_SGI40;
1877}
1878
1879/*
1880 * Update LDPC state according to received htcap

Callers 2

ieee80211_ht_updatehtcapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected