diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:23:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:23:21 -0400 |
commit | ce8c2293be47999584908069e78bf6d94beadc53 (patch) | |
tree | dfd6909e6866998d2103341b1e1af8c129d0cea8 /net/mac80211/ieee80211.c | |
parent | 41e9d344bf52c57ec16648d08618b61d3f1d4bdc (diff) | |
parent | ee6a99b539a50b4e9398938a0a6d37f8bf911550 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
[TG3]: Fix msi issue with kexec/kdump.
[NET] XFRM: Fix whitespace errors.
[NET] TIPC: Fix whitespace errors.
[NET] SUNRPC: Fix whitespace errors.
[NET] SCTP: Fix whitespace errors.
[NET] RXRPC: Fix whitespace errors.
[NET] ROSE: Fix whitespace errors.
[NET] RFKILL: Fix whitespace errors.
[NET] PACKET: Fix whitespace errors.
[NET] NETROM: Fix whitespace errors.
[NET] NETFILTER: Fix whitespace errors.
[NET] IPV4: Fix whitespace errors.
[NET] DCCP: Fix whitespace errors.
[NET] CORE: Fix whitespace errors.
[NET] BLUETOOTH: Fix whitespace errors.
[NET] AX25: Fix whitespace errors.
[PATCH] mac80211: remove rtnl locking in ieee80211_sta.c
[PATCH] mac80211: fix GCC warning on 64bit platforms
[GENETLINK]: Dynamic multicast groups.
[NETLIKN]: Allow removing multicast groups.
...
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 2ddf4ef4065e..c944b17d0fc0 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -4986,8 +4986,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
4986 | * and we need some headroom for passing the frame to monitor | 4986 | * and we need some headroom for passing the frame to monitor |
4987 | * interfaces, but never both at the same time. | 4987 | * interfaces, but never both at the same time. |
4988 | */ | 4988 | */ |
4989 | local->tx_headroom = max(local->hw.extra_tx_headroom, | 4989 | local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom, |
4990 | sizeof(struct ieee80211_tx_status_rtap_hdr)); | 4990 | sizeof(struct ieee80211_tx_status_rtap_hdr)); |
4991 | 4991 | ||
4992 | debugfs_hw_add(local); | 4992 | debugfs_hw_add(local); |
4993 | 4993 | ||
@@ -5095,7 +5095,7 @@ int ieee80211_register_hwmode(struct ieee80211_hw *hw, | |||
5095 | } | 5095 | } |
5096 | 5096 | ||
5097 | if (!(hw->flags & IEEE80211_HW_DEFAULT_REG_DOMAIN_CONFIGURED)) | 5097 | if (!(hw->flags & IEEE80211_HW_DEFAULT_REG_DOMAIN_CONFIGURED)) |
5098 | ieee80211_init_client(local->mdev); | 5098 | ieee80211_set_default_regdomain(mode); |
5099 | 5099 | ||
5100 | return 0; | 5100 | return 0; |
5101 | } | 5101 | } |
@@ -5246,6 +5246,7 @@ static int __init ieee80211_init(void) | |||
5246 | } | 5246 | } |
5247 | 5247 | ||
5248 | ieee80211_debugfs_netdev_init(); | 5248 | ieee80211_debugfs_netdev_init(); |
5249 | ieee80211_regdomain_init(); | ||
5249 | 5250 | ||
5250 | return 0; | 5251 | return 0; |
5251 | } | 5252 | } |