26 #include <linux/random.h>
44 (self->provider.filter_operation ==
DYNAMIC))
46 IRDA_DEBUG(0,
"Giving peer a dynamic Ethernet address\n");
47 self->provider.mac_address[0] = 0x40;
48 self->provider.mac_address[1] = 0x00;
49 self->provider.mac_address[2] = 0x00;
50 self->provider.mac_address[3] = 0x00;
54 self->provider.mac_address[4] =
55 self->provider.send_arb_val & 0xff;
56 self->provider.mac_address[5] =
57 (
self->provider.send_arb_val >> 8) & 0xff;
69 self->provider.mac_address, 6);
74 (self->provider.filter_mode ==
FILTER))
82 (self->provider.filter_mode ==
NONE))
91 (self->provider.filter_mode ==
FILTER))
99 (self->provider.filter_mode ==
NONE))
107 (self->provider.filter_mode ==
FILTER))
115 (self->provider.filter_mode ==
NONE))
123 (self->provider.filter_operation ==
GET))
156 if (
strcmp(param,
"MODE") == 0) {
158 self->use_udata =
TRUE;
165 if (
strcmp(param,
"FILTER_TYPE") == 0) {
166 if (
strcmp(value,
"DIRECTED") == 0) {
170 if (
strcmp(value,
"MULTICAST") == 0) {
174 if (
strcmp(value,
"BROADCAST") == 0) {
182 if (
strcmp(param,
"FILTER_MODE") == 0) {
183 if (
strcmp(value,
"ALL") == 0) {
184 self->provider.filter_mode =
ALL;
187 if (
strcmp(value,
"FILTER") == 0) {
188 self->provider.filter_mode =
FILTER;
191 if (
strcmp(value,
"NONE") == 0) {
192 self->provider.filter_mode =
FILTER;
199 if (
strcmp(param,
"FILTER_OPERATION") == 0) {
200 if (
strcmp(value,
"DYNAMIC") == 0) {
201 self->provider.filter_operation =
DYNAMIC;
204 if (
strcmp(value,
"GET") == 0) {
205 self->provider.filter_operation =
GET;
217 #ifdef CONFIG_PROC_FS
218 #define MASK2STR(m,s) { .mask = m, .str = s }
225 } filter_mask2str[] = {
236 for (
p = filter_mask2str;
p->str;
p++) {
237 if (filter_type &
p->mask)