> > Add new command to register for receiving multiple mgmt frames, > > capture and print them. Frames are selected by their type and > > pattern containing their the first several bytes of the frame > > that should match. > > > > Forgive me for asking, what does this provide that isn't already > available in tshark? And since we already have user-space tools > tailored for capturing and filtering any frames, including management > frames, why do we need to add this to iw? IIUC tshark and other specific capture tools need wireless netdevice to be in monitor mode. This particular iw command is based on NL80211_CMD_REGISTER_FRAME and related cfg80211 ops. In fact, this command can be used to subscribe to mgmt frames when wireless device is up and running in AP or STA mode. That can be convenient for monitor and debug purposes. There is a limitation though: currently cfg80211 core allows only one subscriber for each particular frame/pattern. It looks like 'capture' part of commit message is a bit confusing. Regards, Sergey