Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HT40 support to iwn (Centrino Wireless-N) #516

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

pigworlds
Copy link
Contributor

Add 802.11n 40MHz to Centrino Wireless-N cards in iwn driver.

The iwn_update_chw is left as placeholder, and appear not being called.
The proper rxon 40mhz channel flags need to set during association. If the flags only set at run, it appear doesn't work. This may be different than the ctxt in iwm/iwx.
All others are strait forward.

I've tested on Wireless-N 6205 card.

if (ni->ni_htcaps & IEEE80211_HTCAP_SGI40)
tx->rflags |= IWN_RFLAG_SGI | IWN_RFLAG_HT40;
if (ni->ni_htcaps & IEEE80211_HTCAP_CBW20_40)
tx->rflags |= IWN_RFLAG_HT40;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not mix capabilities and current mode, 40mhz mode didn't means that it support SGI40. should change like this

if (ni->ni_chw == 40) {
        tx->rflags |= IWN_RFLAG_HT40;
         if (ieee80211_node_supports_ht_sgi40(ni)) {
            tx->rflags |= IWN_RFLAG_SGI;
         } 
     }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion. I've updated the code to take current mode as consideration.

@williambj1 williambj1 added the enhancement New feature or request label Feb 1, 2021
@zxystd zxystd merged commit 9bf4636 into OpenIntelWireless:master Feb 2, 2021
@zxystd
Copy link
Collaborator

zxystd commented Feb 2, 2021

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants