Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197410
b: refs/heads/master
c: a05d08c
h: refs/heads/master
v: v3
  • Loading branch information
Zachary Richey authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 35f2d3b commit ece3d8a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 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: 3041f30672b50a482154f554c82404e98eb41133
refs/heads/master: a05d08c40c0775e4691cffcfbfceeb4270987208
33 changes: 21 additions & 12 deletions trunk/drivers/staging/wlan-ng/prism2fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,30 @@ hfa384x_caplevel_t priid;
/*================================================================*/
/* Local Function Declarations */

int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev);
int read_fwfile(const struct ihex_binrec *rfptr);
int mkimage(imgchunk_t *clist, unsigned int *ccnt);
int read_cardpda(pda_t *pda, wlandevice_t *wlandev);
int mkpdrlist(pda_t *pda);
int plugimage(imgchunk_t *fchunk, unsigned int nfchunks,
static int prism2_fwapply(const struct ihex_binrec *rfptr,
wlandevice_t *wlandev);

static int read_fwfile(const struct ihex_binrec *rfptr);

static int mkimage(imgchunk_t *clist, unsigned int *ccnt);

static int read_cardpda(pda_t *pda, wlandevice_t *wlandev);

static int mkpdrlist(pda_t *pda);

static int plugimage(imgchunk_t *fchunk, unsigned int nfchunks,
s3plugrec_t *s3plug, unsigned int ns3plug, pda_t * pda);
int crcimage(imgchunk_t *fchunk, unsigned int nfchunks,

static int crcimage(imgchunk_t *fchunk, unsigned int nfchunks,
s3crcrec_t *s3crc, unsigned int ns3crc);
int writeimage(wlandevice_t *wlandev, imgchunk_t *fchunk,

static int writeimage(wlandevice_t *wlandev, imgchunk_t *fchunk,
unsigned int nfchunks);
void free_chunks(imgchunk_t *fchunk, unsigned int *nfchunks);
void free_srecs(void);
static void free_chunks(imgchunk_t *fchunk, unsigned int *nfchunks);

static void free_srecs(void);

int validate_identity(void);
static int validate_identity(void);

/*================================================================*/
/* Function Definitions */
Expand Down Expand Up @@ -255,7 +264,7 @@ int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev)
/* clear the pda and add an initial END record */
memset(&pda, 0, sizeof(pda));
pda.rec[0] = (hfa384x_pdrec_t *) pda.buf;
pda.rec[0]->len = cpu_to_le16(2); /* len in words *//* len in words */
pda.rec[0]->len = cpu_to_le16(2); /* len in words */
pda.rec[0]->code = cpu_to_le16(HFA384x_PDR_END_OF_PDA);
pda.nrec = 1;

Expand Down

0 comments on commit ece3d8a

Please sign in to comment.