diff options
Diffstat (limited to 'drivers/staging/rt3070/common/spectrum.c')
-rw-r--r-- | drivers/staging/rt3070/common/spectrum.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/staging/rt3070/common/spectrum.c b/drivers/staging/rt3070/common/spectrum.c index df68d955aff..2762b57dd14 100644 --- a/drivers/staging/rt3070/common/spectrum.c +++ b/drivers/staging/rt3070/common/spectrum.c | |||
@@ -1734,28 +1734,6 @@ VOID PeerSpectrumAction( | |||
1734 | 1734 | ||
1735 | case SPEC_CHANNEL_SWITCH: | 1735 | case SPEC_CHANNEL_SWITCH: |
1736 | { | 1736 | { |
1737 | #ifdef DOT11N_DRAFT3 | ||
1738 | SEC_CHA_OFFSET_IE Secondary; | ||
1739 | CHA_SWITCH_ANNOUNCE_IE ChannelSwitch; | ||
1740 | |||
1741 | // 802.11h only has Channel Switch Announcement IE. | ||
1742 | RTMPMoveMemory(&ChannelSwitch, &Elem->Msg[LENGTH_802_11+4], sizeof (CHA_SWITCH_ANNOUNCE_IE)); | ||
1743 | |||
1744 | // 802.11n D3.03 adds secondary channel offset element in the end. | ||
1745 | if (Elem->MsgLen == (LENGTH_802_11 + 2 + sizeof (CHA_SWITCH_ANNOUNCE_IE) + sizeof (SEC_CHA_OFFSET_IE))) | ||
1746 | { | ||
1747 | RTMPMoveMemory(&Secondary, &Elem->Msg[LENGTH_802_11+9], sizeof (SEC_CHA_OFFSET_IE)); | ||
1748 | } | ||
1749 | else | ||
1750 | { | ||
1751 | Secondary.SecondaryChannelOffset = 0; | ||
1752 | } | ||
1753 | |||
1754 | if ((Elem->Msg[LENGTH_802_11+2] == IE_CHANNEL_SWITCH_ANNOUNCEMENT) && (Elem->Msg[LENGTH_802_11+3] == 3)) | ||
1755 | { | ||
1756 | ChannelSwitchAction(pAd, Elem->Wcid, ChannelSwitch.NewChannel, Secondary.SecondaryChannelOffset); | ||
1757 | } | ||
1758 | #endif // DOT11N_DRAFT3 // | ||
1759 | } | 1737 | } |
1760 | PeerChSwAnnAction(pAd, Elem); | 1738 | PeerChSwAnnAction(pAd, Elem); |
1761 | break; | 1739 | break; |