/* The four transmit queues allow for performing quality of service (qos) transmissions as per the 802.11 protocol. Currently Linux does not provide a mechanism to the user for utilizing prioritized queues, so we only utilize the first data transmit queue (queue1). Driver allocates buffers of this size for Rx ipw_rx_queue_space - Return number of free slots available in queue.  */
static int ipw_rx_queue_space(const struct ipw_rx_queue *q)
/* The four transmit queues allow for performing quality of service (qos) transmissions as per the 802.11 protocol. Currently Linux does not provide a mechanism to the user for utilizing prioritized queues, so we only utilize the first data transmit queue (queue1). Driver allocates buffers of this size for Rx ipw_rx_queue_space - Return number of free slots available in queue.  */
static int ipw_rx_queue_space(const struct ipw_rx_queue *q)
{
	int s = q->read - q->write;
	if (s <= 0)
		s += RX_QUEUE_SIZE;
	s -= 2;
	if (s < 0)
		s = 0;
	return s;
}