Skip to content

Commit

Permalink
staging: brcm80211: replace string based variable storage by linked list
Browse files Browse the repository at this point in the history
The storage of variables obtained from srom are now stored in a linked
list and lookup is done based on the enumerated identifier.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Oct 5, 2011
1 parent 36bd40d commit 2a9b065
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 431 deletions.
1 change: 1 addition & 0 deletions drivers/staging/brcm80211/brcmsmac/aiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,7 @@ void ai_detach(struct si_pub *sih)
pcicore_deinit(sii->pch);
sii->pch = NULL;

srom_free_vars(sih);
kfree(sii);
}

Expand Down
1 change: 1 addition & 0 deletions drivers/staging/brcm80211/brcmsmac/aiutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ struct si_info {

struct pcicore_info *pch; /* PCI/E core handle */

struct list_head var_list; /* list of srom variables */
char *vars;
uint varsz;

Expand Down
Loading

0 comments on commit 2a9b065

Please sign in to comment.