summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/net/wireless/b43legacy/rfkill.h
blob: 75585571c544872a3f476222aa16161879ad206d (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef B43legacy_RFKILL_H_
#define B43legacy_RFKILL_H_

struct ieee80211_hw;
struct b43legacy_wldev;

void b43legacy_rfkill_poll(struct ieee80211_hw *hw);

bool b43legacy_is_hw_radio_enabled(struct b43legacy_wldev *dev);

#endif /* B43legacy_RFKILL_H_ */
class="cp"> #include <linux/errno.h> #include <linux/err.h> #include "include/sid.h" /* global counter from which sids are allocated */ static u32 global_sid; static DEFINE_SPINLOCK(sid_lock); /* TODO FIXME: add sid to profile mapping, and sid recycling */ /** * aa_alloc_sid - allocate a new sid for a profile */ u32 aa_alloc_sid(void) { u32 sid; /* * TODO FIXME: sid recycling - part of profile mapping table */ spin_lock(&sid_lock); sid = (++global_sid); spin_unlock(&sid_lock); return sid; } /** * aa_free_sid - free a sid * @sid: sid to free */ void aa_free_sid(u32 sid) { ; /* NOP ATM */ }