Loading drivers/staging/wlan-ng/prism2mib.c +333 −381 Original line number Diff line number Diff line Loading @@ -50,11 +50,7 @@ * -------------------------------------------------------------------- */ /*================================================================*/ /* System Includes */ #include <linux/version.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> Loading @@ -62,15 +58,12 @@ #include <linux/slab.h> #include <linux/wireless.h> #include <linux/netdevice.h> #include <asm/io.h> #include <linux/io.h> #include <linux/delay.h> #include <asm/byteorder.h> #include <linux/usb.h> #include <linux/bitops.h> /*================================================================*/ /* Project Includes */ #include "p80211types.h" #include "p80211hdr.h" #include "p80211mgmt.h" Loading @@ -82,20 +75,13 @@ #include "hfa384x.h" #include "prism2mgmt.h" /*================================================================*/ /* Local Constants */ #define MIB_TMP_MAXLEN 200 /* Max length of RID record (in bytes). */ /*================================================================*/ /* Local Types */ #define F_STA 0x1 /* MIB is supported on stations. */ #define F_READ 0x2 /* MIB may be read. */ #define F_WRITE 0x4 /* MIB may be written. */ typedef struct mibrec { typedef struct mibrec { u32 did; u16 flag; u16 parm1; Loading @@ -105,79 +91,61 @@ typedef struct mibrec int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); p80211msg_dot11req_mibset_t *msg, void *data); } mibrec_t; /*================================================================*/ /* Local Function Declarations */ static int prism2mib_bytearea2pstr( mibrec_t *mib, static int prism2mib_bytearea2pstr(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_uint32( mibrec_t *mib, static int prism2mib_uint32(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_flag( mibrec_t *mib, static int prism2mib_flag(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_wepdefaultkey( mibrec_t *mib, static int prism2mib_wepdefaultkey(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_privacyinvoked( mibrec_t *mib, static int prism2mib_privacyinvoked(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_excludeunencrypted( mibrec_t *mib, static int prism2mib_excludeunencrypted(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_fragmentationthreshold( mibrec_t *mib, static int prism2mib_fragmentationthreshold(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_priv( mibrec_t *mib, static int prism2mib_priv(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); /*================================================================*/ /* Local Static Definitions */ p80211msg_dot11req_mibset_t *msg, void *data); static mibrec_t mibtab[] = { Loading Loading @@ -268,10 +236,8 @@ static mibrec_t mibtab[] = { F_STA | F_READ | F_WRITE, HFA384x_RID_CNFWPADATA, 0, 0, prism2mib_priv}, { 0, 0, 0, 0, 0, NULL}}; /*================================================================*/ /* Function Definitions */ {0, 0, 0, 0, 0, NULL} }; /*---------------------------------------------------------------- * prism2mgmt_mibset_mibget Loading Loading @@ -361,8 +327,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) ** portion of the "mibattribute". */ result = mib->func(mib, isget, wlandev, hw, msg, (void *) mibitem->data); result = mib->func(mib, isget, wlandev, hw, msg, (void *)mibitem->data); if (msg->resultcode.data == P80211ENUM_resultcode_success) { if (result != 0) { Loading @@ -381,7 +346,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) } done: return(0); return 0; } /*---------------------------------------------------------------- Loading Loading @@ -409,8 +374,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) * ----------------------------------------------------------------*/ static int prism2mib_bytearea2pstr( mibrec_t *mib, static int prism2mib_bytearea2pstr(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -422,15 +386,17 @@ void *data) u8 bytebuf[MIB_TMP_MAXLEN]; if (isget) { result = hfa384x_drvr_getconfig(hw, mib->parm1, bytebuf, mib->parm2); result = hfa384x_drvr_getconfig(hw, mib->parm1, bytebuf, mib->parm2); prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2); } else { memset(bytebuf, 0, mib->parm2); prism2mgmt_pstr2bytearea(bytebuf, pstr); result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, mib->parm2); result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, mib->parm2); } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -458,13 +424,11 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_uint32( mibrec_t *mib, static int prism2mib_uint32(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data) p80211msg_dot11req_mibset_t *msg, void *data) { int result; u32 *uint32 = (u32 *) data; Loading @@ -485,7 +449,7 @@ void *data) result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf); } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -513,13 +477,11 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_flag( mibrec_t *mib, static int prism2mib_flag(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data) p80211msg_dot11req_mibset_t *msg, void *data) { int result; u32 *uint32 = (u32 *) data; Loading @@ -545,11 +507,12 @@ void *data) * prism2mgmt_p80211int2prism2int(wordbuf, &flags); */ *wordbuf = flags; result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf); result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf); } } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -577,8 +540,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_wepdefaultkey( mibrec_t *mib, static int prism2mib_wepdefaultkey(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -600,7 +562,7 @@ void *data) result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, len); } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -628,8 +590,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_privacyinvoked( mibrec_t *mib, static int prism2mib_privacyinvoked(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -647,7 +608,7 @@ void *data) result = prism2mib_flag(mib, isget, wlandev, hw, msg, data); return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -675,8 +636,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_excludeunencrypted( mibrec_t *mib, static int prism2mib_excludeunencrypted(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -687,7 +647,7 @@ void *data) result = prism2mib_flag(mib, isget, wlandev, hw, msg, data); return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -715,8 +675,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_fragmentationthreshold( mibrec_t *mib, static int prism2mib_fragmentationthreshold(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -730,13 +689,14 @@ void *data) if ((*uint32) % 2) { printk(KERN_WARNING "Attempt to set odd number " "FragmentationThreshold\n"); msg->resultcode.data = P80211ENUM_resultcode_not_supported; return(0); msg->resultcode.data = P80211ENUM_resultcode_not_supported; return 0; } result = prism2mib_uint32(mib, isget, wlandev, hw, msg, data); return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -764,13 +724,11 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_priv( mibrec_t *mib, static int prism2mib_priv(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data) p80211msg_dot11req_mibset_t *msg, void *data) { p80211pstrd_t *pstr = (p80211pstrd_t *) data; Loading @@ -780,16 +738,21 @@ void *data) case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{ hfa384x_WPAData_t wpa; if (isget) { hfa384x_drvr_getconfig( hw, HFA384x_RID_CNFWPADATA, (u8 *) &wpa, sizeof(wpa)); hfa384x_drvr_getconfig(hw, HFA384x_RID_CNFWPADATA, (u8 *)&wpa, sizeof(wpa)); pstr->len = hfa384x2host_16(wpa.datalen); memcpy(pstr->data, wpa.data, pstr->len); } else { wpa.datalen = host2hfa384x_16(pstr->len); memcpy(wpa.data, pstr->data, pstr->len); result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFWPADATA, (u8 *) &wpa, sizeof(wpa)); result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFWPADATA, (u8 *)&wpa, sizeof(wpa)); } break; } Loading @@ -797,7 +760,7 @@ void *data) printk(KERN_ERR "Unhandled DID 0x%08x\n", mib->did); } return(0); return 0; } /*---------------------------------------------------------------- Loading @@ -821,7 +784,6 @@ void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr) memcpy(bytestr->data, pstr->data, pstr->len); } /*---------------------------------------------------------------- * prism2mgmt_pstr2bytearea * Loading @@ -842,7 +804,6 @@ void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr) memcpy(bytearea, pstr->data, pstr->len); } /*---------------------------------------------------------------- * prism2mgmt_bytestr2pstr * Loading @@ -864,7 +825,6 @@ void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr) memcpy(pstr->data, bytestr->data, pstr->len); } /*---------------------------------------------------------------- * prism2mgmt_bytearea2pstr * Loading @@ -886,7 +846,6 @@ void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len) memcpy(pstr->data, bytearea, len); } /*---------------------------------------------------------------- * prism2mgmt_prism2int2p80211int * Loading @@ -906,7 +865,6 @@ void prism2mgmt_prism2int2p80211int(u16 *prism2int, u32 *wlanint) *wlanint = (u32) hfa384x2host_16(*prism2int); } /*---------------------------------------------------------------- * prism2mgmt_p80211int2prism2int * Loading @@ -926,7 +884,6 @@ void prism2mgmt_p80211int2prism2int(u16 *prism2int, u32 *wlanint) *prism2int = host2hfa384x_16((u16) (*wlanint)); } /*---------------------------------------------------------------- * prism2mgmt_prism2enum2p80211enum * Loading @@ -949,7 +906,6 @@ void prism2mgmt_prism2enum2p80211enum(u16 *prism2enum, u32 *wlanenum, u16 rid) return; } /*---------------------------------------------------------------- * prism2mgmt_p80211enum2prism2enum * Loading @@ -972,8 +928,6 @@ void prism2mgmt_p80211enum2prism2enum(u16 *prism2enum, u32 *wlanenum, u16 rid) return; } /*---------------------------------------------------------------- * prism2mgmt_get_oprateset * Loading Loading @@ -1028,8 +982,6 @@ void prism2mgmt_get_oprateset(u16 *rate, p80211pstrd_t *pstr) return; } /*---------------------------------------------------------------- * prism2mgmt_set_oprateset * Loading Loading
drivers/staging/wlan-ng/prism2mib.c +333 −381 Original line number Diff line number Diff line Loading @@ -50,11 +50,7 @@ * -------------------------------------------------------------------- */ /*================================================================*/ /* System Includes */ #include <linux/version.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> Loading @@ -62,15 +58,12 @@ #include <linux/slab.h> #include <linux/wireless.h> #include <linux/netdevice.h> #include <asm/io.h> #include <linux/io.h> #include <linux/delay.h> #include <asm/byteorder.h> #include <linux/usb.h> #include <linux/bitops.h> /*================================================================*/ /* Project Includes */ #include "p80211types.h" #include "p80211hdr.h" #include "p80211mgmt.h" Loading @@ -82,20 +75,13 @@ #include "hfa384x.h" #include "prism2mgmt.h" /*================================================================*/ /* Local Constants */ #define MIB_TMP_MAXLEN 200 /* Max length of RID record (in bytes). */ /*================================================================*/ /* Local Types */ #define F_STA 0x1 /* MIB is supported on stations. */ #define F_READ 0x2 /* MIB may be read. */ #define F_WRITE 0x4 /* MIB may be written. */ typedef struct mibrec { typedef struct mibrec { u32 did; u16 flag; u16 parm1; Loading @@ -105,79 +91,61 @@ typedef struct mibrec int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); p80211msg_dot11req_mibset_t *msg, void *data); } mibrec_t; /*================================================================*/ /* Local Function Declarations */ static int prism2mib_bytearea2pstr( mibrec_t *mib, static int prism2mib_bytearea2pstr(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_uint32( mibrec_t *mib, static int prism2mib_uint32(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_flag( mibrec_t *mib, static int prism2mib_flag(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_wepdefaultkey( mibrec_t *mib, static int prism2mib_wepdefaultkey(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_privacyinvoked( mibrec_t *mib, static int prism2mib_privacyinvoked(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_excludeunencrypted( mibrec_t *mib, static int prism2mib_excludeunencrypted(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_fragmentationthreshold( mibrec_t *mib, static int prism2mib_fragmentationthreshold(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); static int prism2mib_priv( mibrec_t *mib, static int prism2mib_priv(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data); /*================================================================*/ /* Local Static Definitions */ p80211msg_dot11req_mibset_t *msg, void *data); static mibrec_t mibtab[] = { Loading Loading @@ -268,10 +236,8 @@ static mibrec_t mibtab[] = { F_STA | F_READ | F_WRITE, HFA384x_RID_CNFWPADATA, 0, 0, prism2mib_priv}, { 0, 0, 0, 0, 0, NULL}}; /*================================================================*/ /* Function Definitions */ {0, 0, 0, 0, 0, NULL} }; /*---------------------------------------------------------------- * prism2mgmt_mibset_mibget Loading Loading @@ -361,8 +327,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) ** portion of the "mibattribute". */ result = mib->func(mib, isget, wlandev, hw, msg, (void *) mibitem->data); result = mib->func(mib, isget, wlandev, hw, msg, (void *)mibitem->data); if (msg->resultcode.data == P80211ENUM_resultcode_success) { if (result != 0) { Loading @@ -381,7 +346,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) } done: return(0); return 0; } /*---------------------------------------------------------------- Loading Loading @@ -409,8 +374,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) * ----------------------------------------------------------------*/ static int prism2mib_bytearea2pstr( mibrec_t *mib, static int prism2mib_bytearea2pstr(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -422,15 +386,17 @@ void *data) u8 bytebuf[MIB_TMP_MAXLEN]; if (isget) { result = hfa384x_drvr_getconfig(hw, mib->parm1, bytebuf, mib->parm2); result = hfa384x_drvr_getconfig(hw, mib->parm1, bytebuf, mib->parm2); prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2); } else { memset(bytebuf, 0, mib->parm2); prism2mgmt_pstr2bytearea(bytebuf, pstr); result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, mib->parm2); result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, mib->parm2); } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -458,13 +424,11 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_uint32( mibrec_t *mib, static int prism2mib_uint32(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data) p80211msg_dot11req_mibset_t *msg, void *data) { int result; u32 *uint32 = (u32 *) data; Loading @@ -485,7 +449,7 @@ void *data) result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf); } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -513,13 +477,11 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_flag( mibrec_t *mib, static int prism2mib_flag(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data) p80211msg_dot11req_mibset_t *msg, void *data) { int result; u32 *uint32 = (u32 *) data; Loading @@ -545,11 +507,12 @@ void *data) * prism2mgmt_p80211int2prism2int(wordbuf, &flags); */ *wordbuf = flags; result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf); result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf); } } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -577,8 +540,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_wepdefaultkey( mibrec_t *mib, static int prism2mib_wepdefaultkey(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -600,7 +562,7 @@ void *data) result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, len); } return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -628,8 +590,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_privacyinvoked( mibrec_t *mib, static int prism2mib_privacyinvoked(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -647,7 +608,7 @@ void *data) result = prism2mib_flag(mib, isget, wlandev, hw, msg, data); return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -675,8 +636,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_excludeunencrypted( mibrec_t *mib, static int prism2mib_excludeunencrypted(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -687,7 +647,7 @@ void *data) result = prism2mib_flag(mib, isget, wlandev, hw, msg, data); return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -715,8 +675,7 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_fragmentationthreshold( mibrec_t *mib, static int prism2mib_fragmentationthreshold(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, Loading @@ -730,13 +689,14 @@ void *data) if ((*uint32) % 2) { printk(KERN_WARNING "Attempt to set odd number " "FragmentationThreshold\n"); msg->resultcode.data = P80211ENUM_resultcode_not_supported; return(0); msg->resultcode.data = P80211ENUM_resultcode_not_supported; return 0; } result = prism2mib_uint32(mib, isget, wlandev, hw, msg, data); return(result); return result; } /*---------------------------------------------------------------- Loading Loading @@ -764,13 +724,11 @@ void *data) * ----------------------------------------------------------------*/ static int prism2mib_priv( mibrec_t *mib, static int prism2mib_priv(mibrec_t *mib, int isget, wlandevice_t *wlandev, hfa384x_t *hw, p80211msg_dot11req_mibset_t *msg, void *data) p80211msg_dot11req_mibset_t *msg, void *data) { p80211pstrd_t *pstr = (p80211pstrd_t *) data; Loading @@ -780,16 +738,21 @@ void *data) case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{ hfa384x_WPAData_t wpa; if (isget) { hfa384x_drvr_getconfig( hw, HFA384x_RID_CNFWPADATA, (u8 *) &wpa, sizeof(wpa)); hfa384x_drvr_getconfig(hw, HFA384x_RID_CNFWPADATA, (u8 *)&wpa, sizeof(wpa)); pstr->len = hfa384x2host_16(wpa.datalen); memcpy(pstr->data, wpa.data, pstr->len); } else { wpa.datalen = host2hfa384x_16(pstr->len); memcpy(wpa.data, pstr->data, pstr->len); result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFWPADATA, (u8 *) &wpa, sizeof(wpa)); result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFWPADATA, (u8 *)&wpa, sizeof(wpa)); } break; } Loading @@ -797,7 +760,7 @@ void *data) printk(KERN_ERR "Unhandled DID 0x%08x\n", mib->did); } return(0); return 0; } /*---------------------------------------------------------------- Loading @@ -821,7 +784,6 @@ void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr) memcpy(bytestr->data, pstr->data, pstr->len); } /*---------------------------------------------------------------- * prism2mgmt_pstr2bytearea * Loading @@ -842,7 +804,6 @@ void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr) memcpy(bytearea, pstr->data, pstr->len); } /*---------------------------------------------------------------- * prism2mgmt_bytestr2pstr * Loading @@ -864,7 +825,6 @@ void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr) memcpy(pstr->data, bytestr->data, pstr->len); } /*---------------------------------------------------------------- * prism2mgmt_bytearea2pstr * Loading @@ -886,7 +846,6 @@ void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len) memcpy(pstr->data, bytearea, len); } /*---------------------------------------------------------------- * prism2mgmt_prism2int2p80211int * Loading @@ -906,7 +865,6 @@ void prism2mgmt_prism2int2p80211int(u16 *prism2int, u32 *wlanint) *wlanint = (u32) hfa384x2host_16(*prism2int); } /*---------------------------------------------------------------- * prism2mgmt_p80211int2prism2int * Loading @@ -926,7 +884,6 @@ void prism2mgmt_p80211int2prism2int(u16 *prism2int, u32 *wlanint) *prism2int = host2hfa384x_16((u16) (*wlanint)); } /*---------------------------------------------------------------- * prism2mgmt_prism2enum2p80211enum * Loading @@ -949,7 +906,6 @@ void prism2mgmt_prism2enum2p80211enum(u16 *prism2enum, u32 *wlanenum, u16 rid) return; } /*---------------------------------------------------------------- * prism2mgmt_p80211enum2prism2enum * Loading @@ -972,8 +928,6 @@ void prism2mgmt_p80211enum2prism2enum(u16 *prism2enum, u32 *wlanenum, u16 rid) return; } /*---------------------------------------------------------------- * prism2mgmt_get_oprateset * Loading Loading @@ -1028,8 +982,6 @@ void prism2mgmt_get_oprateset(u16 *rate, p80211pstrd_t *pstr) return; } /*---------------------------------------------------------------- * prism2mgmt_set_oprateset * Loading