On Sat, Oct 13, 2018 at 05:00:38PM +0800, [email protected] wrote:
> +rtw_beacon_get(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
> +{
> +     struct sk_buff *skb_new;
> +
> +     if (vif->type != NL80211_IFTYPE_AP &&
> +         vif->type != NL80211_IFTYPE_ADHOC &&
> +         !ieee80211_vif_is_mesh(vif)) {
> +             skb_new = alloc_skb(1, GFP_KERNEL);
> +             skb_put(skb_new, 1);

Error check.

Thanks
Stanislaw

Reply via email to