#ifdef DEBUG staticinlinevoid lbs_deb_hex(unsignedint grp, constchar *prompt, const u8 *buf, int len)
{ int i = 0;
if (len &&
(lbs_debug & LBS_DEB_HEX) &&
(lbs_debug & grp))
{ for (i = 1; i <= len; i++) { if ((i & 0xf) == 1) { if (i != 1)
printk("\n");
printk(DRV_NAME " %s: ", prompt);
}
printk("%02x ", (u8) * buf);
buf++;
}
printk("\n");
}
} #else #define lbs_deb_hex(grp,prompt,buf,len) do {} while (0) #endif
/* Buffer Constants */
/* The size of SQ memory PPA, DPA are 8 DWORDs, that keep the physical * addresses of TxPD buffers. Station has only 8 TxPD available, Whereas * driver has more local TxPDs. Each TxPD on the host memory is associated * with a Tx control node. The driver maintains 8 RxPD descriptors for * station firmware to store Rx packet information. * * Current version of MAC has a 32x6 multicast address buffer. * * 802.11b can have up to 14 channels, the driver keeps the * BSSID(MAC address) of each APs or Ad hoc stations it has sensed.
*/
/* * Values used to populate the struct mrvl_mesh_ie. The only time you need this * is when enabling the mesh using CMD_MESH_CONFIG.
*/ #define MARVELL_MESH_IE_TYPE 4 #define MARVELL_MESH_IE_SUBTYPE 0 #define MARVELL_MESH_IE_VERSION 0 #define MARVELL_MESH_PROTO_ID_HWMP 0 #define MARVELL_MESH_METRIC_ID 0 #define MARVELL_MESH_CAPABILITY 0
/* INT status Bit Definition */ #define MRVDRV_TX_DNLD_RDY 0x0001 #define MRVDRV_RX_UPLD_RDY 0x0002 #define MRVDRV_CMD_DNLD_RDY 0x0004 #define MRVDRV_CMD_UPLD_RDY 0x0008 #define MRVDRV_CARDEVENT 0x0010
/* Tx mesh flag */ /* * Currently we are using normal WDS flag as mesh flag. * TODO: change to proper mesh flag when MAC understands it.
*/ #define TxPD_CONTROL_WDS_FRAME (1<<17) #define TxPD_MESH_FRAME TxPD_CONTROL_WDS_FRAME
/* Mesh interface ID */ #define MESH_IFACE_ID 0x0001 /* Mesh id should be in bits 14-13-12 */ #define MESH_IFACE_BIT_OFFSET 0x000c /* Mesh enable bit in FW capability */ #define MESH_CAPINFO_ENABLE_MASK (1<<16)
/* FW definition from Marvell v4 */ #define MRVL_FW_V4 (0x04) /* FW definition from Marvell v5 */ #define MRVL_FW_V5 (0x05) /* FW definition from Marvell v10 */ #define MRVL_FW_V10 (0x0a) /* FW major revision definition */ #define MRVL_FW_MAJOR_REV(x) ((x)>>24)
/* RxPD status */
#define MRVDRV_RXPD_STATUS_OK 0x0001
/* RxPD status - Received packet types */ /* Rx mesh flag */ /* * Currently we are using normal WDS flag as mesh flag. * TODO: change to proper mesh flag when MAC understands it.
*/ #define RxPD_CONTROL_WDS_FRAME (0x40) #define RxPD_MESH_FRAME RxPD_CONTROL_WDS_FRAME
/* RSSI-related defines */ /* * RSSI constants are used to implement 802.11 RSSI threshold * indication. if the Rx packet signal got too weak for 5 consecutive * times, miniport driver (driver) will report this event to wrapper
*/
/* LBS_802_11_POWER_MODE */ enum LBS_802_11_POWER_MODE {
LBS802_11POWERMODECAM,
LBS802_11POWERMODEMAX_PSP,
LBS802_11POWERMODEFAST_PSP, /* not a real mode, defined as an upper bound */
LBS802_11POWEMODEMAX
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.