aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-05-25 04:42:21 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-25 04:42:21 -0400
commitc649c0e31d5736a4b7c5c3454182091dda4bbe62 (patch)
tree93da11bf4ea828611ab5277a7dbadf57724c2b1e /net/wireless
parentdaebafed7fef54fcc73d2d01431122cfd578d1e0 (diff)
parent4e2fd555199977c5994d1a4d2d3b8761b20ca4c7 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/ath/ath5k/phy.c drivers/net/wireless/iwlwifi/iwl-agn.c drivers/net/wireless/iwlwifi/iwl3945-base.c
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c7
-rw-r--r--net/wireless/wext.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index df0ced9405d3..f87ac1df2df5 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1680,6 +1680,13 @@ static int regulatory_hint_core(const char *alpha2)
1680 1680
1681 queue_regulatory_request(request); 1681 queue_regulatory_request(request);
1682 1682
1683 /*
1684 * This ensures last_request is populated once modules
1685 * come swinging in and calling regulatory hints and
1686 * wiphy_apply_custom_regulatory().
1687 */
1688 flush_scheduled_work();
1689
1683 return 0; 1690 return 0;
1684} 1691}
1685 1692
diff --git a/net/wireless/wext.c b/net/wireless/wext.c
index 22378daceb94..252c2010c2e2 100644
--- a/net/wireless/wext.c
+++ b/net/wireless/wext.c
@@ -820,6 +820,13 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
820 err = -EFAULT; 820 err = -EFAULT;
821 goto out; 821 goto out;
822 } 822 }
823
824 if (cmd == SIOCSIWENCODEEXT) {
825 struct iw_encode_ext *ee = (void *) extra;
826
827 if (iwp->length < sizeof(*ee) + ee->key_len)
828 return -EFAULT;
829 }
823 } 830 }
824 831
825 err = handler(dev, info, (union iwreq_data *) iwp, extra); 832 err = handler(dev, info, (union iwreq_data *) iwp, extra);