Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279192
b: refs/heads/master
c: 09af140
h: refs/heads/master
v: v3
  • Loading branch information
Don Fry authored and Wey-Yi Guy committed Dec 16, 2011
1 parent 7e2d680 commit 36b8890
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23fd7b029fa58c265bfa757603fd2af27c7af3ad
refs/heads/master: 09af14030d77d5f43229adabdd3c84c63f3499aa
7 changes: 1 addition & 6 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1915,12 +1915,7 @@ void __devexit iwl_remove(struct iwl_priv * priv)
set_bit(STATUS_EXIT_PENDING, &priv->shrd->status);

iwl_testmode_cleanup(priv);
iwl_leds_exit(priv);

if (priv->mac80211_registered) {
ieee80211_unregister_hw(priv->hw);
priv->mac80211_registered = 0;
}
iwlagn_mac_unregister(priv);

iwl_tt_exit(priv);

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void iwlagn_prepare_restart(struct iwl_priv *priv);
struct ieee80211_hw *iwl_alloc_all(void);
int iwlagn_mac_setup_register(struct iwl_priv *priv,
struct iwlagn_ucode_capabilities *capa);
void iwlagn_mac_unregister(struct iwl_priv *priv);

/* RXON */
int iwlagn_set_pan_params(struct iwl_priv *priv);
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
return 0;
}

void iwlagn_mac_unregister(struct iwl_priv *priv)
{
if (!priv->mac80211_registered)
return;
iwl_leds_exit(priv);
ieee80211_unregister_hw(priv->hw);
priv->mac80211_registered = 0;
}

static int __iwl_up(struct iwl_priv *priv)
{
struct iwl_rxon_context *ctx;
Expand Down

0 comments on commit 36b8890

Please sign in to comment.