def _GetChannelSet(five_g, width):
  """Returns a tuple of target channels based on spectrum and width given.

  Args:
    five_g: (bool) Whether target is 5GHz radio.
    width: (int) Channel width, eg. 20, 40, 80.
  """
  if five_g:
    if width == 20:
      return (36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124,
              128, 132, 136, 140, 144, 149, 153, 157, 161, 165)
    elif width == 40:
      return (36, 44, 52, 60, 100, 108, 116, 124, 132, 140, 149, 157)
    elif width == 80:
      return (36, 52, 100, 116, 132, 149)

  # we return 2.4G channels otherwise.
  return (1, 6, 11)