MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
228 stars 494 forks source link

How can I Config the wireless frequency channel to 5Ghz or 2.4Ghz? #753

Closed Thxzzzzz closed 5 years ago

Thxzzzzz commented 5 years ago

I have seen the selection in Windows 10 Settings , but I can only config the Ssid and Passphrase in this Api ,witch api can config the frequency channel ?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

stevewhims commented 5 years ago

Hi, @Thxzzzzz, thanks for raising this issue. I'm working with the product team to see whether we can get you a response. I'll get back to you with any progress. ~Steve

stevewhims commented 5 years ago

Would this be a feasible workaround? Append the frequency to the name of your SSID (5Ghz or 2.4Ghz, depending what it's set to). For example, you could name an SSID : MyExampleWiFiSSID_5Ghz.

Thxzzzzz commented 5 years ago

@stevewhims Thanks for your help,But name my SSID with 5Ghz or 2.4Ghz dosn't really change the frequency of the mobile hotspot . I am using Qualcomm QCA9377 WiFi chip .There is an option in Windows 10 settings - Mobile Hotspot - Edit can actually config the SSID Passphrase & band frequency (2.4Ghz or 5Ghz),But with NetworkOperatorTetheringAccessPointConfiguration Class I couldn't config the band frequency. Or maybe is there any way I can call the Edit dialog using any code? Just like ms-settings:network-mobilehotspotedit can call Mobile Hotspot Settings Window. My English is not good enough ,Wish you don't mind.

stevewhims commented 5 years ago

I don't know whether this will help, but here are some more thoughts/info. Normally, a physical wireless router supports dual band (5Ghz and 2.4Ghz). By default, many of these routers come with dual band enabled by default. So, setting up two access points doesn't normally require two independent routers - it is simply a configuration change. Also, wireless manufacturers discourage the configuration of dual band routers with the same SSID because clients connecting to the access point can get confused and have connectivity problems if the adapter supports only one band. Hence, it is recommended to set up different SSIDs for different bands.

Are you able to configure the router to broadcast different SSIDs by band? The API doesn't support configuring which to prefer, so that would be your option.

Thxzzzzz commented 5 years ago

@stevewhims Really appreciate for your help. There seems no way to meet my needs for now.Thank you for you time.

stevewhims commented 5 years ago

Thanks for filing the issue, @Thxzzzzz, and my apologies we couldn't give you a better answer. I'll close this issue now. ~Steve