How does WiFiDirectAdvertisementPublisher decide which wifi channels to use?

50824634 20 Reputation points
2024-12-16T11:15:53.9266667+00:00

I am using the WiFiDirectAdvertisementPublisher to provide a hotspot functionality, how does this API choose which channels to use and can this be configured?

Is it assured that only valid channels for the country in which windows is being used?

Are only 2.4Ghz channels used?

This is the API I am referring to;

https://learn.microsoft.com/en-us/uwp/api/windows.devices.wifidirect.wifidirectadvertisementpublisher

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Junjie Zhu - MSFT 19,751 Reputation points Microsoft Vendor
    2024-12-17T02:36:45.5866667+00:00

    Hello

    Welcome to Microsoft Q&A!

    how does this API choose which channels to use and can this be configured?

    The API does not provide direct control over which channels are used for Wi-Fi Direct advertisements. The channel selection is managed by the underlying Wi-Fi driver and the operating system.

    Is it assured that only valid channels for the country in which windows is being used?

    Yes, the API ensures that only valid channels for the country in which Windows is being used are selected. The Wi-Fi driver and the operating system are responsible for adhering to the regulatory requirements of the country, ensuring that only permissible channels are used

    Are only 2.4Ghz channels used?

    Wi-Fi Direct typically uses both 2.4GHz and 5GHz channels, depending on the capabilities of the Wi-Fi hardware and the regulatory requirements of the country. It is not limited to only 2.4GHz channels.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


0 additional answers

Sort by: Most helpful

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.