mac80211: add driver ops wrappers
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 23 Apr 2009 16:52:52 +0000 (18:52 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:37 +0000 (15:14 -0400)
commit2448798133d747ad339e57099e32a1d1e68aca1c
treeee09385f5dca9e243c38f5f888baa02605423bd7
parent2d0ddec5b2b859f06116f631fc0ffe94fbceb556
mac80211: add driver ops wrappers

In order to later add tracing or verifications to the driver
calls mac80211 makes, this patch adds static inline wrappers
for all operations.

All calls are now written as

drv_<op>(local, ...);

instead of

local->ops-><op>(&local->hw, ...);

Where necessary, the wrappers also do existence checking and
return default values as appropriate.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 files changed:
net/mac80211/agg-rx.c
net/mac80211/agg-tx.c
net/mac80211/cfg.c
net/mac80211/debugfs.c
net/mac80211/driver-ops.h [new file with mode: 0644]
net/mac80211/ibss.c
net/mac80211/iface.c
net/mac80211/key.c
net/mac80211/main.c
net/mac80211/mlme.c
net/mac80211/pm.c
net/mac80211/rx.c
net/mac80211/scan.c
net/mac80211/sta_info.c
net/mac80211/tkip.c
net/mac80211/tx.c
net/mac80211/util.c