rc80211_pid_algo.c 17.0 KB
Newer Older
1 2 3 4
/*
 * Copyright 2002-2005, Instant802 Networks, Inc.
 * Copyright 2005, Devicescape Software, Inc.
 * Copyright 2007, Mattias Nissler <mattias.nissler@gmx.de>
5
 * Copyright 2007-2008, Stefano Brivio <stefano.brivio@polimi.it>
6 7 8 9 10 11 12 13 14
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/skbuff.h>
15
#include <linux/debugfs.h>
16 17
#include <net/mac80211.h>
#include "ieee80211_rate.h"
18 19 20
#ifdef CONFIG_MAC80211_MESH
#include "mesh.h"
#endif
21

M
Mattias Nissler 已提交
22 23
#include "rc80211_pid.h"

24 25 26 27 28 29 30

/* This is an implementation of a TX rate control algorithm that uses a PID
 * controller. Given a target failed frames rate, the controller decides about
 * TX rate changes to meet the target failed frames rate.
 *
 * The controller basically computes the following:
 *
31
 * adj = CP * err + CI * err_avg + CD * (err - last_err) * (1 + sharpening)
32 33 34 35 36 37
 *
 * where
 * 	adj	adjustment value that is used to switch TX rate (see below)
 * 	err	current error: target vs. current failed frames percentage
 * 	last_err	last error
 * 	err_avg	average (i.e. poor man's integral) of recent errors
38 39 40
 *	sharpening	non-zero when fast response is needed (i.e. right after
 *			association or no frames sent for a long time), heading
 * 			to zero over time
41 42 43 44 45 46 47 48 49 50
 * 	CP	Proportional coefficient
 * 	CI	Integral coefficient
 * 	CD	Derivative coefficient
 *
 * CP, CI, CD are subject to careful tuning.
 *
 * The integral component uses a exponential moving average approach instead of
 * an actual sliding window. The advantage is that we don't need to keep an
 * array of the last N error values and computation is easier.
 *
51 52 53 54 55 56 57 58 59 60 61 62
 * Once we have the adj value, we map it to a rate by means of a learning
 * algorithm. This algorithm keeps the state of the percentual failed frames
 * difference between rates. The behaviour of the lowest available rate is kept
 * as a reference value, and every time we switch between two rates, we compute
 * the difference between the failed frames each rate exhibited. By doing so,
 * we compare behaviours which different rates exhibited in adjacent timeslices,
 * thus the comparison is minimally affected by external conditions. This
 * difference gets propagated to the whole set of measurements, so that the
 * reference is always the same. Periodically, we normalize this set so that
 * recent events weigh the most. By comparing the adj value with this set, we
 * avoid pejorative switches to lower rates and allow for switches to higher
 * rates if they behaved well.
63 64 65 66 67 68 69
 *
 * Note that for the computations we use a fixed-point representation to avoid
 * floating point arithmetic. Hence, all values are shifted left by
 * RC_PID_ARITH_SHIFT.
 */


70 71 72 73
/* Adjust the rate while ensuring that we won't switch to a lower rate if it
 * exhibited a worse failed frames behaviour and we'll choose the highest rate
 * whose failed frames behaviour is not worse than the one of the original rate
 * target. While at it, check that the new rate is valid. */
74
static void rate_control_pid_adjust_rate(struct ieee80211_local *local,
75 76
					 struct sta_info *sta, int adj,
					 struct rc_pid_rateinfo *rinfo)
77 78
{
	struct ieee80211_sub_if_data *sdata;
79
	struct ieee80211_supported_band *sband;
80 81
	int cur_sorted, new_sorted, probe, tmp, n_bitrates, band;
	int cur = sta->txrate_idx;
82 83

	sdata = IEEE80211_DEV_TO_SUB_IF(sta->dev);
84
	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
85 86
	band = sband->band;
	n_bitrates = sband->n_bitrates;
87

88 89 90
	/* Map passed arguments to sorted values. */
	cur_sorted = rinfo[cur].rev_index;
	new_sorted = cur_sorted + adj;
91

92 93 94 95 96 97 98
	/* Check limits. */
	if (new_sorted < 0)
		new_sorted = rinfo[0].rev_index;
	else if (new_sorted >= n_bitrates)
		new_sorted = rinfo[n_bitrates - 1].rev_index;

	tmp = new_sorted;
99

100 101 102 103 104 105 106 107 108 109 110 111
	if (adj < 0) {
		/* Ensure that the rate decrease isn't disadvantageous. */
		for (probe = cur_sorted; probe >= new_sorted; probe--)
			if (rinfo[probe].diff <= rinfo[cur_sorted].diff &&
			    rate_supported(sta, band, rinfo[probe].index))
				tmp = probe;
	} else {
		/* Look for rate increase with zero (or below) cost. */
		for (probe = new_sorted + 1; probe < n_bitrates; probe++)
			if (rinfo[probe].diff <= rinfo[new_sorted].diff &&
			    rate_supported(sta, band, rinfo[probe].index))
				tmp = probe;
112
	}
M
Mattias Nissler 已提交
113

114 115 116 117 118 119 120 121 122 123 124 125
	/* Fit the rate found to the nearest supported rate. */
	do {
		if (rate_supported(sta, band, rinfo[tmp].index)) {
			sta->txrate_idx = rinfo[tmp].index;
			break;
		}
		if (adj < 0)
			tmp--;
		else
			tmp++;
	} while (tmp < n_bitrates && tmp >= 0);

M
Mattias Nissler 已提交
126 127 128
#ifdef CONFIG_MAC80211_DEBUGFS
	rate_control_pid_event_rate_change(
		&((struct rc_pid_sta_info *)sta->rate_ctrl_priv)->events,
129
		sta->txrate_idx, sband->bitrates[sta->txrate_idx].bitrate);
M
Mattias Nissler 已提交
130
#endif
131 132
}

133
/* Normalize the failed frames per-rate differences. */
134
static void rate_control_pid_normalize(struct rc_pid_info *pinfo, int l)
135
{
136 137
	int i, norm_offset = pinfo->norm_offset;
	struct rc_pid_rateinfo *r = pinfo->rinfo;
138

139 140 141 142
	if (r[0].diff > norm_offset)
		r[0].diff -= norm_offset;
	else if (r[0].diff < -norm_offset)
		r[0].diff += norm_offset;
143
	for (i = 0; i < l - 1; i++)
144 145
		if (r[i + 1].diff > r[i].diff + norm_offset)
			r[i + 1].diff -= norm_offset;
146
		else if (r[i + 1].diff <= r[i].diff)
147
			r[i + 1].diff += norm_offset;
148 149
}

150 151 152 153
static void rate_control_pid_sample(struct rc_pid_info *pinfo,
				    struct ieee80211_local *local,
				    struct sta_info *sta)
{
154 155 156
#ifdef CONFIG_MAC80211_MESH
	struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(sta->dev);
#endif
157
	struct rc_pid_sta_info *spinfo = sta->rate_ctrl_priv;
158
	struct rc_pid_rateinfo *rinfo = pinfo->rinfo;
159
	struct ieee80211_supported_band *sband;
160 161
	u32 pf;
	s32 err_avg;
162 163 164
	u32 err_prop;
	u32 err_int;
	u32 err_der;
165
	int adj, i, j, tmp;
166
	unsigned long period;
167

168
	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
169
	spinfo = sta->rate_ctrl_priv;
170 171 172

	/* In case nothing happened during the previous control interval, turn
	 * the sharpening factor on. */
173 174 175 176 177
	period = (HZ * pinfo->sampling_period + 500) / 1000;
	if (!period)
		period = 1;
	if (jiffies - spinfo->last_sample > 2 * period)
		spinfo->sharp_cnt = pinfo->sharpen_duration;
178

179 180
	spinfo->last_sample = jiffies;

181
	/* This should never happen, but in case, we assume the old sample is
182
	 * still a good measurement and copy it. */
183
	if (unlikely(spinfo->tx_num_xmit == 0))
184 185 186
		pf = spinfo->last_pf;
	else {
		pf = spinfo->tx_num_failed * 100 / spinfo->tx_num_xmit;
187 188 189 190 191
#ifdef CONFIG_MAC80211_MESH
		if (pf == 100 &&
		    sdata->vif.type == IEEE80211_IF_TYPE_MESH_POINT)
			mesh_plink_broken(sta);
#endif
192
		pf <<= RC_PID_ARITH_SHIFT;
193 194
		sta->fail_avg = ((pf + (spinfo->last_pf << 3)) / 9)
					>> RC_PID_ARITH_SHIFT;
195 196
	}

197 198 199
	spinfo->tx_num_xmit = 0;
	spinfo->tx_num_failed = 0;

200
	/* If we just switched rate, update the rate behaviour info. */
201
	if (pinfo->oldrate != sta->txrate_idx) {
202 203

		i = rinfo[pinfo->oldrate].rev_index;
204
		j = rinfo[sta->txrate_idx].rev_index;
205 206 207 208 209

		tmp = (pf - spinfo->last_pf);
		tmp = RC_PID_DO_ARITH_RIGHT_SHIFT(tmp, RC_PID_ARITH_SHIFT);

		rinfo[j].diff = rinfo[i].diff + tmp;
210
		pinfo->oldrate = sta->txrate_idx;
211
	}
212
	rate_control_pid_normalize(pinfo, sband->n_bitrates);
213

214
	/* Compute the proportional, integral and derivative errors. */
215
	err_prop = (pinfo->target << RC_PID_ARITH_SHIFT) - pf;
216

217
	err_avg = spinfo->err_avg_sc >> pinfo->smoothing_shift;
218
	spinfo->err_avg_sc = spinfo->err_avg_sc - err_avg + err_prop;
219
	err_int = spinfo->err_avg_sc >> pinfo->smoothing_shift;
220

221 222
	err_der = (pf - spinfo->last_pf) *
		  (1 + pinfo->sharpen_factor * spinfo->sharp_cnt);
223
	spinfo->last_pf = pf;
224 225
	if (spinfo->sharp_cnt)
			spinfo->sharp_cnt--;
226

M
Mattias Nissler 已提交
227 228 229 230 231
#ifdef CONFIG_MAC80211_DEBUGFS
	rate_control_pid_event_pf_sample(&spinfo->events, pf, err_prop, err_int,
					 err_der);
#endif

232 233 234
	/* Compute the controller output. */
	adj = (err_prop * pinfo->coeff_p + err_int * pinfo->coeff_i
	      + err_der * pinfo->coeff_d);
235
	adj = RC_PID_DO_ARITH_RIGHT_SHIFT(adj, 2 * RC_PID_ARITH_SHIFT);
236 237 238

	/* Change rate. */
	if (adj)
239
		rate_control_pid_adjust_rate(local, sta, adj, rinfo);
240 241 242 243 244 245 246 247
}

static void rate_control_pid_tx_status(void *priv, struct net_device *dev,
				       struct sk_buff *skb,
				       struct ieee80211_tx_status *status)
{
	struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
248
	struct ieee80211_sub_if_data *sdata;
249 250 251
	struct rc_pid_info *pinfo = priv;
	struct sta_info *sta;
	struct rc_pid_sta_info *spinfo;
252
	unsigned long period;
253
	struct ieee80211_supported_band *sband;
254 255

	sta = sta_info_get(local, hdr->addr1);
256
	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
257 258 259 260

	if (!sta)
		return;

261 262 263
	/* Don't update the state if we're not controlling the rate. */
	sdata = IEEE80211_DEV_TO_SUB_IF(sta->dev);
	if (sdata->bss && sdata->bss->force_unicast_rateidx > -1) {
264
		sta->txrate_idx = sdata->bss->max_ratectrl_rateidx;
265 266 267
		return;
	}

268 269
	/* Ignore all frames that were sent with a different rate than the rate
	 * we currently advise mac80211 to use. */
270
	if (status->control.tx_rate != &sband->bitrates[sta->txrate_idx])
271
		goto ignore;
272 273 274 275

	spinfo = sta->rate_ctrl_priv;
	spinfo->tx_num_xmit++;

M
Mattias Nissler 已提交
276 277 278 279
#ifdef CONFIG_MAC80211_DEBUGFS
	rate_control_pid_event_tx_status(&spinfo->events, status);
#endif

280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302
	/* We count frames that totally failed to be transmitted as two bad
	 * frames, those that made it out but had some retries as one good and
	 * one bad frame. */
	if (status->excessive_retries) {
		spinfo->tx_num_failed += 2;
		spinfo->tx_num_xmit++;
	} else if (status->retry_count) {
		spinfo->tx_num_failed++;
		spinfo->tx_num_xmit++;
	}

	if (status->excessive_retries) {
		sta->tx_retry_failed++;
		sta->tx_num_consecutive_failures++;
		sta->tx_num_mpdu_fail++;
	} else {
		sta->tx_num_consecutive_failures = 0;
		sta->tx_num_mpdu_ok++;
	}
	sta->tx_retry_count += status->retry_count;
	sta->tx_num_mpdu_fail += status->retry_count;

	/* Update PID controller state. */
303 304 305 306
	period = (HZ * pinfo->sampling_period + 500) / 1000;
	if (!period)
		period = 1;
	if (time_after(jiffies, spinfo->last_sample + period))
307 308
		rate_control_pid_sample(pinfo, local, sta);

309
ignore:
310 311 312 313
	sta_info_put(sta);
}

static void rate_control_pid_get_rate(void *priv, struct net_device *dev,
314
				      struct ieee80211_supported_band *sband,
315 316 317 318 319
				      struct sk_buff *skb,
				      struct rate_selection *sel)
{
	struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
320
	struct ieee80211_sub_if_data *sdata;
321 322
	struct sta_info *sta;
	int rateidx;
323
	u16 fc;
324 325 326

	sta = sta_info_get(local, hdr->addr1);

327 328 329 330 331
	/* Send management frames and broadcast/multicast data using lowest
	 * rate. */
	fc = le16_to_cpu(hdr->frame_control);
	if ((fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA ||
	    is_multicast_ether_addr(hdr->addr1) || !sta) {
332
		sel->rate = rate_lowest(local, sband, sta);
333 334
		if (sta)
			sta_info_put(sta);
335 336 337
		return;
	}

338 339 340
	/* If a forced rate is in effect, select it. */
	sdata = IEEE80211_DEV_TO_SUB_IF(dev);
	if (sdata->bss && sdata->bss->force_unicast_rateidx > -1)
341
		sta->txrate_idx = sdata->bss->force_unicast_rateidx;
342

343
	rateidx = sta->txrate_idx;
344

345 346
	if (rateidx >= sband->n_bitrates)
		rateidx = sband->n_bitrates - 1;
347

348
	sta->last_txrate_idx = rateidx;
349

350 351
	sta_info_put(sta);

352
	sel->rate = &sband->bitrates[rateidx];
M
Mattias Nissler 已提交
353 354 355 356

#ifdef CONFIG_MAC80211_DEBUGFS
	rate_control_pid_event_tx_rate(
		&((struct rc_pid_sta_info *) sta->rate_ctrl_priv)->events,
357
		rateidx, sband->bitrates[rateidx].bitrate);
M
Mattias Nissler 已提交
358
#endif
359 360 361 362 363 364 365 366 367 368
}

static void rate_control_pid_rate_init(void *priv, void *priv_sta,
					  struct ieee80211_local *local,
					  struct sta_info *sta)
{
	/* TODO: This routine should consider using RSSI from previous packets
	 * as we need to have IEEE 802.1X auth succeed immediately after assoc..
	 * Until that method is implemented, we will use the lowest supported
	 * rate as a workaround. */
369 370 371 372
	struct ieee80211_supported_band *sband;

	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
	sta->txrate_idx = rate_lowest_index(local, sband, sta);
373
	sta->fail_avg = 0;
374 375 376 377 378
}

static void *rate_control_pid_alloc(struct ieee80211_local *local)
{
	struct rc_pid_info *pinfo;
379
	struct rc_pid_rateinfo *rinfo;
380
	struct ieee80211_supported_band *sband;
381 382
	int i, j, tmp;
	bool s;
383 384 385
#ifdef CONFIG_MAC80211_DEBUGFS
	struct rc_pid_debugfs_entries *de;
#endif
386

387 388
	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];

389
	pinfo = kmalloc(sizeof(*pinfo), GFP_ATOMIC);
390 391 392
	if (!pinfo)
		return NULL;

393
	/* We can safely assume that sband won't change unless we get
394
	 * reinitialized. */
395
	rinfo = kmalloc(sizeof(*rinfo) * sband->n_bitrates, GFP_ATOMIC);
396 397 398 399 400 401 402 403
	if (!rinfo) {
		kfree(pinfo);
		return NULL;
	}

	/* Sort the rates. This is optimized for the most common case (i.e.
	 * almost-sorted CCK+OFDM rates). Kind of bubble-sort with reversed
	 * mapping too. */
404
	for (i = 0; i < sband->n_bitrates; i++) {
405 406
		rinfo[i].index = i;
		rinfo[i].rev_index = i;
407
		if (pinfo->fast_start)
408 409
			rinfo[i].diff = 0;
		else
410
			rinfo[i].diff = i * pinfo->norm_offset;
411
	}
412
	for (i = 1; i < sband->n_bitrates; i++) {
413
		s = 0;
414 415 416
		for (j = 0; j < sband->n_bitrates - i; j++)
			if (unlikely(sband->bitrates[rinfo[j].index].bitrate >
				     sband->bitrates[rinfo[j + 1].index].bitrate)) {
417 418 419 420 421 422 423 424 425 426
				tmp = rinfo[j].index;
				rinfo[j].index = rinfo[j + 1].index;
				rinfo[j + 1].index = tmp;
				rinfo[rinfo[j].index].rev_index = j;
				rinfo[rinfo[j + 1].index].rev_index = j + 1;
				s = 1;
			}
		if (!s)
			break;
	}
427 428

	pinfo->target = RC_PID_TARGET_PF;
429
	pinfo->sampling_period = RC_PID_INTERVAL;
430 431 432
	pinfo->coeff_p = RC_PID_COEFF_P;
	pinfo->coeff_i = RC_PID_COEFF_I;
	pinfo->coeff_d = RC_PID_COEFF_D;
433 434 435 436 437
	pinfo->smoothing_shift = RC_PID_SMOOTHING_SHIFT;
	pinfo->sharpen_factor = RC_PID_SHARPENING_FACTOR;
	pinfo->sharpen_duration = RC_PID_SHARPENING_DURATION;
	pinfo->norm_offset = RC_PID_NORM_OFFSET;
	pinfo->fast_start = RC_PID_FAST_START;
438 439
	pinfo->rinfo = rinfo;
	pinfo->oldrate = 0;
440

441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
#ifdef CONFIG_MAC80211_DEBUGFS
	de = &pinfo->dentries;
	de->dir = debugfs_create_dir("rc80211_pid",
				     local->hw.wiphy->debugfsdir);
	de->target = debugfs_create_u32("target_pf", S_IRUSR | S_IWUSR,
					de->dir, &pinfo->target);
	de->sampling_period = debugfs_create_u32("sampling_period",
						 S_IRUSR | S_IWUSR, de->dir,
						 &pinfo->sampling_period);
	de->coeff_p = debugfs_create_u32("coeff_p", S_IRUSR | S_IWUSR,
					 de->dir, &pinfo->coeff_p);
	de->coeff_i = debugfs_create_u32("coeff_i", S_IRUSR | S_IWUSR,
					 de->dir, &pinfo->coeff_i);
	de->coeff_d = debugfs_create_u32("coeff_d", S_IRUSR | S_IWUSR,
					 de->dir, &pinfo->coeff_d);
	de->smoothing_shift = debugfs_create_u32("smoothing_shift",
						 S_IRUSR | S_IWUSR, de->dir,
						 &pinfo->smoothing_shift);
	de->sharpen_factor = debugfs_create_u32("sharpen_factor",
					       S_IRUSR | S_IWUSR, de->dir,
					       &pinfo->sharpen_factor);
	de->sharpen_duration = debugfs_create_u32("sharpen_duration",
						  S_IRUSR | S_IWUSR, de->dir,
						  &pinfo->sharpen_duration);
	de->norm_offset = debugfs_create_u32("norm_offset",
					     S_IRUSR | S_IWUSR, de->dir,
					     &pinfo->norm_offset);
	de->fast_start = debugfs_create_bool("fast_start",
					     S_IRUSR | S_IWUSR, de->dir,
					     &pinfo->fast_start);
#endif

473 474 475 476 477 478
	return pinfo;
}

static void rate_control_pid_free(void *priv)
{
	struct rc_pid_info *pinfo = priv;
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
#ifdef CONFIG_MAC80211_DEBUGFS
	struct rc_pid_debugfs_entries *de = &pinfo->dentries;

	debugfs_remove(de->fast_start);
	debugfs_remove(de->norm_offset);
	debugfs_remove(de->sharpen_duration);
	debugfs_remove(de->sharpen_factor);
	debugfs_remove(de->smoothing_shift);
	debugfs_remove(de->coeff_d);
	debugfs_remove(de->coeff_i);
	debugfs_remove(de->coeff_p);
	debugfs_remove(de->sampling_period);
	debugfs_remove(de->target);
	debugfs_remove(de->dir);
#endif

495
	kfree(pinfo->rinfo);
496 497 498 499 500 501 502 503 504 505 506 507
	kfree(pinfo);
}

static void rate_control_pid_clear(void *priv)
{
}

static void *rate_control_pid_alloc_sta(void *priv, gfp_t gfp)
{
	struct rc_pid_sta_info *spinfo;

	spinfo = kzalloc(sizeof(*spinfo), gfp);
M
Mattias Nissler 已提交
508 509 510
	if (spinfo == NULL)
		return NULL;

511 512
	spinfo->last_sample = jiffies;

M
Mattias Nissler 已提交
513 514 515 516
#ifdef CONFIG_MAC80211_DEBUGFS
	spin_lock_init(&spinfo->events.lock);
	init_waitqueue_head(&spinfo->events.waitqueue);
#endif
517 518 519 520 521 522 523 524 525 526

	return spinfo;
}

static void rate_control_pid_free_sta(void *priv, void *priv_sta)
{
	struct rc_pid_sta_info *spinfo = priv_sta;
	kfree(spinfo);
}

527
static struct rate_control_ops mac80211_rcpid = {
528 529 530 531 532 533 534 535 536
	.name = "pid",
	.tx_status = rate_control_pid_tx_status,
	.get_rate = rate_control_pid_get_rate,
	.rate_init = rate_control_pid_rate_init,
	.clear = rate_control_pid_clear,
	.alloc = rate_control_pid_alloc,
	.free = rate_control_pid_free,
	.alloc_sta = rate_control_pid_alloc_sta,
	.free_sta = rate_control_pid_free_sta,
M
Mattias Nissler 已提交
537 538 539 540
#ifdef CONFIG_MAC80211_DEBUGFS
	.add_sta_debugfs = rate_control_pid_add_sta_debugfs,
	.remove_sta_debugfs = rate_control_pid_remove_sta_debugfs,
#endif
541
};
542 543 544 545 546 547 548 549 550 551 552

MODULE_DESCRIPTION("PID controller based rate control algorithm");
MODULE_AUTHOR("Stefano Brivio");
MODULE_AUTHOR("Mattias Nissler");
MODULE_LICENSE("GPL");

int __init rc80211_pid_init(void)
{
	return ieee80211_rate_control_register(&mac80211_rcpid);
}

553
void rc80211_pid_exit(void)
554 555 556 557 558 559 560 561
{
	ieee80211_rate_control_unregister(&mac80211_rcpid);
}

#ifdef CONFIG_MAC80211_RC_PID_MODULE
module_init(rc80211_pid_init);
module_exit(rc80211_pid_exit);
#endif