Search Linux Wireless

Re: Error code -149 trying to receive Probe Requests using NL80211_CMD_REGISTER_FRAME

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2014-11-18 at 04:53 +0000, Paul wrote:
> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux