/// Even though hardware may support higher channel bandwidth, if user specifies a narrower
/// bandwidth, change the channel bandwidth in ht_cap_info to match user's preference.
Even though hardware may support higher channel bandwidth, if user specifies a narrower
bandwidth, change the channel bandwidth in ht_cap_info to match user's preference.
Even though hardware may support higher channel bandwidth if user specifies a narrower bandwidth change the channel bandwidth in ht_cap_info to match user ' s preference .
fn override_ht_capabilities(mut ht_cap: HtCapabilities, cbw: Cbw) -> HtCapabilities {
    let mut ht_cap_info = ht_cap.ht_cap_info.with_tx_stbc(OVERRIDE_HT_CAP_INFO_TX_STBC);
    match cbw {
        Cbw::Cbw20 => ht_cap_info.set_chan_width_set(ie::ChanWidthSet::TWENTY_ONLY),
        _ => (),
    }
    ht_cap.ht_cap_info = ht_cap_info;
    ht_cap
}
fn override_ht_capabilities ( mut ht_cap : HtCapabilities , cbw : Cbw ) -> HtCapabilities { let mut ht_cap_info = ht_cap . ht_cap_info . with_tx_stbc ( OVERRIDE_HT_CAP_INFO_TX_STBC ) ; match cbw { Cbw :: Cbw20 => ht_cap_info . set_chan_width_set ( ie :: ChanWidthSet :: TWENTY_ONLY ) , _ => ( ) , } ht_cap . ht_cap_info = ht_cap_info ; ht_cap }
Even though hardware may support higher channel bandwidth, if user specifies a narrower
bandwidth, change the channel bandwidth in ht_cap_info to match user's preference.
Even though hardware may support higher channel bandwidth if user specifies a narrower bandwidth change the channel bandwidth in ht_cap_info to match user ' s preference .
ht_cap
HtCapabilities
cbw
Cbw