diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index 0370403fd0bd..318ed3c9fe74 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -1586,9 +1586,9 @@ il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame, | |||
1586 | return 0; | 1586 | return 0; |
1587 | 1587 | ||
1588 | frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); | 1588 | frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); |
1589 | memcpy(frame->da, il_bcast_addr, ETH_ALEN); | 1589 | eth_broadcast_addr(frame->da); |
1590 | memcpy(frame->sa, ta, ETH_ALEN); | 1590 | memcpy(frame->sa, ta, ETH_ALEN); |
1591 | memcpy(frame->bssid, il_bcast_addr, ETH_ALEN); | 1591 | eth_broadcast_addr(frame->bssid); |
1592 | frame->seq_ctrl = 0; | 1592 | frame->seq_ctrl = 0; |
1593 | 1593 | ||
1594 | len += 24; | 1594 | len += 24; |
@@ -4860,7 +4860,7 @@ EXPORT_SYMBOL(il_add_beacon_time); | |||
4860 | 4860 | ||
4861 | #ifdef CONFIG_PM | 4861 | #ifdef CONFIG_PM |
4862 | 4862 | ||
4863 | int | 4863 | static int |
4864 | il_pci_suspend(struct device *device) | 4864 | il_pci_suspend(struct device *device) |
4865 | { | 4865 | { |
4866 | struct pci_dev *pdev = to_pci_dev(device); | 4866 | struct pci_dev *pdev = to_pci_dev(device); |
@@ -4877,9 +4877,8 @@ il_pci_suspend(struct device *device) | |||
4877 | 4877 | ||
4878 | return 0; | 4878 | return 0; |
4879 | } | 4879 | } |
4880 | EXPORT_SYMBOL(il_pci_suspend); | ||
4881 | 4880 | ||
4882 | int | 4881 | static int |
4883 | il_pci_resume(struct device *device) | 4882 | il_pci_resume(struct device *device) |
4884 | { | 4883 | { |
4885 | struct pci_dev *pdev = to_pci_dev(device); | 4884 | struct pci_dev *pdev = to_pci_dev(device); |
@@ -4906,16 +4905,8 @@ il_pci_resume(struct device *device) | |||
4906 | 4905 | ||
4907 | return 0; | 4906 | return 0; |
4908 | } | 4907 | } |
4909 | EXPORT_SYMBOL(il_pci_resume); | ||
4910 | 4908 | ||
4911 | const struct dev_pm_ops il_pm_ops = { | 4909 | SIMPLE_DEV_PM_OPS(il_pm_ops, il_pci_suspend, il_pci_resume); |
4912 | .suspend = il_pci_suspend, | ||
4913 | .resume = il_pci_resume, | ||
4914 | .freeze = il_pci_suspend, | ||
4915 | .thaw = il_pci_resume, | ||
4916 | .poweroff = il_pci_suspend, | ||
4917 | .restore = il_pci_resume, | ||
4918 | }; | ||
4919 | EXPORT_SYMBOL(il_pm_ops); | 4910 | EXPORT_SYMBOL(il_pm_ops); |
4920 | 4911 | ||
4921 | #endif /* CONFIG_PM */ | 4912 | #endif /* CONFIG_PM */ |