How to know if a WiFi adapter can be used with a "WiFiDirectAdvertisementPublisher"

AW-8090 0 Reputation points
2024-03-22T11:30:23.59+00:00

I am using the WiFiDirectAdvertisementPublisher to provide a hotspot functionality that prevents internet access, how can I tell if a WiFi adapter supports this API or not?

This is the API I am referring to;

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

Some WiFi dongles work and some don't and there is no WiFi capability/capapabilities that I can see that relates to this feature.

I am using command line to query wireless capabilities of an adapter;

netsh wlan show wirelesscapabilities

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

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,091 Reputation points Microsoft Vendor
    2024-03-25T02:54:16.6466667+00:00

    Hello,

    Welcome to Microsoft Q&A!

    how can I tell if a WiFi adapter supports this API or not?

    Generally, devices support WiFi direct should be able to publish WiFi direct advertisement. But currently there is no such API that could directly tell if a device supports WiFi direct.

    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 comments No comments