Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
48d3ff82
Commit
48d3ff82
authored
Aug 19, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
parents
1aef70ef
6a017e04
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
174 additions
and
137 deletions
+174
-137
drivers/net/wireless/adm8211.c
drivers/net/wireless/adm8211.c
+4
-4
drivers/net/wireless/at76c50x-usb.c
drivers/net/wireless/at76c50x-usb.c
+11
-11
drivers/net/wireless/ath/ar9170/main.c
drivers/net/wireless/ath/ar9170/main.c
+2
-2
drivers/net/wireless/ipw2x00/ipw2100.c
drivers/net/wireless/ipw2x00/ipw2100.c
+0
-8
drivers/net/wireless/iwlwifi/iwl-1000.c
drivers/net/wireless/iwlwifi/iwl-1000.c
+2
-2
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-3945.c
+2
-2
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-4965.c
+1
-1
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-5000.c
+7
-7
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
+16
-16
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-agn.c
+44
-1
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-core.c
+0
-45
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-core.h
+0
-3
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-dev.h
+2
-1
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl3945-base.c
+50
-1
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mac80211_hwsim.c
+1
-1
drivers/net/wireless/mwl8k.c
drivers/net/wireless/mwl8k.c
+17
-17
drivers/net/wireless/p54/eeprom.c
drivers/net/wireless/p54/eeprom.c
+3
-3
drivers/net/wireless/p54/fwio.c
drivers/net/wireless/p54/fwio.c
+1
-1
drivers/net/wireless/p54/led.c
drivers/net/wireless/p54/led.c
+2
-2
drivers/net/wireless/p54/p54pci.c
drivers/net/wireless/p54/p54pci.c
+1
-1
drivers/net/wireless/p54/txrx.c
drivers/net/wireless/p54/txrx.c
+1
-1
drivers/net/wireless/rtl818x/rtl8180_dev.c
drivers/net/wireless/rtl818x/rtl8180_dev.c
+3
-3
drivers/net/wireless/rtl818x/rtl8187_dev.c
drivers/net/wireless/rtl818x/rtl8187_dev.c
+2
-2
drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
+2
-2
No files found.
drivers/net/wireless/adm8211.c
View file @
48d3ff82
...
@@ -732,7 +732,7 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan)
...
@@ -732,7 +732,7 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan)
/* Nothing to do for ADMtek BBP */
/* Nothing to do for ADMtek BBP */
}
else
if
(
priv
->
bbp_type
!=
ADM8211_TYPE_ADMTEK
)
}
else
if
(
priv
->
bbp_type
!=
ADM8211_TYPE_ADMTEK
)
wiphy_debug
(
dev
->
wiphy
,
"unsupported
bbp
type %d
\n
"
,
wiphy_debug
(
dev
->
wiphy
,
"unsupported
BBP
type %d
\n
"
,
priv
->
bbp_type
);
priv
->
bbp_type
);
ADM8211_RESTORE
();
ADM8211_RESTORE
();
...
@@ -1032,7 +1032,7 @@ static int adm8211_hw_init_bbp(struct ieee80211_hw *dev)
...
@@ -1032,7 +1032,7 @@ static int adm8211_hw_init_bbp(struct ieee80211_hw *dev)
break
;
break
;
}
}
}
else
}
else
wiphy_debug
(
dev
->
wiphy
,
"unsupported
bbp
%d
\n
"
,
priv
->
bbp_type
);
wiphy_debug
(
dev
->
wiphy
,
"unsupported
BBP
%d
\n
"
,
priv
->
bbp_type
);
ADM8211_CSR_WRITE
(
SYNRF
,
0
);
ADM8211_CSR_WRITE
(
SYNRF
,
0
);
...
@@ -1525,7 +1525,7 @@ static int adm8211_start(struct ieee80211_hw *dev)
...
@@ -1525,7 +1525,7 @@ static int adm8211_start(struct ieee80211_hw *dev)
retval
=
request_irq
(
priv
->
pdev
->
irq
,
adm8211_interrupt
,
retval
=
request_irq
(
priv
->
pdev
->
irq
,
adm8211_interrupt
,
IRQF_SHARED
,
"adm8211"
,
dev
);
IRQF_SHARED
,
"adm8211"
,
dev
);
if
(
retval
)
{
if
(
retval
)
{
wiphy_err
(
dev
->
wiphy
,
"failed to register
irq
handler
\n
"
);
wiphy_err
(
dev
->
wiphy
,
"failed to register
IRQ
handler
\n
"
);
goto
fail
;
goto
fail
;
}
}
...
@@ -1902,7 +1902,7 @@ static int __devinit adm8211_probe(struct pci_dev *pdev,
...
@@ -1902,7 +1902,7 @@ static int __devinit adm8211_probe(struct pci_dev *pdev,
goto
err_free_eeprom
;
goto
err_free_eeprom
;
}
}
wiphy_info
(
dev
->
wiphy
,
"hwaddr %p
m, r
ev 0x%02x
\n
"
,
wiphy_info
(
dev
->
wiphy
,
"hwaddr %p
M, R
ev 0x%02x
\n
"
,
dev
->
wiphy
->
perm_addr
,
pdev
->
revision
);
dev
->
wiphy
->
perm_addr
,
pdev
->
revision
);
return
0
;
return
0
;
...
...
drivers/net/wireless/at76c50x-usb.c
View file @
48d3ff82
...
@@ -655,7 +655,7 @@ static int at76_get_hw_config(struct at76_priv *priv)
...
@@ -655,7 +655,7 @@ static int at76_get_hw_config(struct at76_priv *priv)
exit:
exit:
kfree
(
hwcfg
);
kfree
(
hwcfg
);
if
(
ret
<
0
)
if
(
ret
<
0
)
wiphy_err
(
priv
->
hw
->
wiphy
,
"cannot get
hw c
onfig (error %d)
\n
"
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"cannot get
HW C
onfig (error %d)
\n
"
,
ret
);
ret
);
return
ret
;
return
ret
;
...
@@ -960,7 +960,7 @@ static void at76_dump_mib_mac_addr(struct at76_priv *priv)
...
@@ -960,7 +960,7 @@ static void at76_dump_mib_mac_addr(struct at76_priv *priv)
sizeof
(
struct
mib_mac_addr
));
sizeof
(
struct
mib_mac_addr
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
mac_addr
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
MAC_ADDR
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -989,7 +989,7 @@ static void at76_dump_mib_mac_wep(struct at76_priv *priv)
...
@@ -989,7 +989,7 @@ static void at76_dump_mib_mac_wep(struct at76_priv *priv)
sizeof
(
struct
mib_mac_wep
));
sizeof
(
struct
mib_mac_wep
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
mac_wep
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
MAC_WEP
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -1026,7 +1026,7 @@ static void at76_dump_mib_mac_mgmt(struct at76_priv *priv)
...
@@ -1026,7 +1026,7 @@ static void at76_dump_mib_mac_mgmt(struct at76_priv *priv)
sizeof
(
struct
mib_mac_mgmt
));
sizeof
(
struct
mib_mac_mgmt
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
mac_mgmt
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
MAC_MGMT
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -1062,7 +1062,7 @@ static void at76_dump_mib_mac(struct at76_priv *priv)
...
@@ -1062,7 +1062,7 @@ static void at76_dump_mib_mac(struct at76_priv *priv)
ret
=
at76_get_mib
(
priv
->
udev
,
MIB_MAC
,
m
,
sizeof
(
struct
mib_mac
));
ret
=
at76_get_mib
(
priv
->
udev
,
MIB_MAC
,
m
,
sizeof
(
struct
mib_mac
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
mac
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
MAC
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -1099,7 +1099,7 @@ static void at76_dump_mib_phy(struct at76_priv *priv)
...
@@ -1099,7 +1099,7 @@ static void at76_dump_mib_phy(struct at76_priv *priv)
ret
=
at76_get_mib
(
priv
->
udev
,
MIB_PHY
,
m
,
sizeof
(
struct
mib_phy
));
ret
=
at76_get_mib
(
priv
->
udev
,
MIB_PHY
,
m
,
sizeof
(
struct
mib_phy
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
phy
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
PHY
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -1132,7 +1132,7 @@ static void at76_dump_mib_local(struct at76_priv *priv)
...
@@ -1132,7 +1132,7 @@ static void at76_dump_mib_local(struct at76_priv *priv)
ret
=
at76_get_mib
(
priv
->
udev
,
MIB_LOCAL
,
m
,
sizeof
(
struct
mib_local
));
ret
=
at76_get_mib
(
priv
->
udev
,
MIB_LOCAL
,
m
,
sizeof
(
struct
mib_local
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
local
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
LOCAL
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -1158,7 +1158,7 @@ static void at76_dump_mib_mdomain(struct at76_priv *priv)
...
@@ -1158,7 +1158,7 @@ static void at76_dump_mib_mdomain(struct at76_priv *priv)
sizeof
(
struct
mib_mdomain
));
sizeof
(
struct
mib_mdomain
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"at76_get_mib (
mdomain
) failed: %d
\n
"
,
ret
);
"at76_get_mib (
MDOMAIN
) failed: %d
\n
"
,
ret
);
goto
exit
;
goto
exit
;
}
}
...
@@ -1229,7 +1229,7 @@ static int at76_submit_rx_urb(struct at76_priv *priv)
...
@@ -1229,7 +1229,7 @@ static int at76_submit_rx_urb(struct at76_priv *priv)
struct
sk_buff
*
skb
=
priv
->
rx_skb
;
struct
sk_buff
*
skb
=
priv
->
rx_skb
;
if
(
!
priv
->
rx_urb
)
{
if
(
!
priv
->
rx_urb
)
{
wiphy_err
(
priv
->
hw
->
wiphy
,
"%s: priv->rx_urb is
null
\n
"
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"%s: priv->rx_urb is
NULL
\n
"
,
__func__
);
__func__
);
return
-
EFAULT
;
return
-
EFAULT
;
}
}
...
@@ -1792,7 +1792,7 @@ static int at76_mac80211_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
...
@@ -1792,7 +1792,7 @@ static int at76_mac80211_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
wiphy_err
(
priv
->
hw
->
wiphy
,
"error in tx submit urb: %d
\n
"
,
ret
);
wiphy_err
(
priv
->
hw
->
wiphy
,
"error in tx submit urb: %d
\n
"
,
ret
);
if
(
ret
==
-
EINVAL
)
if
(
ret
==
-
EINVAL
)
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"-
einval
: tx urb %p hcpriv %p complete %p
\n
"
,
"-
EINVAL
: tx urb %p hcpriv %p complete %p
\n
"
,
priv
->
tx_urb
,
priv
->
tx_urb
,
priv
->
tx_urb
->
hcpriv
,
priv
->
tx_urb
->
complete
);
priv
->
tx_urb
->
hcpriv
,
priv
->
tx_urb
->
complete
);
}
}
...
@@ -2310,7 +2310,7 @@ static int at76_init_new_device(struct at76_priv *priv,
...
@@ -2310,7 +2310,7 @@ static int at76_init_new_device(struct at76_priv *priv,
priv
->
mac80211_registered
=
1
;
priv
->
mac80211_registered
=
1
;
wiphy_info
(
priv
->
hw
->
wiphy
,
"
usb %s, mac %pm
, firmware %d.%d.%d-%d
\n
"
,
wiphy_info
(
priv
->
hw
->
wiphy
,
"
USB %s, MAC %pM
, firmware %d.%d.%d-%d
\n
"
,
dev_name
(
&
interface
->
dev
),
priv
->
mac_addr
,
dev_name
(
&
interface
->
dev
),
priv
->
mac_addr
,
priv
->
fw_version
.
major
,
priv
->
fw_version
.
minor
,
priv
->
fw_version
.
major
,
priv
->
fw_version
.
minor
,
priv
->
fw_version
.
patch
,
priv
->
fw_version
.
build
);
priv
->
fw_version
.
patch
,
priv
->
fw_version
.
build
);
...
...
drivers/net/wireless/ath/ar9170/main.c
View file @
48d3ff82
...
@@ -245,7 +245,7 @@ static void __ar9170_dump_txstats(struct ar9170 *ar)
...
@@ -245,7 +245,7 @@ static void __ar9170_dump_txstats(struct ar9170 *ar)
{
{
int
i
;
int
i
;
wiphy_debug
(
ar
->
hw
->
wiphy
,
"
qos
queue stats
\n
"
);
wiphy_debug
(
ar
->
hw
->
wiphy
,
"
QoS
queue stats
\n
"
);
for
(
i
=
0
;
i
<
__AR9170_NUM_TXQ
;
i
++
)
for
(
i
=
0
;
i
<
__AR9170_NUM_TXQ
;
i
++
)
wiphy_debug
(
ar
->
hw
->
wiphy
,
wiphy_debug
(
ar
->
hw
->
wiphy
,
...
@@ -387,7 +387,7 @@ static struct sk_buff *ar9170_get_queued_skb(struct ar9170 *ar,
...
@@ -387,7 +387,7 @@ static struct sk_buff *ar9170_get_queued_skb(struct ar9170 *ar,
if
(
mac
&&
compare_ether_addr
(
ieee80211_get_DA
(
hdr
),
mac
))
{
if
(
mac
&&
compare_ether_addr
(
ieee80211_get_DA
(
hdr
),
mac
))
{
#ifdef AR9170_QUEUE_DEBUG
#ifdef AR9170_QUEUE_DEBUG
wiphy_debug
(
ar
->
hw
->
wiphy
,
wiphy_debug
(
ar
->
hw
->
wiphy
,
"skip frame =>
da %pm != %pm
\n
"
,
"skip frame =>
DA %pM != %pM
\n
"
,
mac
,
ieee80211_get_DA
(
hdr
));
mac
,
ieee80211_get_DA
(
hdr
));
ar9170_print_txheader
(
ar
,
skb
);
ar9170_print_txheader
(
ar
,
skb
);
#endif
/* AR9170_QUEUE_DEBUG */
#endif
/* AR9170_QUEUE_DEBUG */
...
...
drivers/net/wireless/ipw2x00/ipw2100.c
View file @
48d3ff82
...
@@ -2723,14 +2723,6 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv)
...
@@ -2723,14 +2723,6 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv)
packet
=
&
priv
->
rx_buffers
[
i
];
packet
=
&
priv
->
rx_buffers
[
i
];
/* Sync the DMA for the STATUS buffer so CPU is sure to get
* the correct values */
pci_dma_sync_single_for_cpu
(
priv
->
pci_dev
,
sq
->
nic
+
sizeof
(
struct
ipw2100_status
)
*
i
,
sizeof
(
struct
ipw2100_status
),
PCI_DMA_FROMDEVICE
);
/* Sync the DMA for the RX buffer so CPU is sure to get
/* Sync the DMA for the RX buffer so CPU is sure to get
* the correct values */
* the correct values */
pci_dma_sync_single_for_cpu
(
priv
->
pci_dev
,
packet
->
dma_addr
,
pci_dma_sync_single_for_cpu
(
priv
->
pci_dev
,
packet
->
dma_addr
,
...
...
drivers/net/wireless/iwlwifi/iwl-1000.c
View file @
48d3ff82
...
@@ -265,7 +265,7 @@ struct iwl_cfg iwl1000_bgn_cfg = {
...
@@ -265,7 +265,7 @@ struct iwl_cfg iwl1000_bgn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
128
,
.
max_event_log_size
=
128
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -297,7 +297,7 @@ struct iwl_cfg iwl1000_bg_cfg = {
...
@@ -297,7 +297,7 @@ struct iwl_cfg iwl1000_bg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
128
,
.
max_event_log_size
=
128
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
...
drivers/net/wireless/iwlwifi/iwl-3945.c
View file @
48d3ff82
...
@@ -2731,7 +2731,7 @@ static struct iwl_cfg iwl3945_bg_cfg = {
...
@@ -2731,7 +2731,7 @@ static struct iwl_cfg iwl3945_bg_cfg = {
.
led_compensation
=
64
,
.
led_compensation
=
64
,
.
broken_powersave
=
true
,
.
broken_powersave
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
tx_power_by_driver
=
true
,
.
tx_power_by_driver
=
true
,
};
};
...
@@ -2752,7 +2752,7 @@ static struct iwl_cfg iwl3945_abg_cfg = {
...
@@ -2752,7 +2752,7 @@ static struct iwl_cfg iwl3945_abg_cfg = {
.
led_compensation
=
64
,
.
led_compensation
=
64
,
.
broken_powersave
=
true
,
.
broken_powersave
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
tx_power_by_driver
=
true
,
.
tx_power_by_driver
=
true
,
};
};
...
...
drivers/net/wireless/iwlwifi/iwl-4965.c
View file @
48d3ff82
...
@@ -2322,7 +2322,7 @@ struct iwl_cfg iwl4965_agn_cfg = {
...
@@ -2322,7 +2322,7 @@ struct iwl_cfg iwl4965_agn_cfg = {
.
led_compensation
=
61
,
.
led_compensation
=
61
,
.
chain_noise_num_beacons
=
IWL4965_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL4965_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
temperature_kelvin
=
true
,
.
temperature_kelvin
=
true
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
tx_power_by_driver
=
true
,
.
tx_power_by_driver
=
true
,
...
...
drivers/net/wireless/iwlwifi/iwl-5000.c
View file @
48d3ff82
...
@@ -510,7 +510,7 @@ struct iwl_cfg iwl5300_agn_cfg = {
...
@@ -510,7 +510,7 @@ struct iwl_cfg iwl5300_agn_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -541,7 +541,7 @@ struct iwl_cfg iwl5100_bgn_cfg = {
...
@@ -541,7 +541,7 @@ struct iwl_cfg iwl5100_bgn_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -570,7 +570,7 @@ struct iwl_cfg iwl5100_abg_cfg = {
...
@@ -570,7 +570,7 @@ struct iwl_cfg iwl5100_abg_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -601,7 +601,7 @@ struct iwl_cfg iwl5100_agn_cfg = {
...
@@ -601,7 +601,7 @@ struct iwl_cfg iwl5100_agn_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -632,7 +632,7 @@ struct iwl_cfg iwl5350_agn_cfg = {
...
@@ -632,7 +632,7 @@ struct iwl_cfg iwl5350_agn_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -663,7 +663,7 @@ struct iwl_cfg iwl5150_agn_cfg = {
...
@@ -663,7 +663,7 @@ struct iwl_cfg iwl5150_agn_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -693,7 +693,7 @@ struct iwl_cfg iwl5150_abg_cfg = {
...
@@ -693,7 +693,7 @@ struct iwl_cfg iwl5150_abg_cfg = {
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
chain_noise_num_beacons
=
IWL_CAL_NUM_BEACONS
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
...
drivers/net/wireless/iwlwifi/iwl-6000.c
View file @
48d3ff82
...
@@ -388,7 +388,7 @@ struct iwl_cfg iwl6000g2a_2agn_cfg = {
...
@@ -388,7 +388,7 @@ struct iwl_cfg iwl6000g2a_2agn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -424,7 +424,7 @@ struct iwl_cfg iwl6000g2a_2abg_cfg = {
...
@@ -424,7 +424,7 @@ struct iwl_cfg iwl6000g2a_2abg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -459,7 +459,7 @@ struct iwl_cfg iwl6000g2a_2bg_cfg = {
...
@@ -459,7 +459,7 @@ struct iwl_cfg iwl6000g2a_2bg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -496,7 +496,7 @@ struct iwl_cfg iwl6000g2b_2agn_cfg = {
...
@@ -496,7 +496,7 @@ struct iwl_cfg iwl6000g2b_2agn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -532,7 +532,7 @@ struct iwl_cfg iwl6000g2b_2abg_cfg = {
...
@@ -532,7 +532,7 @@ struct iwl_cfg iwl6000g2b_2abg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -570,7 +570,7 @@ struct iwl_cfg iwl6000g2b_2bgn_cfg = {
...
@@ -570,7 +570,7 @@ struct iwl_cfg iwl6000g2b_2bgn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -606,7 +606,7 @@ struct iwl_cfg iwl6000g2b_2bg_cfg = {
...
@@ -606,7 +606,7 @@ struct iwl_cfg iwl6000g2b_2bg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -644,7 +644,7 @@ struct iwl_cfg iwl6000g2b_bgn_cfg = {
...
@@ -644,7 +644,7 @@ struct iwl_cfg iwl6000g2b_bgn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -680,7 +680,7 @@ struct iwl_cfg iwl6000g2b_bg_cfg = {
...
@@ -680,7 +680,7 @@ struct iwl_cfg iwl6000g2b_bg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
LONG_
MONITORING_PERIOD
,
.
max_event_log_size
=
512
,
.
max_event_log_size
=
512
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
.
chain_noise_calib_by_driver
=
true
,
...
@@ -721,7 +721,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = {
...
@@ -721,7 +721,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -756,7 +756,7 @@ struct iwl_cfg iwl6000i_2abg_cfg = {
...
@@ -756,7 +756,7 @@ struct iwl_cfg iwl6000i_2abg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -791,7 +791,7 @@ struct iwl_cfg iwl6000i_2bg_cfg = {
...
@@ -791,7 +791,7 @@ struct iwl_cfg iwl6000i_2bg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -828,7 +828,7 @@ struct iwl_cfg iwl6050_2agn_cfg = {
...
@@ -828,7 +828,7 @@ struct iwl_cfg iwl6050_2agn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1500
,
.
chain_noise_scale
=
1500
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -866,7 +866,7 @@ struct iwl_cfg iwl6050g2_bgn_cfg = {
...
@@ -866,7 +866,7 @@ struct iwl_cfg iwl6050g2_bgn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1500
,
.
chain_noise_scale
=
1500
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -902,7 +902,7 @@ struct iwl_cfg iwl6050_2abg_cfg = {
...
@@ -902,7 +902,7 @@ struct iwl_cfg iwl6050_2abg_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1500
,
.
chain_noise_scale
=
1500
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
@@ -940,7 +940,7 @@ struct iwl_cfg iwl6000_3agn_cfg = {
...
@@ -940,7 +940,7 @@ struct iwl_cfg iwl6000_3agn_cfg = {
.
support_ct_kill_exit
=
true
,
.
support_ct_kill_exit
=
true
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
plcp_delta_threshold
=
IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
.
chain_noise_scale
=
1000
,
.
chain_noise_scale
=
1000
,
.
monitor_recover_period
=
IWL_MONITORING_PERIOD
,
.
monitor_recover_period
=
IWL_
DEF_
MONITORING_PERIOD
,
.
max_event_log_size
=
1024
,
.
max_event_log_size
=
1024
,
.
ucode_tracing
=
true
,
.
ucode_tracing
=
true
,
.
sensitivity_calib_by_driver
=
true
,
.
sensitivity_calib_by_driver
=
true
,
...
...
drivers/net/wireless/iwlwifi/iwl-agn.c
View file @
48d3ff82
...
@@ -3667,6 +3667,49 @@ static void iwl_mac_channel_switch(struct ieee80211_hw *hw,
...
@@ -3667,6 +3667,49 @@ static void iwl_mac_channel_switch(struct ieee80211_hw *hw,
IWL_DEBUG_MAC80211
(
priv
,
"leave
\n
"
);
IWL_DEBUG_MAC80211
(
priv
,
"leave
\n
"
);
}
}
static
void
iwlagn_configure_filter
(
struct
ieee80211_hw
*
hw
,
unsigned
int
changed_flags
,
unsigned
int
*
total_flags
,
u64
multicast
)
{
struct
iwl_priv
*
priv
=
hw
->
priv
;
__le32
filter_or
=
0
,
filter_nand
=
0
;
#define CHK(test, flag) do { \
if (*total_flags & (test)) \
filter_or |= (flag); \
else \
filter_nand |= (flag); \
} while (0)
IWL_DEBUG_MAC80211
(
priv
,
"Enter: changed: 0x%x, total: 0x%x
\n
"
,
changed_flags
,
*
total_flags
);
CHK
(
FIF_OTHER_BSS
|
FIF_PROMISC_IN_BSS
,
RXON_FILTER_PROMISC_MSK
);
CHK
(
FIF_CONTROL
,
RXON_FILTER_CTL2HOST_MSK
);
CHK
(
FIF_BCN_PRBRESP_PROMISC
,
RXON_FILTER_BCON_AWARE_MSK
);
#undef CHK
mutex_lock
(
&
priv
->
mutex
);
priv
->
staging_rxon
.
filter_flags
&=
~
filter_nand
;
priv
->
staging_rxon
.
filter_flags
|=
filter_or
;
iwlcore_commit_rxon
(
priv
);
mutex_unlock
(
&
priv
->
mutex
);
/*
* Receiving all multicast frames is always enabled by the
* default flags setup in iwl_connection_init_rx_config()
* since we currently do not support programming multicast
* filters into the device.
*/
*
total_flags
&=
FIF_OTHER_BSS
|
FIF_ALLMULTI
|
FIF_PROMISC_IN_BSS
|
FIF_BCN_PRBRESP_PROMISC
|
FIF_CONTROL
;
}
static
void
iwl_mac_flush
(
struct
ieee80211_hw
*
hw
,
bool
drop
)
static
void
iwl_mac_flush
(
struct
ieee80211_hw
*
hw
,
bool
drop
)
{
{
struct
iwl_priv
*
priv
=
hw
->
priv
;
struct
iwl_priv
*
priv
=
hw
->
priv
;
...
@@ -3867,7 +3910,7 @@ static struct ieee80211_ops iwl_hw_ops = {
...
@@ -3867,7 +3910,7 @@ static struct ieee80211_ops iwl_hw_ops = {
.
add_interface
=
iwl_mac_add_interface
,
.
add_interface
=
iwl_mac_add_interface
,
.
remove_interface
=
iwl_mac_remove_interface
,
.
remove_interface
=
iwl_mac_remove_interface
,
.
config
=
iwl_mac_config
,
.
config
=
iwl_mac_config
,
.
configure_filter
=
iwl_configure_filter
,
.
configure_filter
=
iwl
agn
_configure_filter
,
.
set_key
=
iwl_mac_set_key
,
.
set_key
=
iwl_mac_set_key
,
.
update_tkip_key
=
iwl_mac_update_tkip_key
,
.
update_tkip_key
=
iwl_mac_update_tkip_key
,
.
conf_tx
=
iwl_mac_conf_tx
,
.
conf_tx
=
iwl_mac_conf_tx
,
...
...
drivers/net/wireless/iwlwifi/iwl-core.c
View file @
48d3ff82
...
@@ -1328,51 +1328,6 @@ int iwl_apm_init(struct iwl_priv *priv)
...
@@ -1328,51 +1328,6 @@ int iwl_apm_init(struct iwl_priv *priv)
EXPORT_SYMBOL
(
iwl_apm_init
);
EXPORT_SYMBOL
(
iwl_apm_init
);
void
iwl_configure_filter
(
struct
ieee80211_hw
*
hw
,
unsigned
int
changed_flags
,
unsigned
int
*
total_flags
,
u64
multicast
)
{
struct
iwl_priv
*
priv
=
hw
->
priv
;
__le32
filter_or
=
0
,
filter_nand
=
0
;
#define CHK(test, flag) do { \
if (*total_flags & (test)) \
filter_or |= (flag); \
else \
filter_nand |= (flag); \
} while (0)
IWL_DEBUG_MAC80211
(
priv
,
"Enter: changed: 0x%x, total: 0x%x
\n
"
,
changed_flags
,
*
total_flags
);
CHK
(
FIF_OTHER_BSS
|
FIF_PROMISC_IN_BSS
,
RXON_FILTER_PROMISC_MSK
);
CHK
(
FIF_CONTROL
,
RXON_FILTER_CTL2HOST_MSK
);
CHK
(
FIF_BCN_PRBRESP_PROMISC
,
RXON_FILTER_BCON_AWARE_MSK
);
#undef CHK
mutex_lock
(
&
priv
->
mutex
);
priv
->
staging_rxon
.
filter_flags
&=
~
filter_nand
;
priv
->
staging_rxon
.
filter_flags
|=
filter_or
;
iwlcore_commit_rxon
(
priv
);
mutex_unlock
(
&
priv
->
mutex
);
/*
* Receiving all multicast frames is always enabled by the
* default flags setup in iwl_connection_init_rx_config()
* since we currently do not support programming multicast
* filters into the device.
*/
*
total_flags
&=
FIF_OTHER_BSS
|
FIF_ALLMULTI
|
FIF_PROMISC_IN_BSS
|
FIF_BCN_PRBRESP_PROMISC
|
FIF_CONTROL
;
}
EXPORT_SYMBOL
(
iwl_configure_filter
);
int
iwl_set_hw_params
(
struct
iwl_priv
*
priv
)
int
iwl_set_hw_params
(
struct
iwl_priv
*
priv
)
{
{
priv
->
hw_params
.
max_rxq_size
=
RX_QUEUE_SIZE
;
priv
->
hw_params
.
max_rxq_size
=
RX_QUEUE_SIZE
;
...
...
drivers/net/wireless/iwlwifi/iwl-core.h
View file @
48d3ff82
...
@@ -372,9 +372,6 @@ int iwl_set_decrypted_flag(struct iwl_priv *priv,
...
@@ -372,9 +372,6 @@ int iwl_set_decrypted_flag(struct iwl_priv *priv,
u32
decrypt_res
,
u32
decrypt_res
,
struct
ieee80211_rx_status
*
stats
);
struct
ieee80211_rx_status
*
stats
);
void
iwl_irq_handle_error
(
struct
iwl_priv
*
priv
);
void
iwl_irq_handle_error
(
struct
iwl_priv
*
priv
);
void
iwl_configure_filter
(
struct
ieee80211_hw
*
hw
,
unsigned
int
changed_flags
,
unsigned
int
*
total_flags
,
u64
multicast
);
int
iwl_set_hw_params
(
struct
iwl_priv
*
priv
);
int
iwl_set_hw_params
(
struct
iwl_priv
*
priv
);
void
iwl_post_associate
(
struct
iwl_priv
*
priv
,
struct
ieee80211_vif
*
vif
);
void
iwl_post_associate
(
struct
iwl_priv
*
priv
,
struct
ieee80211_vif
*
vif
);
void
iwl_bss_info_changed
(
struct
ieee80211_hw
*
hw
,
void
iwl_bss_info_changed
(
struct
ieee80211_hw
*
hw
,
...
...
drivers/net/wireless/iwlwifi/iwl-dev.h
View file @
48d3ff82
...
@@ -1049,7 +1049,8 @@ struct iwl_event_log {
...
@@ -1049,7 +1049,8 @@ struct iwl_event_log {
#define IWL_DELAY_NEXT_FORCE_FW_RELOAD (HZ*5)
#define IWL_DELAY_NEXT_FORCE_FW_RELOAD (HZ*5)
/* timer constants use to monitor and recover stuck tx queues in mSecs */
/* timer constants use to monitor and recover stuck tx queues in mSecs */
#define IWL_MONITORING_PERIOD (1000)
#define IWL_DEF_MONITORING_PERIOD (1000)
#define IWL_LONG_MONITORING_PERIOD (5000)
#define IWL_ONE_HUNDRED_MSECS (100)
#define IWL_ONE_HUNDRED_MSECS (100)
#define IWL_SIXTY_SECS (60000)
#define IWL_SIXTY_SECS (60000)
...
...
drivers/net/wireless/iwlwifi/iwl3945-base.c
View file @
48d3ff82
...
@@ -3391,6 +3391,55 @@ static int iwl3945_mac_sta_add(struct ieee80211_hw *hw,
...
@@ -3391,6 +3391,55 @@ static int iwl3945_mac_sta_add(struct ieee80211_hw *hw,
return
0
;
return
0
;
}
}
static
void
iwl3945_configure_filter
(
struct
ieee80211_hw
*
hw
,
unsigned
int
changed_flags
,
unsigned
int
*
total_flags
,
u64
multicast
)
{
struct
iwl_priv
*
priv
=
hw
->
priv
;
__le32
filter_or
=
0
,
filter_nand
=
0
;
#define CHK(test, flag) do { \
if (*total_flags & (test)) \
filter_or |= (flag); \
else \
filter_nand |= (flag); \
} while (0)
IWL_DEBUG_MAC80211
(
priv
,
"Enter: changed: 0x%x, total: 0x%x
\n
"
,
changed_flags
,
*
total_flags
);
CHK
(
FIF_OTHER_BSS
|
FIF_PROMISC_IN_BSS
,
RXON_FILTER_PROMISC_MSK
);
CHK
(
FIF_CONTROL
,
RXON_FILTER_CTL2HOST_MSK
);
CHK
(
FIF_BCN_PRBRESP_PROMISC
,
RXON_FILTER_BCON_AWARE_MSK
);
#undef CHK
mutex_lock
(
&
priv
->
mutex
);
priv
->
staging_rxon
.
filter_flags
&=
~
filter_nand
;
priv
->
staging_rxon
.
filter_flags
|=
filter_or
;
/*
* Committing directly here breaks for some reason,
* but we'll eventually commit the filter flags
* change anyway.
*/
mutex_unlock
(
&
priv
->
mutex
);
/*
* Receiving all multicast frames is always enabled by the
* default flags setup in iwl_connection_init_rx_config()
* since we currently do not support programming multicast
* filters into the device.
*/
*
total_flags
&=
FIF_OTHER_BSS
|
FIF_ALLMULTI
|
FIF_PROMISC_IN_BSS
|
FIF_BCN_PRBRESP_PROMISC
|
FIF_CONTROL
;
}
/*****************************************************************************
/*****************************************************************************
*
*
* sysfs attributes
* sysfs attributes
...
@@ -3796,7 +3845,7 @@ static struct ieee80211_ops iwl3945_hw_ops = {
...
@@ -3796,7 +3845,7 @@ static struct ieee80211_ops iwl3945_hw_ops = {
.
add_interface
=
iwl_mac_add_interface
,
.
add_interface
=
iwl_mac_add_interface
,
.
remove_interface
=
iwl_mac_remove_interface
,
.
remove_interface
=
iwl_mac_remove_interface
,
.
config
=
iwl_mac_config
,
.
config
=
iwl_mac_config
,
.
configure_filter
=
iwl_configure_filter
,
.
configure_filter
=
iwl
3945
_configure_filter
,
.
set_key
=
iwl3945_mac_set_key
,
.
set_key
=
iwl3945_mac_set_key
,
.
conf_tx
=
iwl_mac_conf_tx
,
.
conf_tx
=
iwl_mac_conf_tx
,
.
reset_tsf
=
iwl_mac_reset_tsf
,
.
reset_tsf
=
iwl_mac_reset_tsf
,
...
...
drivers/net/wireless/mac80211_hwsim.c
View file @
48d3ff82
...
@@ -486,7 +486,7 @@ static bool mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,
...
@@ -486,7 +486,7 @@ static bool mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,
struct
ieee80211_rx_status
rx_status
;
struct
ieee80211_rx_status
rx_status
;
if
(
data
->
idle
)
{
if
(
data
->
idle
)
{
wiphy_debug
(
hw
->
wiphy
,
"
trying to tx
when idle - reject
\n
"
);
wiphy_debug
(
hw
->
wiphy
,
"
Trying to TX
when idle - reject
\n
"
);
return
false
;
return
false
;
}
}
...
...
drivers/net/wireless/mwl8k.c
View file @
48d3ff82
...
@@ -910,14 +910,14 @@ static int mwl8k_rxq_init(struct ieee80211_hw *hw, int index)
...
@@ -910,14 +910,14 @@ static int mwl8k_rxq_init(struct ieee80211_hw *hw, int index)
rxq
->
rxd
=
pci_alloc_consistent
(
priv
->
pdev
,
size
,
&
rxq
->
rxd_dma
);
rxq
->
rxd
=
pci_alloc_consistent
(
priv
->
pdev
,
size
,
&
rxq
->
rxd_dma
);
if
(
rxq
->
rxd
==
NULL
)
{
if
(
rxq
->
rxd
==
NULL
)
{
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
rx
descriptors
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
RX
descriptors
\n
"
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
memset
(
rxq
->
rxd
,
0
,
size
);
memset
(
rxq
->
rxd
,
0
,
size
);
rxq
->
buf
=
kmalloc
(
MWL8K_RX_DESCS
*
sizeof
(
*
rxq
->
buf
),
GFP_KERNEL
);
rxq
->
buf
=
kmalloc
(
MWL8K_RX_DESCS
*
sizeof
(
*
rxq
->
buf
),
GFP_KERNEL
);
if
(
rxq
->
buf
==
NULL
)
{
if
(
rxq
->
buf
==
NULL
)
{
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
rx
skbuff list
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
RX
skbuff list
\n
"
);
pci_free_consistent
(
priv
->
pdev
,
size
,
rxq
->
rxd
,
rxq
->
rxd_dma
);
pci_free_consistent
(
priv
->
pdev
,
size
,
rxq
->
rxd
,
rxq
->
rxd_dma
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -1145,14 +1145,14 @@ static int mwl8k_txq_init(struct ieee80211_hw *hw, int index)
...
@@ -1145,14 +1145,14 @@ static int mwl8k_txq_init(struct ieee80211_hw *hw, int index)
txq
->
txd
=
pci_alloc_consistent
(
priv
->
pdev
,
size
,
&
txq
->
txd_dma
);
txq
->
txd
=
pci_alloc_consistent
(
priv
->
pdev
,
size
,
&
txq
->
txd_dma
);
if
(
txq
->
txd
==
NULL
)
{
if
(
txq
->
txd
==
NULL
)
{
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
tx
descriptors
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
TX
descriptors
\n
"
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
memset
(
txq
->
txd
,
0
,
size
);
memset
(
txq
->
txd
,
0
,
size
);
txq
->
skb
=
kmalloc
(
MWL8K_TX_DESCS
*
sizeof
(
*
txq
->
skb
),
GFP_KERNEL
);
txq
->
skb
=
kmalloc
(
MWL8K_TX_DESCS
*
sizeof
(
*
txq
->
skb
),
GFP_KERNEL
);
if
(
txq
->
skb
==
NULL
)
{
if
(
txq
->
skb
==
NULL
)
{
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
tx
skbuff list
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"failed to alloc
TX
skbuff list
\n
"
);
pci_free_consistent
(
priv
->
pdev
,
size
,
txq
->
txd
,
txq
->
txd_dma
);
pci_free_consistent
(
priv
->
pdev
,
size
,
txq
->
txd
,
txq
->
txd_dma
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -1573,7 +1573,7 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
...
@@ -1573,7 +1573,7 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
PCI_DMA_BIDIRECTIONAL
);
PCI_DMA_BIDIRECTIONAL
);
if
(
!
timeout
)
{
if
(
!
timeout
)
{
wiphy_err
(
hw
->
wiphy
,
"
c
ommand %s timeout after %u ms
\n
"
,
wiphy_err
(
hw
->
wiphy
,
"
C
ommand %s timeout after %u ms
\n
"
,
mwl8k_cmd_name
(
cmd
->
code
,
buf
,
sizeof
(
buf
)),
mwl8k_cmd_name
(
cmd
->
code
,
buf
,
sizeof
(
buf
)),
MWL8K_CMD_TIMEOUT_MS
);
MWL8K_CMD_TIMEOUT_MS
);
rc
=
-
ETIMEDOUT
;
rc
=
-
ETIMEDOUT
;
...
@@ -1584,11 +1584,11 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
...
@@ -1584,11 +1584,11 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
rc
=
cmd
->
result
?
-
EINVAL
:
0
;
rc
=
cmd
->
result
?
-
EINVAL
:
0
;
if
(
rc
)
if
(
rc
)
wiphy_err
(
hw
->
wiphy
,
"
c
ommand %s error 0x%x
\n
"
,
wiphy_err
(
hw
->
wiphy
,
"
C
ommand %s error 0x%x
\n
"
,
mwl8k_cmd_name
(
cmd
->
code
,
buf
,
sizeof
(
buf
)),
mwl8k_cmd_name
(
cmd
->
code
,
buf
,
sizeof
(
buf
)),
le16_to_cpu
(
cmd
->
result
));
le16_to_cpu
(
cmd
->
result
));
else
if
(
ms
>
2000
)
else
if
(
ms
>
2000
)
wiphy_notice
(
hw
->
wiphy
,
"
c
ommand %s took %d ms
\n
"
,
wiphy_notice
(
hw
->
wiphy
,
"
C
ommand %s took %d ms
\n
"
,
mwl8k_cmd_name
(
cmd
->
code
,
mwl8k_cmd_name
(
cmd
->
code
,
buf
,
sizeof
(
buf
)),
buf
,
sizeof
(
buf
)),
ms
);
ms
);
...
@@ -3210,7 +3210,7 @@ static int mwl8k_start(struct ieee80211_hw *hw)
...
@@ -3210,7 +3210,7 @@ static int mwl8k_start(struct ieee80211_hw *hw)
rc
=
request_irq
(
priv
->
pdev
->
irq
,
mwl8k_interrupt
,
rc
=
request_irq
(
priv
->
pdev
->
irq
,
mwl8k_interrupt
,
IRQF_SHARED
,
MWL8K_NAME
,
hw
);
IRQF_SHARED
,
MWL8K_NAME
,
hw
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"failed to register
irq
handler
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"failed to register
IRQ
handler
\n
"
);
return
-
EIO
;
return
-
EIO
;
}
}
...
@@ -3926,7 +3926,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -3926,7 +3926,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
priv
->
sram
=
pci_iomap
(
pdev
,
0
,
0x10000
);
priv
->
sram
=
pci_iomap
(
pdev
,
0
,
0x10000
);
if
(
priv
->
sram
==
NULL
)
{
if
(
priv
->
sram
==
NULL
)
{
wiphy_err
(
hw
->
wiphy
,
"
cannot map device sram
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
Cannot map device SRAM
\n
"
);
goto
err_iounmap
;
goto
err_iounmap
;
}
}
...
@@ -3938,7 +3938,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -3938,7 +3938,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
if
(
priv
->
regs
==
NULL
)
{
if
(
priv
->
regs
==
NULL
)
{
priv
->
regs
=
pci_iomap
(
pdev
,
2
,
0x10000
);
priv
->
regs
=
pci_iomap
(
pdev
,
2
,
0x10000
);
if
(
priv
->
regs
==
NULL
)
{
if
(
priv
->
regs
==
NULL
)
{
wiphy_err
(
hw
->
wiphy
,
"
c
annot map device registers
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
C
annot map device registers
\n
"
);
goto
err_iounmap
;
goto
err_iounmap
;
}
}
}
}
...
@@ -3950,14 +3950,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -3950,14 +3950,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
/* Ask userland hotplug daemon for the device firmware */
/* Ask userland hotplug daemon for the device firmware */
rc
=
mwl8k_request_firmware
(
priv
);
rc
=
mwl8k_request_firmware
(
priv
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"
f
irmware files not found
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
F
irmware files not found
\n
"
);
goto
err_stop_firmware
;
goto
err_stop_firmware
;
}
}
/* Load firmware into hardware */
/* Load firmware into hardware */
rc
=
mwl8k_load_firmware
(
hw
);
rc
=
mwl8k_load_firmware
(
hw
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"
c
annot start firmware
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
C
annot start firmware
\n
"
);
goto
err_stop_firmware
;
goto
err_stop_firmware
;
}
}
...
@@ -4047,7 +4047,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -4047,7 +4047,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
rc
=
request_irq
(
priv
->
pdev
->
irq
,
mwl8k_interrupt
,
rc
=
request_irq
(
priv
->
pdev
->
irq
,
mwl8k_interrupt
,
IRQF_SHARED
,
MWL8K_NAME
,
hw
);
IRQF_SHARED
,
MWL8K_NAME
,
hw
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"failed to register
irq
handler
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"failed to register
IRQ
handler
\n
"
);
goto
err_free_queues
;
goto
err_free_queues
;
}
}
...
@@ -4067,7 +4067,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -4067,7 +4067,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
rc
=
mwl8k_cmd_get_hw_spec_sta
(
hw
);
rc
=
mwl8k_cmd_get_hw_spec_sta
(
hw
);
}
}
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"
c
annot initialise firmware
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
C
annot initialise firmware
\n
"
);
goto
err_free_irq
;
goto
err_free_irq
;
}
}
...
@@ -4081,14 +4081,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -4081,14 +4081,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
/* Turn radio off */
/* Turn radio off */
rc
=
mwl8k_cmd_radio_disable
(
hw
);
rc
=
mwl8k_cmd_radio_disable
(
hw
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"
c
annot disable
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
C
annot disable
\n
"
);
goto
err_free_irq
;
goto
err_free_irq
;
}
}
/* Clear MAC address */
/* Clear MAC address */
rc
=
mwl8k_cmd_set_mac_addr
(
hw
,
NULL
,
"
\x00\x00\x00\x00\x00\x00
"
);
rc
=
mwl8k_cmd_set_mac_addr
(
hw
,
NULL
,
"
\x00\x00\x00\x00\x00\x00
"
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"
cannot clear mac
address
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
Cannot clear MAC
address
\n
"
);
goto
err_free_irq
;
goto
err_free_irq
;
}
}
...
@@ -4098,7 +4098,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
...
@@ -4098,7 +4098,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
rc
=
ieee80211_register_hw
(
hw
);
rc
=
ieee80211_register_hw
(
hw
);
if
(
rc
)
{
if
(
rc
)
{
wiphy_err
(
hw
->
wiphy
,
"
c
annot register device
\n
"
);
wiphy_err
(
hw
->
wiphy
,
"
C
annot register device
\n
"
);
goto
err_free_queues
;
goto
err_free_queues
;
}
}
...
...
drivers/net/wireless/p54/eeprom.c
View file @
48d3ff82
...
@@ -167,7 +167,7 @@ static int p54_generate_band(struct ieee80211_hw *dev,
...
@@ -167,7 +167,7 @@ static int p54_generate_band(struct ieee80211_hw *dev,
}
}
if
(
j
==
0
)
{
if
(
j
==
0
)
{
wiphy_err
(
dev
->
wiphy
,
"
d
isabling totally damaged %d GHz band
\n
"
,
wiphy_err
(
dev
->
wiphy
,
"
D
isabling totally damaged %d GHz band
\n
"
,
(
band
==
IEEE80211_BAND_2GHZ
)
?
2
:
5
);
(
band
==
IEEE80211_BAND_2GHZ
)
?
2
:
5
);
ret
=
-
ENODATA
;
ret
=
-
ENODATA
;
...
@@ -695,12 +695,12 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
...
@@ -695,12 +695,12 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
u8
perm_addr
[
ETH_ALEN
];
u8
perm_addr
[
ETH_ALEN
];
wiphy_warn
(
dev
->
wiphy
,
wiphy_warn
(
dev
->
wiphy
,
"
invalid hwaddr! using randomly generated mac
addr
\n
"
);
"
Invalid hwaddr! Using randomly generated MAC
addr
\n
"
);
random_ether_addr
(
perm_addr
);
random_ether_addr
(
perm_addr
);
SET_IEEE80211_PERM_ADDR
(
dev
,
perm_addr
);
SET_IEEE80211_PERM_ADDR
(
dev
,
perm_addr
);
}
}
wiphy_info
(
dev
->
wiphy
,
"hwaddr %p
m, mac:isl38%02x rf
:%s
\n
"
,
wiphy_info
(
dev
->
wiphy
,
"hwaddr %p
M, MAC:isl38%02x RF
:%s
\n
"
,
dev
->
wiphy
->
perm_addr
,
priv
->
version
,
dev
->
wiphy
->
perm_addr
,
priv
->
version
,
p54_rf_chips
[
priv
->
rxhw
]);
p54_rf_chips
[
priv
->
rxhw
]);
...
...
drivers/net/wireless/p54/fwio.c
View file @
48d3ff82
...
@@ -125,7 +125,7 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
...
@@ -125,7 +125,7 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
if
(
fw_version
)
if
(
fw_version
)
wiphy_info
(
priv
->
hw
->
wiphy
,
wiphy_info
(
priv
->
hw
->
wiphy
,
"
fw rev %s - s
oftmac protocol %x.%x
\n
"
,
"
FW rev %s - S
oftmac protocol %x.%x
\n
"
,
fw_version
,
priv
->
fw_var
>>
8
,
priv
->
fw_var
&
0xff
);
fw_version
,
priv
->
fw_var
>>
8
,
priv
->
fw_var
&
0xff
);
if
(
priv
->
fw_var
<
0x500
)
if
(
priv
->
fw_var
<
0x500
)
...
...
drivers/net/wireless/p54/led.c
View file @
48d3ff82
...
@@ -58,7 +58,7 @@ static void p54_update_leds(struct work_struct *work)
...
@@ -58,7 +58,7 @@ static void p54_update_leds(struct work_struct *work)
err
=
p54_set_leds
(
priv
);
err
=
p54_set_leds
(
priv
);
if
(
err
&&
net_ratelimit
())
if
(
err
&&
net_ratelimit
())
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"failed to update
led
s (%d).
\n
"
,
err
);
"failed to update
LED
s (%d).
\n
"
,
err
);
if
(
rerun
)
if
(
rerun
)
ieee80211_queue_delayed_work
(
priv
->
hw
,
&
priv
->
led_work
,
ieee80211_queue_delayed_work
(
priv
->
hw
,
&
priv
->
led_work
,
...
@@ -103,7 +103,7 @@ static int p54_register_led(struct p54_common *priv,
...
@@ -103,7 +103,7 @@ static int p54_register_led(struct p54_common *priv,
err
=
led_classdev_register
(
wiphy_dev
(
priv
->
hw
->
wiphy
),
&
led
->
led_dev
);
err
=
led_classdev_register
(
wiphy_dev
(
priv
->
hw
->
wiphy
),
&
led
->
led_dev
);
if
(
err
)
if
(
err
)
wiphy_err
(
priv
->
hw
->
wiphy
,
wiphy_err
(
priv
->
hw
->
wiphy
,
"
failed to register %s led
.
\n
"
,
name
);
"
Failed to register %s LED
.
\n
"
,
name
);
else
else
led
->
registered
=
1
;
led
->
registered
=
1
;
...
...
drivers/net/wireless/p54/p54pci.c
View file @
48d3ff82
...
@@ -466,7 +466,7 @@ static int p54p_open(struct ieee80211_hw *dev)
...
@@ -466,7 +466,7 @@ static int p54p_open(struct ieee80211_hw *dev)
P54P_READ
(
dev_int
);
P54P_READ
(
dev_int
);
if
(
!
wait_for_completion_interruptible_timeout
(
&
priv
->
boot_comp
,
HZ
))
{
if
(
!
wait_for_completion_interruptible_timeout
(
&
priv
->
boot_comp
,
HZ
))
{
wiphy_err
(
dev
->
wiphy
,
"
c
annot boot firmware!
\n
"
);
wiphy_err
(
dev
->
wiphy
,
"
C
annot boot firmware!
\n
"
);
p54p_stop
(
dev
);
p54p_stop
(
dev
);
return
-
ETIMEDOUT
;
return
-
ETIMEDOUT
;
}
}
...
...
drivers/net/wireless/p54/txrx.c
View file @
48d3ff82
...
@@ -540,7 +540,7 @@ static void p54_rx_trap(struct p54_common *priv, struct sk_buff *skb)
...
@@ -540,7 +540,7 @@ static void p54_rx_trap(struct p54_common *priv, struct sk_buff *skb)
case
P54_TRAP_BEACON_TX
:
case
P54_TRAP_BEACON_TX
:
break
;
break
;
case
P54_TRAP_RADAR
:
case
P54_TRAP_RADAR
:
wiphy_info
(
priv
->
hw
->
wiphy
,
"radar (freq:%d
mh
z)
\n
"
,
freq
);
wiphy_info
(
priv
->
hw
->
wiphy
,
"radar (freq:%d
MH
z)
\n
"
,
freq
);
break
;
break
;
case
P54_TRAP_NO_BEACON
:
case
P54_TRAP_NO_BEACON
:
if
(
priv
->
vif
)
if
(
priv
->
vif
)
...
...
drivers/net/wireless/rtl818x/rtl8180_dev.c
View file @
48d3ff82
...
@@ -445,7 +445,7 @@ static int rtl8180_init_rx_ring(struct ieee80211_hw *dev)
...
@@ -445,7 +445,7 @@ static int rtl8180_init_rx_ring(struct ieee80211_hw *dev)
&
priv
->
rx_ring_dma
);
&
priv
->
rx_ring_dma
);
if
(
!
priv
->
rx_ring
||
(
unsigned
long
)
priv
->
rx_ring
&
0xFF
)
{
if
(
!
priv
->
rx_ring
||
(
unsigned
long
)
priv
->
rx_ring
&
0xFF
)
{
wiphy_err
(
dev
->
wiphy
,
"
cannot allocate rx
ring
\n
"
);
wiphy_err
(
dev
->
wiphy
,
"
Cannot allocate RX
ring
\n
"
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -502,7 +502,7 @@ static int rtl8180_init_tx_ring(struct ieee80211_hw *dev,
...
@@ -502,7 +502,7 @@ static int rtl8180_init_tx_ring(struct ieee80211_hw *dev,
ring
=
pci_alloc_consistent
(
priv
->
pdev
,
sizeof
(
*
ring
)
*
entries
,
&
dma
);
ring
=
pci_alloc_consistent
(
priv
->
pdev
,
sizeof
(
*
ring
)
*
entries
,
&
dma
);
if
(
!
ring
||
(
unsigned
long
)
ring
&
0xFF
)
{
if
(
!
ring
||
(
unsigned
long
)
ring
&
0xFF
)
{
wiphy_err
(
dev
->
wiphy
,
"
cannot allocate tx
ring (prio = %d)
\n
"
,
wiphy_err
(
dev
->
wiphy
,
"
Cannot allocate TX
ring (prio = %d)
\n
"
,
prio
);
prio
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -568,7 +568,7 @@ static int rtl8180_start(struct ieee80211_hw *dev)
...
@@ -568,7 +568,7 @@ static int rtl8180_start(struct ieee80211_hw *dev)
ret
=
request_irq
(
priv
->
pdev
->
irq
,
rtl8180_interrupt
,
ret
=
request_irq
(
priv
->
pdev
->
irq
,
rtl8180_interrupt
,
IRQF_SHARED
,
KBUILD_MODNAME
,
dev
);
IRQF_SHARED
,
KBUILD_MODNAME
,
dev
);
if
(
ret
)
{
if
(
ret
)
{
wiphy_err
(
dev
->
wiphy
,
"failed to register
irq
handler
\n
"
);
wiphy_err
(
dev
->
wiphy
,
"failed to register
IRQ
handler
\n
"
);
goto
err_free_rings
;
goto
err_free_rings
;
}
}
...
...
drivers/net/wireless/rtl818x/rtl8187_dev.c
View file @
48d3ff82
...
@@ -573,7 +573,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev)
...
@@ -573,7 +573,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev)
}
while
(
--
i
);
}
while
(
--
i
);
if
(
!
i
)
{
if
(
!
i
)
{
wiphy_err
(
dev
->
wiphy
,
"
r
eset timeout!
\n
"
);
wiphy_err
(
dev
->
wiphy
,
"
R
eset timeout!
\n
"
);
return
-
ETIMEDOUT
;
return
-
ETIMEDOUT
;
}
}
...
@@ -1526,7 +1526,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf,
...
@@ -1526,7 +1526,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf,
mutex_init
(
&
priv
->
conf_mutex
);
mutex_init
(
&
priv
->
conf_mutex
);
skb_queue_head_init
(
&
priv
->
b_tx_status
.
queue
);
skb_queue_head_init
(
&
priv
->
b_tx_status
.
queue
);
wiphy_info
(
dev
->
wiphy
,
"hwaddr %p
m, %s v
%d + %s, rfkill mask %d
\n
"
,
wiphy_info
(
dev
->
wiphy
,
"hwaddr %p
M, %s V
%d + %s, rfkill mask %d
\n
"
,
mac_addr
,
chip_name
,
priv
->
asic_rev
,
priv
->
rf
->
name
,
mac_addr
,
chip_name
,
priv
->
asic_rev
,
priv
->
rf
->
name
,
priv
->
rfkill_mask
);
priv
->
rfkill_mask
);
...
...
drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
View file @
48d3ff82
...
@@ -366,7 +366,7 @@ static void rtl8225_rf_init(struct ieee80211_hw *dev)
...
@@ -366,7 +366,7 @@ static void rtl8225_rf_init(struct ieee80211_hw *dev)
rtl8225_write
(
dev
,
0x02
,
0x044d
);
rtl8225_write
(
dev
,
0x02
,
0x044d
);
msleep
(
100
);
msleep
(
100
);
if
(
!
(
rtl8225_read
(
dev
,
6
)
&
(
1
<<
7
)))
if
(
!
(
rtl8225_read
(
dev
,
6
)
&
(
1
<<
7
)))
wiphy_warn
(
dev
->
wiphy
,
"
rf calibration f
ailed! %x
\n
"
,
wiphy_warn
(
dev
->
wiphy
,
"
RF Calibration F
ailed! %x
\n
"
,
rtl8225_read
(
dev
,
6
));
rtl8225_read
(
dev
,
6
));
}
}
...
@@ -735,7 +735,7 @@ static void rtl8225z2_rf_init(struct ieee80211_hw *dev)
...
@@ -735,7 +735,7 @@ static void rtl8225z2_rf_init(struct ieee80211_hw *dev)
rtl8225_write
(
dev
,
0x02
,
0x044D
);
rtl8225_write
(
dev
,
0x02
,
0x044D
);
msleep
(
100
);
msleep
(
100
);
if
(
!
(
rtl8225_read
(
dev
,
6
)
&
(
1
<<
7
)))
if
(
!
(
rtl8225_read
(
dev
,
6
)
&
(
1
<<
7
)))
wiphy_warn
(
dev
->
wiphy
,
"
rf calibration f
ailed! %x
\n
"
,
wiphy_warn
(
dev
->
wiphy
,
"
RF Calibration F
ailed! %x
\n
"
,
rtl8225_read
(
dev
,
6
));
rtl8225_read
(
dev
,
6
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment