diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-09-22 12:02:01 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-07 18:50:33 -0400 |
commit | a30e3112a8bcb5bc1caa48547e597de3992e1b21 (patch) | |
tree | 3690cb36a987af1a3778011390221e48763c1b80 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | d3f5ba958d6c425a87535c6fa2a69ca90eb6e930 (diff) |
iwlwifi: move agn specific station code there
By duplicating a little bit of code between 3945
and agn, we can move a lot of code into an agn
specific station management file and thus reduce
the amount of code in core that is dead to 3945.
before:
text data bss dec hex filename
212886 3872 96 216854 34f16 iwlcore.ko
620542 10448 304 631294 9a1fe iwlagn.ko
314013 3264 196 317473 4d821 iwl3945.ko
after:
text data bss dec hex filename
202857 3872 92 206821 327e5 iwlcore.ko
629102 10448 308 639858 9c372 iwlagn.ko
314240 3264 196 317700 4d904 iwl3945.ko
delta:
-10029 iwlcore.ko
8560 iwlagn.ko
227 iwl3945.ko
so it's a net win even if you have both loaded,
likely because a lot of EXPORT_SYMBOLs go away.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index b59ce92730c7..8233c6410411 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3089,7 +3089,7 @@ static int __iwl_up(struct iwl_priv *priv) | |||
3089 | } | 3089 | } |
3090 | 3090 | ||
3091 | for_each_context(priv, ctx) { | 3091 | for_each_context(priv, ctx) { |
3092 | ret = iwl_alloc_bcast_station(priv, ctx, true); | 3092 | ret = iwlagn_alloc_bcast_station(priv, ctx); |
3093 | if (ret) { | 3093 | if (ret) { |
3094 | iwl_dealloc_bcast_stations(priv); | 3094 | iwl_dealloc_bcast_stations(priv); |
3095 | return ret; | 3095 | return ret; |