diff options
Diffstat (limited to 'drivers/staging/wlan-ng/prism2mib.c')
-rw-r--r-- | drivers/staging/wlan-ng/prism2mib.c | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c index f930254e1b3..2fff0a110bc 100644 --- a/drivers/staging/wlan-ng/prism2mib.c +++ b/drivers/staging/wlan-ng/prism2mib.c @@ -86,65 +86,65 @@ typedef struct mibrec { u16 parm1; u16 parm2; u16 parm3; - int (*func) (struct mibrec * mib, + int (*func) (struct mibrec *mib, int isget, - wlandevice_t * wlandev, - hfa384x_t * hw, - p80211msg_dot11req_mibset_t * msg, void *data); + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data); } mibrec_t; -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, + 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); + wlandevice_t *wlandev, + hfa384x_t *hw, + 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); + wlandevice_t *wlandev, + hfa384x_t *hw, + 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, + 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, + 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, + 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, + 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); + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data); static mibrec_t mibtab[] = { @@ -258,7 +258,7 @@ static mibrec_t mibtab[] = { * interrupt ----------------------------------------------------------------*/ -int prism2mgmt_mibset_mibget(wlandevice_t * wlandev, void *msgp) +int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) { hfa384x_t *hw = wlandev->priv; int result, isget; @@ -372,11 +372,11 @@ done: * ----------------------------------------------------------------*/ -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, + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; @@ -422,11 +422,11 @@ static int prism2mib_bytearea2pstr(mibrec_t * mib, * ----------------------------------------------------------------*/ -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) + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; u32 *uint32 = (u32 *) data; @@ -469,11 +469,11 @@ static int prism2mib_uint32(mibrec_t * mib, * ----------------------------------------------------------------*/ -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) + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; u32 *uint32 = (u32 *) data; @@ -526,11 +526,11 @@ static int prism2mib_flag(mibrec_t * mib, * ----------------------------------------------------------------*/ -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, + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; @@ -576,11 +576,11 @@ static int prism2mib_wepdefaultkey(mibrec_t * mib, * ----------------------------------------------------------------*/ -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, + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; @@ -622,11 +622,11 @@ static int prism2mib_privacyinvoked(mibrec_t * mib, * ----------------------------------------------------------------*/ -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, + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; @@ -661,11 +661,11 @@ static int prism2mib_excludeunencrypted(mibrec_t * mib, * ----------------------------------------------------------------*/ -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, + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { int result; @@ -710,11 +710,11 @@ static int prism2mib_fragmentationthreshold(mibrec_t * mib, * ----------------------------------------------------------------*/ -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) + wlandevice_t *wlandev, + hfa384x_t *hw, + p80211msg_dot11req_mibset_t *msg, void *data) { p80211pstrd_t *pstr = (p80211pstrd_t *) data; @@ -764,7 +764,7 @@ static int prism2mib_priv(mibrec_t * mib, * ----------------------------------------------------------------*/ -void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr) +void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr) { bytestr->len = cpu_to_le16((u16) (pstr->len)); memcpy(bytestr->data, pstr->data, pstr->len); @@ -785,7 +785,7 @@ void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr) * ----------------------------------------------------------------*/ -void prism2mgmt_pstr2bytearea(u8 * bytearea, p80211pstrd_t * pstr) +void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr) { memcpy(bytearea, pstr->data, pstr->len); } @@ -805,7 +805,7 @@ void prism2mgmt_pstr2bytearea(u8 * bytearea, p80211pstrd_t * pstr) * ----------------------------------------------------------------*/ -void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr) +void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr) { pstr->len = (u8) (le16_to_cpu((u16) (bytestr->len))); memcpy(pstr->data, bytestr->data, pstr->len); @@ -826,7 +826,7 @@ void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr) * ----------------------------------------------------------------*/ -void prism2mgmt_bytearea2pstr(u8 * bytearea, p80211pstrd_t * pstr, int len) +void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len) { pstr->len = (u8) len; memcpy(pstr->data, bytearea, len); |