-
Notifications
You must be signed in to change notification settings - Fork 82
/
settxpower.hh
54 lines (35 loc) · 920 Bytes
/
settxpower.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef CLICK_SETTXPOWER_HH
#define CLICK_SETTXPOWER_HH
#include <click/element.hh>
#include <click/glue.hh>
CLICK_DECLS
/*
=c
SetTXPower([I<KEYWORDS>])
=s Wifi
Sets the transmit power for a packet.
=d
Sets the Wifi TXPower Annotation on a packet.
Regular Arguments:
=over 8
=item POWER
Unsigned integer. from 0 to 63
=back 8
=h power
Same as POWER argument.
=a SetTXRate
*/
class SetTXPower : public Element { public:
SetTXPower() CLICK_COLD;
~SetTXPower() CLICK_COLD;
const char *class_name() const override { return "SetTXPower"; }
const char *port_count() const override { return PORTS_1_1; }
const char *processing() const override { return AGNOSTIC; }
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
bool can_live_reconfigure() const { return true; }
Packet *simple_action(Packet *);
void add_handlers() CLICK_COLD;
unsigned _power;
};
CLICK_ENDDECLS
#endif