On Mon, 2011-09-05 at 15:02 +0300, Victor Goldenshtein wrote: > +void nl80211_send_intermediate_result(struct cfg80211_registered_device *rdev, > + struct net_device *netdev, > + struct cfg80211_event *ev) > +{ > + struct sk_buff *msg; > + > + msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); > + if (!msg) > + return; > + > + if (nl80211_send_intermediate_msg(msg, rdev, netdev, 0, 0, 0, ev, > + NL80211_CMD_IM_SCAN_RESULT) < 0) { > + nlmsg_free(msg); > + return; > + } > + > + genlmsg_multicast_netns(wiphy_net(&rdev->wiphy), msg, 0, > + nl80211_scan_mcgrp.id, GFP_KERNEL); > +} This will generate LOTS of messages. Maybe it'd be worthwhile to not multicast them but unicast them to the socket that requested the scan? 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