backports: use genl_info_snd_portid() at an other place.
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Aug 2013 23:38:00 +0000 (01:38 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 18:43:04 +0000 (11:43 -0700)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
patches/collateral-evolutions/network/0005-netlink-portid/nl80211.patch

index 4664bc124e27f19e204e010707b33a16764362a0..478c4e40e0f9087ffe686729b6eec90693bacf90 100644 (file)
                             NL80211_CMD_GET_WOWLAN);
        if (!hdr)
                goto nla_put_failure;
-@@ -8098,7 +8098,7 @@ static int nl80211_register_unexpected_f
+@@ -8152,7 +8152,7 @@ static int nl80211_get_coalesce(struct s
+       if (!msg)
+               return -ENOMEM;
+-      hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
++      hdr = nl80211hdr_put(msg, genl_info_snd_portid(info), info->snd_seq, 0,
+                            NL80211_CMD_GET_COALESCE);
+       if (!hdr)
+               goto nla_put_failure;
+@@ -8405,7 +8405,7 @@ static int nl80211_register_unexpected_f
        if (wdev->ap_unexpected_nlportid)
                return -EBUSY;