aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r--net/mac80211/ieee80211.c7
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}