diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /net/wireless/wext-core.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'net/wireless/wext-core.c')
-rw-r--r-- | net/wireless/wext-core.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c index 8f5116f5af19..fdbc23c10d8c 100644 --- a/net/wireless/wext-core.c +++ b/net/wireless/wext-core.c | |||
@@ -467,8 +467,8 @@ void wireless_send_event(struct net_device * dev, | |||
467 | * The best the driver could do is to log an error message. | 467 | * The best the driver could do is to log an error message. |
468 | * We will do it ourselves instead... | 468 | * We will do it ourselves instead... |
469 | */ | 469 | */ |
470 | printk(KERN_ERR "%s (WE) : Invalid/Unknown Wireless Event (0x%04X)\n", | 470 | netdev_err(dev, "(WE) : Invalid/Unknown Wireless Event (0x%04X)\n", |
471 | dev->name, cmd); | 471 | cmd); |
472 | return; | 472 | return; |
473 | } | 473 | } |
474 | 474 | ||
@@ -476,11 +476,13 @@ void wireless_send_event(struct net_device * dev, | |||
476 | if (descr->header_type == IW_HEADER_TYPE_POINT) { | 476 | if (descr->header_type == IW_HEADER_TYPE_POINT) { |
477 | /* Check if number of token fits within bounds */ | 477 | /* Check if number of token fits within bounds */ |
478 | if (wrqu->data.length > descr->max_tokens) { | 478 | if (wrqu->data.length > descr->max_tokens) { |
479 | printk(KERN_ERR "%s (WE) : Wireless Event too big (%d)\n", dev->name, wrqu->data.length); | 479 | netdev_err(dev, "(WE) : Wireless Event too big (%d)\n", |
480 | wrqu->data.length); | ||
480 | return; | 481 | return; |
481 | } | 482 | } |
482 | if (wrqu->data.length < descr->min_tokens) { | 483 | if (wrqu->data.length < descr->min_tokens) { |
483 | printk(KERN_ERR "%s (WE) : Wireless Event too small (%d)\n", dev->name, wrqu->data.length); | 484 | netdev_err(dev, "(WE) : Wireless Event too small (%d)\n", |
485 | wrqu->data.length); | ||
484 | return; | 486 | return; |
485 | } | 487 | } |
486 | /* Calculate extra_len - extra is NULL for restricted events */ | 488 | /* Calculate extra_len - extra is NULL for restricted events */ |
@@ -611,7 +613,7 @@ struct iw_statistics *get_wireless_stats(struct net_device *dev) | |||
611 | #endif | 613 | #endif |
612 | 614 | ||
613 | #ifdef CONFIG_CFG80211_WEXT | 615 | #ifdef CONFIG_CFG80211_WEXT |
614 | if (dev->ieee80211_ptr && dev->ieee80211_ptr && | 616 | if (dev->ieee80211_ptr && |
615 | dev->ieee80211_ptr->wiphy && | 617 | dev->ieee80211_ptr->wiphy && |
616 | dev->ieee80211_ptr->wiphy->wext && | 618 | dev->ieee80211_ptr->wiphy->wext && |
617 | dev->ieee80211_ptr->wiphy->wext->get_wireless_stats) | 619 | dev->ieee80211_ptr->wiphy->wext->get_wireless_stats) |