[PATCH] compat-wireless: fix netlink portid patch for nl80211

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

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 patches/0005-netlink-portid.patch | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/patches/0005-netlink-portid.patch b/patches/0005-netlink-portid.patch
index ee9bc85..ebf10b6 100644
--- a/patches/0005-netlink-portid.patch
+++ b/patches/0005-netlink-portid.patch
@@ -70,11 +70,11 @@ this one should other drivers / subsystem need this change.
  			continue;
  		if (++idx <= start)
  			continue;
--		if (nl80211_send_wiphy(skb, NETLINK_CB(cb->skb).portid,
-+		if (nl80211_send_wiphy(skb, NETLINK_CB_PORTID(skb),
- 				       cb->nlh->nlmsg_seq, NLM_F_MULTI,
- 				       dev) < 0) {
- 			idx--;
+-		ret = nl80211_send_wiphy(skb, NETLINK_CB(cb->skb).portid,
++		ret = nl80211_send_wiphy(skb, NETLINK_CB_PORTID(skb),
+ 					 cb->nlh->nlmsg_seq, NLM_F_MULTI,
+ 					 dev);
+ 		if (ret < 0) {
 @@ -1300,7 +1300,7 @@ static int nl80211_get_wiphy(struct sk_buff *skb, struct genl_info *info)
  	if (!msg)
  		return -ENOMEM;
-- 
1.8.0



--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux