How to select WIFI channel in WIFI direct connection

Deslongchamps, Julie 21 Reputation points
2021-02-09T14:29:19.973+00:00

Hi!

I developped a system with a WIFI direct connection established between 2 Windows 10 devices. I based my code on the UWP Wi-Fi Direct sample (C#/Windows 10)

Everything works fine until there are too many devices on the same channel. In that case, when there is too much traffic, the connection gets closed.

By default, the connection is always established on the 2.4ghz band on the channel 11. Is there a way to select and change the channel? With a sniffer, we have found that other channels like 1 or 6 were les busy. We also were wondering if we could select a 5ghz band (both my devices have wireless network adapter supporting the 5ghz band). I have not seen how to do this with the API.

Could you please help me to understand how to change the band and channel in my application? If it is not possible, could you please point me on how the band and channel is determined when negotiating a wifi direct connection? I am also opened to "play" with some configuration (reg keys? profiles? etc.) in order to change it.

Thanks for your help!

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,866 Reputation points
    2021-02-10T03:09:24.557+00:00

    Hello, Welcome to Micorosoft Q&A,

    Could you please help me to understand how to change the band and channel in my application? If it is not possible, could you please point me on how the band and channel is determined when negotiating a wifi direct connection?

    Currently, WiFi direct only provide WiFiDirectConnectionParameters to configure the connection parameter, but it has not supported to specific channel center, and the configuration of channel center is physical level, we can't control within application if there is no api. For your scenario, we suggest you post your requirements with windows feed back hub app.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Deslongchamps, Julie 21 Reputation points
    2021-02-10T13:21:39.883+00:00

    Thanks for your answer. You confirmed what I was afraid of.

    So, if I understand well, what you are saying is that the band and channel are determined by the specific wireless adapter drivers? If there is any hope, it would be in the driver configurations?

    0 comments No comments

  2. Hiep Pham Thanh 0 Reputation points
    2023-12-28T12:20:36.4666667+00:00

    How to change AC band for wi-fi Direct (Wireless Display)

    You choose both devices (5Ghz/...a or Dual Band a/g) In 802 11a/b/g Wireless Mode

    G7

    Y7

    Test

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.