bcm-v4

[Specification

bool Malformed Channel Spec ( int chspec)

See Chanspec for interpretaion.

  1. If !((chspec & 0xF000) equals 0x1000) AND !((chspec & 0xF000) equals 0x2000)

    1. Return TRUE - neither 5 GHz nor 2 GHz
  2. If !((chspec & 0x0C00) equals 0x0c00) AND !((chspec & 0x0C00) equals 0x0800)

    1. Return TRUE - neither 20 MHz nor 40 MHz
  3. If (chspec & 0x0C00) equals 0x0800

    1. If !((chspec & 0x0300) equals 0x0300)

      1. Return TRUE - 20 MHz b/w must not have a control sideband
  4. Otherwise
    1. If !((chspec & 0x0300) equals 0x0200) AND !((chspec & 0x0300) equals 0x0100)

      1. Return TRUE - 40 MHz must have a control sideband
  5. Return FALSE - chspec is not malformed

Exported/Archived from the wiki to HTML on 2016-10-27