Created
July 10, 2016 03:05
-
-
Save kdrakon/410db5c7b69b1cfd1f3c15c40987654f to your computer and use it in GitHub Desktop.
How I believe routers have implemented 'Auto Channel'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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