Skip to content

fix 5300 netbios in AP mode not working #5301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

fix 5300 netbios in AP mode not working #5301

wants to merge 2 commits into from

Conversation

pabloandresm
Copy link

fixes bug where netbios not answering properly in case of wifi mode = AP

#5300

@CLAassistant
Copy link

CLAassistant commented Jun 17, 2021

CLA assistant check
All committers have signed the CLA.

@me-no-dev
Copy link
Member

if mode is AP_STA then it will not work on STA

@@ -92,7 +92,10 @@ void NetBIOS::_onPacket(AsyncUDPPacket& packet){
append_32((void *)&nbnsa.ttl, 300000);
append_16((void *)&nbnsa.data_len, 6);
append_16((void *)&nbnsa.flags, 0);
nbnsa.addr = WiFi.localIP();
if (WiFi.getMode()==WIFI_STA)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to change this to if (WiFi.getMode() & WIFI_STA)

@me-no-dev me-no-dev added the Resolution: Awaiting response Waiting for response of author label Nov 9, 2021
@me-no-dev
Copy link
Member

closing due to no response

@me-no-dev me-no-dev closed this Dec 14, 2021
@VojtechBartoska VojtechBartoska removed the Resolution: Awaiting response Waiting for response of author label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants