Handles the values read from cisco.conf
FossilOrigin-Name: ee37d51eeb70863e55facb8bc5df55971ff58e86ca26bc354e5aa175ce35bbc8
This commit is contained in:
parent
64426362cb
commit
abc2f00191
@ -21,14 +21,15 @@ int cisco_out_ac_descriptor(struct conn *conn,struct cw_action_out * a,uint8_t *
|
|||||||
|
|
||||||
d+=cw_put_ac_status(d ,(struct cw_ac_status*)(i->data),conn);
|
d+=cw_put_ac_status(d ,(struct cw_ac_status*)(i->data),conn);
|
||||||
|
|
||||||
|
|
||||||
/* Send back the same software version as the WTP has,
|
|
||||||
otherwise the AP wants us to send an image */
|
|
||||||
|
|
||||||
//i = mbag_get(conn->incomming,CW_ITEM_WTP_SOFTWARE_VERSION);
|
|
||||||
|
|
||||||
|
|
||||||
i = mbag_get(cisco_config,CW_ITEM_AC_SOFTWARE_VERSION);
|
i = mbag_get(cisco_config,CW_ITEM_AC_SOFTWARE_VERSION);
|
||||||
|
|
||||||
|
if (!i){
|
||||||
|
/* Send back the same software version as the WTP has,
|
||||||
|
otherwise the AP wants us to send an image */
|
||||||
|
i = mbag_get(conn->incomming,CW_ITEM_WTP_SOFTWARE_VERSION);
|
||||||
|
}
|
||||||
|
|
||||||
if ( i ) {
|
if ( i ) {
|
||||||
d += cw_put_version(d,1,i->data);
|
d += cw_put_version(d,1,i->data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user