Hi Srinivas,

>  include/net/cfg80211.h       | 42 ++++++++++++++++++++++++++
>  include/uapi/linux/nl80211.h |  7 +++++
>  net/wireless/nl80211.c       | 72 
> ++++++++++++++++++++++++++++++++++++++++++++
>  net/wireless/rdev-ops.h      | 13 ++++++++
>  net/wireless/trace.h         | 38 +++++++++++++++++++++++
>  5 files changed, 172 insertions(+)

...

> +void cfg80211_update_owe_info_event(struct net_device *netdev,
> +                                   struct cfg80211_update_owe_info *owe_info,
> +                                   gfp_t gfp)
> +{
> +       struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
> +       struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);
> +       struct sk_buff *msg;
> +       void *hdr;
> +
> +       trace_cfg80211_update_owe_info_event(wiphy, netdev, owe_info);
> +
> +       msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp);
> +       if (!msg)
> +               return;
> +
> +       hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_UPDATE_OWE_INFO);
> +       if (!hdr)
> +               goto nla_put_failure;
> +
> +       if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) ||
> +           nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
> +           nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, owe_info->peer))
> +               goto nla_put_failure;
> +
> +       if (nla_put(msg, NL80211_ATTR_IE, owe_info->ie_len, owe_info->ie))
> +               goto nla_put_failure;

Maybe worth adding sanity check if IE length is non-zero ?


Reviewed-by: Sergey Matyukevich <sergey.matyukevich...@quantenna.com>

Regards,
Sergey

Reply via email to