26 #include <linux/capability.h>
34 #define GENERIC_FILESIZE 64
36 static int get_integer(
const char *
buf,
size_t count)
38 char tmp[10 + 1] = { 0 };
43 count =
min(count, (
size_t) 10);
54 struct b43_wldev *wldev = dev_to_b43_wldev(dev);
67 switch (wldev->
phy.g->interfmode) {
71 "0 (No Interference Mitigation)\n");
76 "1 (Non-WLAN Interference Mitigation)\n");
81 "2 (WLAN Interference Mitigation)\n");
94 const char *buf,
size_t count)
96 struct b43_wldev *wldev = dev_to_b43_wldev(dev);
103 mode = get_integer(buf, count);
123 if (wldev->
phy.ops->interf_mitigation) {
124 err = wldev->
phy.ops->interf_mitigation(wldev, mode);
126 b43err(wldev->
wl,
"Interference Mitigation not "
127 "supported by device\n");
135 return err ? err :
count;
139 b43_attr_interfmode_show, b43_attr_interfmode_store);