summaryrefslogtreecommitdiff
path: root/cp/msg/src/msg_cm.c
blob: e03268084ca97ca581cca9dd5a9aa00164d73725 (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp/msg/msg_cm.c
 * \brief   
 * \ingroup cp_msg
 */

#include "common/std.h"
#include "cp/msg/inc/msg_cm.h"


void
msg_cm_unassociated_sta_ind_send(const mac_address_t oda)
{
    // 11.5.1
    msg_mme_t *msg;
    cm_unassociated_sta_t *unassociated_sta;
    msg_param_t msg_param;
    
    msg = msg_sending_common_part(oda);
    msg->mm_type = CM_UNASSOCIATED_STA_IND;
    // set the message values
    unassociated_sta = (cm_unassociated_sta_t *) & msg->mm_entry;
    // TODO set the values...   
    // set the mnbf flag
    msg_param.mnbf = 1;
    msg_param.encrypted = true;
    // and finaly, send the message
    //printf("     send cm_unassociated_sta\n");
    msg_send(msg, sizeof(cm_unassociated_sta_t) + MSG_MME_HEADER_SIZE, msg_param);
}

/*
void
msg_cm_conn_new_req_send(msg_cm_conn_new_req_t msg)
{
    // msg_mme_t *msg;
    // cm_conn_new_req_t
}

void
msg_cm_conn_new_cnf_send()
{
    
}

void
msg_cm_conn_rel_ind_send()
{
    
}

void
msg_cm_conn_rel_rsp_send()
{
    
}

void
msg_cm_conn_mod_req_send()
{
    
}

void
msg_cm_conn_mod_cnf_send()
{
    
}

void
msg_cm_conn_info_req_send()
{
    
}

void
msg_cm_conn_info_cnf_send()
{
    
}
*/