Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21161
b: refs/heads/master
c: 15f3859
h: refs/heads/master
i:
  21159: ff8d179
v: v3
  • Loading branch information
Zhu Yi authored and John W. Linville committed Jan 27, 2006
1 parent 5ca65ac commit f1d4c77
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b79e20b60997e427b701055a2c69fb0c1d507aa9
refs/heads/master: 15f385982e3a4782fe8ed71a9a6beb64a2160c30
18 changes: 18 additions & 0 deletions trunk/net/ieee80211/ieee80211_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,28 @@ static int ieee80211_networks_allocate(struct ieee80211_device *ieee)
return 0;
}

void ieee80211_network_reset(struct ieee80211_network *network)
{
if (!network)
return;

if (network->ibss_dfs) {
kfree(network->ibss_dfs);
network->ibss_dfs = NULL;
}
}

static inline void ieee80211_networks_free(struct ieee80211_device *ieee)
{
int i;

if (!ieee->networks)
return;

for (i = 0; i < MAX_NETWORK_COUNT; i++)
if (ieee->networks[i].ibss_dfs)
kfree(ieee->networks[i].ibss_dfs);

kfree(ieee->networks);
ieee->networks = NULL;
}
Expand Down

0 comments on commit f1d4c77

Please sign in to comment.