Skip to content

Instantly share code, notes, and snippets.

@kdrakon
Created July 10, 2016 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdrakon/410db5c7b69b1cfd1f3c15c40987654f to your computer and use it in GitHub Desktop.
Save kdrakon/410db5c7b69b1cfd1f3c15c40987654f to your computer and use it in GitHub Desktop.
How I believe routers have implemented 'Auto Channel'
val accessPoints = Seq(???)
def autoChannel(accessPoints: Seq[AccessPoint]): Channel = {
accessPoints.groupBy(_.channel)
.maxBy{ case (channel, aps) => aps.size }
._1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment