You are not saying anything about what OS you are using.
And I don't understand "currently connected WIFI". If you are connected to a wifi network the connection is on a certain channel already. If you want to determine on which channel to set your wifi network, you have to scan for others networks and see which channels they are using and go away from them. To avoid the interference.
And I don't understand "currently connected WIFI". If you are connected to a wifi network the connection is on a certain channel already. If you want to determine on which channel to set your wifi network, you have to scan for others networks and see which channels they are using and go away from them. To avoid the interference.