compat-drivers: fix 0006-disable-dump-adjust-on-old-kernels.patch
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Wed, 13 Mar 2013 01:06:55 +0000 (18:06 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Wed, 13 Mar 2013 01:06:55 +0000 (18:06 -0700)
nl80211_dump_wiphy() got some huge updates throwing
off the hunks completley. This required some manual
updates.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
patches/collateral-evolutions/network/0006-disable-dump-adjust-on-old-kernels.patch

index aff39799ed4daa868182063903303730cfbbd67c..ff7abf757843d2217b5ced068ba2821efb37b9ab 100644 (file)
@@ -28,19 +28,19 @@ Date:   Fri Mar 1 14:03:49 2013 +0100
 
 --- a/net/wireless/nl80211.c
 +++ b/net/wireless/nl80211.c
-@@ -1321,6 +1321,7 @@ static int nl80211_dump_wiphy(struct sk_
-                                        cb->nlh->nlmsg_seq, NLM_F_MULTI,
-                                        dev);
-               if (ret < 0) {
+@@ -1600,6 +1600,7 @@ static int nl80211_dump_wiphy(struct sk_
+                                                &cb->args[2],
+                                                &cb->args[3]);
+                       if (ret < 0) {
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)
-                       /*
-                        * If sending the wiphy data didn't fit (ENOBUFS or
-                        * EMSGSIZE returned), this SKB is still empty (so
-@@ -1340,6 +1341,7 @@ static int nl80211_dump_wiphy(struct sk_
-                               mutex_unlock(&cfg80211_mutex);
-                               return 1;
-                       }
+                               /*
+                                * If sending the wiphy data didn't fit (ENOBUFS
+                                * or EMSGSIZE returned), this SKB is still
+@@ -1620,6 +1621,7 @@ static int nl80211_dump_wiphy(struct sk_
+                                       mutex_unlock(&cfg80211_mutex);
+                                       return 1;
+                               }
 +#endif
-                       idx--;
-                       break;
-               }
+                               idx--;
+                               break;
+                       }