Skip to contentSkip to conversation

Error code -149 trying to receive Probe Requests using NL80211_CMD_REGISTER_FRAME

DISCUSSION Paul 2 participants 2 messages Nov 18, 2014

lore
Share & tools
lore

Paul

author
#0 lore raw

Hello,

I'm trying to write an linux process that will receive Probe Request
messages from nl80211 using NL80211_CMD_REGISTER_FRAME. This process
will run at the same time hostapd is doing its job. Is it possible for multiple linux processes to receive the same set of Probe Request messages
this way? I'm getting an error code -149 after issuing my
NL80211_CMD_REGISTER_FRAME command. The command is exactly the same command that hostapd is issuing. It looks like -149 implies EALREADY, which leads me to believe that only one process can register for these frames? Any suggestions or examples of successfully using NL80211_CMD_REGISTER_FRAME in a separate user space program?

Thanks very much,
Paul

#1 lore raw
Quoted 12 lines · Paul

Hello,

I'm trying to write an linux process that will receive Probe Request
messages from nl80211 using NL80211_CMD_REGISTER_FRAME. This process
will run at the same time hostapd is doing its job. Is it possible for multiple linux processes to receive the same set of Probe Request messages
this way? I'm getting an error code -149 after issuing my
NL80211_CMD_REGISTER_FRAME command. The command is exactly the same command that hostapd is issuing. It looks like -149 implies EALREADY, which leads me to believe that only one process can register for these frames? Any suggestions or examples of successfully using NL80211_CMD_REGISTER_FRAME in a separate user space program?

This is (intentionally) not possible since only one of them should be responding.

Depending on your use cases, you could open an additional monitor interface and look at all the frames there, or hook out of hostapd for example.

Of course you can always hack out the check and change the delivery code to deliver to multiple userspace processes, but I don't think that's really a good change for upstream.

johannes