-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
esp_wifi_80211_tx does not allow sending on a specific channel (IDFGH-1785) #4005
Comments
@seppestas Thanks for reporting this. We will take a look at. Thanks. |
It looks like my use-case is not that secret, or at least there seems to be some information publicly available here: https://www.cisco.com/c/en/us/td/docs/solutions/Enterprise/Mobility/WiFiLBS-DG/wifich6.html Since my implementation is based on a partner level document I'm afraid I can't share my code publicly, but this should give some more indication about the use-case and the sort of frames I'm trying to send. It also showcases the need of being able to send frames on different channels. |
Have you tried esp_wifi_set_channel in WiFi null mode with/without promiscuous rx enabled? |
I now tried putting the WiFi interface in promiscuous mode, however when sending the frame I get the same result as when trying to send the frame in AP mode: However, I found that putting the channel in promiscuous mode, setting the channel using and then switching to station mode seems to work. I will do some more testing and report any workaround I find if it works. I also changed the way I use the |
Hi @seppestas Has the problem been solved? If not, I will deal with it in time. |
@seppestas Thanks for reporting. Would you please help share if any updates for the issue? Has your issue been resolved? Thanks. |
@Alvin1Zhang yes, I got this working eventually but had to use a workaround I believe. I’ll have a look to see if I can find back the code, but I’m afraid I now work for a different company. I’ll close this issue for now. |
Hi @seppestas, |
Environment
git describe --tags
to find it): v3.1.3xtensa-esp32-elf-gcc --version
to find it):// (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0
Problem Description
When using the
esp_wifi_80211_tx
function to send arbitrary WiFi frames with the WiFi interface configure in STA mode it is not possible to change the WiFi channel on which the frame is sent. I have tried to change the channel using theesp_wifi_set_config
with interface set toWIFI_IF_AP
andconf->sta.channel
to different channels (tested with channel 6 and 11) and I have tried theesp_wifi_set_channel
function, but neither work to change the channel on whichesp_wifi_80211_tx
sends the frames.This issue is similar to #3210, but here @ingframin talks about sending "beacons", presumably management frames sent from a device set up as an access point. I'm trying to send non-QoS data frames (WDS Frames).
Expected Behavior
esp_wifi_80211_tx
should be able to send frames on an arbitrary WiFi channel. Either by using the channel configured withesp_wifi_set_config
or using a different, documented method.Actual Behavior
esp_wifi_80211_tx
always sends frames on channel 1.Steps to repropduce
esp_wifi_set_config
esp_wifi_80211_tx
functionCode to reproduce this issue
The text was updated successfully, but these errors were encountered: