Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10287
b: refs/heads/master
c: 7cb3cd0
h: refs/heads/master
i:
  10285: 5bc1d54
  10283: fc061e8
  10279: dcc088d
  10271: d3b5912
v: v3
  • Loading branch information
Jouni Malinen authored and Jeff Garzik committed Oct 4, 2005
1 parent b89d027 commit 03bc5b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 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: c355184cd3cd58c9ffc78f2a17e0ac3563312ea7
refs/heads/master: 7cb3cd090c2725b80561958a362c2ba15a7a8c86
22 changes: 12 additions & 10 deletions trunk/drivers/net/wireless/hostap/hostap_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,18 @@ static void prism2_free_local_data(struct net_device *dev)
iface = netdev_priv(dev);
local = iface->local;

/* Unregister all netdevs before freeing local data. */
list_for_each_safe(ptr, n, &local->hostap_interfaces) {
iface = list_entry(ptr, struct hostap_interface, list);
if (iface->type == HOSTAP_INTERFACE_MASTER) {
/* special handling for this interface below */
continue;
}
hostap_remove_interface(iface->dev, 0, 1);
}

unregister_netdev(local->dev);

flush_scheduled_work();

if (timer_pending(&local->crypt_deinit_timer))
Expand Down Expand Up @@ -3382,15 +3394,6 @@ static void prism2_free_local_data(struct net_device *dev)
prism2_download_free_data(local->dl_sec);
#endif /* PRISM2_DOWNLOAD_SUPPORT */

list_for_each_safe(ptr, n, &local->hostap_interfaces) {
iface = list_entry(ptr, struct hostap_interface, list);
if (iface->type == HOSTAP_INTERFACE_MASTER) {
/* special handling for this interface below */
continue;
}
hostap_remove_interface(iface->dev, 0, 1);
}

prism2_clear_set_tim_queue(local);

list_for_each_safe(ptr, n, &local->bss_list) {
Expand All @@ -3403,7 +3406,6 @@ static void prism2_free_local_data(struct net_device *dev)
kfree(local->last_scan_results);
kfree(local->generic_elem);

unregister_netdev(local->dev);
free_netdev(local->dev);
}

Expand Down

0 comments on commit 03bc5b1

Please sign in to comment.