mac operation.
FossilOrigin-Name: a95086888fdcb452f539e2178033159d4c4e0fee95616187da32263c1531e605
This commit is contained in:
parent
ed6f1186a2
commit
75ed9a93e7
17
src/cw/cw_in_80211_mac_operation.c
Normal file
17
src/cw/cw_in_80211_mac_operation.c
Normal file
@ -0,0 +1,17 @@
|
||||
#include "cw.h"
|
||||
#include "capwap80211_items.h"
|
||||
#include "dbg.h"
|
||||
#include "cw_80211.h"
|
||||
|
||||
int cw_in_80211_mac_operation(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
||||
int len, struct sockaddr *from)
|
||||
{
|
||||
int rid = cw_get_byte(data);
|
||||
mbag_t r = mbag_i_get_mbag(conn->radios,rid,NULL);
|
||||
if (!r){
|
||||
cw_dbg(DBG_ELEM_ERR,"Radio %d not defined. Can't set mac operation.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return cw_read_80211_mac_operation(data+2,r);
|
||||
}
|
Loading…
Reference in New Issue
Block a user