p80211msg_dot11req_mibset_t *msg = msgp;
p80211itemd_t *mibitem;
- DBFENTER;
-
msg->resultcode.status = P80211ENUM_msgitem_status_data_ok;
msg->resultcode.data = P80211ENUM_resultcode_success;
}
done:
- DBFEXIT;
-
return(0);
}
p80211pstrd_t *pstr = (p80211pstrd_t*) data;
u8 bytebuf[MIB_TMP_MAXLEN];
- DBFENTER;
-
if (isget) {
result = hfa384x_drvr_getconfig(hw, mib->parm1, bytebuf, mib->parm2);
prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2);
result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, mib->parm2);
}
- DBFEXIT;
return(result);
}
u8 bytebuf[MIB_TMP_MAXLEN];
u16 *wordbuf = (u16*) bytebuf;
- DBFENTER;
-
if (isget) {
result = hfa384x_drvr_getconfig16(hw, mib->parm1, wordbuf);
*uint32 = *wordbuf;
result = hfa384x_drvr_setconfig16(hw, mib->parm1, *wordbuf);
}
- DBFEXIT;
return(result);
}
u16 *wordbuf = (u16*) bytebuf;
u32 flags;
- DBFENTER;
-
result = hfa384x_drvr_getconfig16(hw, mib->parm1, wordbuf);
if (result == 0) {
/* [MSM] Removed, getconfig16 returns the value in host order.
}
}
- DBFEXIT;
return(result);
}
u8 bytebuf[MIB_TMP_MAXLEN];
u16 len;
- DBFENTER;
-
if (isget) {
result = 0; /* Should never happen. */
} else {
result = hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, len);
}
- DBFEXIT;
return(result);
}
{
int result;
- DBFENTER;
-
if (wlandev->hostwep & HOSTWEP_DECRYPT) {
if (wlandev->hostwep & HOSTWEP_DECRYPT)
mib->parm2 |= HFA384x_WEPFLAGS_DISABLE_RXCRYPT;
result = prism2mib_flag(mib, isget, wlandev, hw, msg, data);
- DBFEXIT;
return(result);
}
{
int result;
- DBFENTER;
-
result = prism2mib_flag(mib, isget, wlandev, hw, msg, data);
- DBFEXIT;
return(result);
}
int result;
u32 *uint32 = (u32*) data;
- DBFENTER;
-
if (!isget)
if ((*uint32) % 2) {
WLAN_LOG_WARNING("Attempt to set odd number "
result = prism2mib_uint32(mib, isget, wlandev, hw, msg, data);
- DBFEXIT;
return(result);
}
int result;
- DBFENTER;
-
switch (mib->did) {
case DIDmib_lnx_lnxConfigTable_lnxRSNAIE: {
hfa384x_WPAData_t wpa;
WLAN_LOG_ERROR("Unhandled DID 0x%08x\n", mib->did);
}
- DBFEXIT;
return(0);
}
void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr)
{
- DBFENTER;
-
bytestr->len = host2hfa384x_16((u16)(pstr->len));
memcpy(bytestr->data, pstr->data, pstr->len);
- DBFEXIT;
}
void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr)
{
- DBFENTER;
-
memcpy(bytearea, pstr->data, pstr->len);
- DBFEXIT;
}
void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr)
{
- DBFENTER;
-
pstr->len = (u8)(hfa384x2host_16((u16)(bytestr->len)));
memcpy(pstr->data, bytestr->data, pstr->len);
- DBFEXIT;
}
void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len)
{
- DBFENTER;
-
pstr->len = (u8)len;
memcpy(pstr->data, bytearea, len);
- DBFEXIT;
}
void prism2mgmt_prism2int2p80211int(u16 *prism2int, u32 *wlanint)
{
- DBFENTER;
-
*wlanint = (u32)hfa384x2host_16(*prism2int);
- DBFEXIT;
}
void prism2mgmt_p80211int2prism2int(u16 *prism2int, u32 *wlanint)
{
- DBFENTER;
-
*prism2int = host2hfa384x_16((u16)(*wlanint));
- DBFEXIT;
}
----------------------------------------------------------------*/
void prism2mgmt_prism2enum2p80211enum(u16 *prism2enum, u32 *wlanenum, u16 rid)
{
- DBFENTER;
-
/* At the moment, the need for this functionality hasn't
presented itself. All the wlan enumerated values are
a 1-to-1 match against the Prism2 enumerated values*/
- DBFEXIT;
return;
}
----------------------------------------------------------------*/
void prism2mgmt_p80211enum2prism2enum(u16 *prism2enum, u32 *wlanenum, u16 rid)
{
- DBFENTER;
-
/* At the moment, the need for this functionality hasn't
presented itself. All the wlan enumerated values are
a 1-to-1 match against the Prism2 enumerated values*/
- DBFEXIT;
return;
}
u8 len;
u8 *datarate;
- DBFENTER;
-
len = 0;
datarate = pstr->data;
pstr->len = len;
- DBFEXIT;
return;
}
u8 *datarate;
int i;
- DBFENTER;
-
*rate = 0;
datarate = pstr->data;
}
}
- DBFEXIT;
return;
}