Search Linux Wireless

Re: Sending netlink messages in mac80211 tx handler

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

 



Zhu Yi wrote:
>>         void* hdr;
>>
>>         if(!skb)
>>                 goto out;
>>
>>         hdr = genlmsg_put(skb, 0, 0, &nl80211_fam, 0, NL80211_CMD_DISCOSEC);
>>         if(IS_ERR(hdr))
>>                 goto free_skb;
>>
>>         nla_put_u32(skb, NL80211_ATTR_DISCOSEC_HELO, 42);
>>         genlmsg_end(skb, hdr);
>>         genlmsg_unicast(skb, get_daemon_pid());
>>
>> free_skb:
>>         nlmsg_free(skb);
> 
> No need to free on the correct path. The skb is added to the
> receive_queue directly for Rx.
> 
> Thanks,
> -yi
> 

Thank you for your hint! I searched for hours and couldn't
find the problem. It's working great now.

Regards,
  Reiner
--
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 Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux