Problem solved
In struct ST_INFO the power is a signed int while station mac is an unsigned char array and the array to which I was writing to is also an unsigned char array.
So I did the following,
unsigned char power[2];
power[0]=abs(st_cur->power);
...
In struct ST_INFO the power is a signed int while station mac is an unsigned char array and the array to which I was writing to is also an unsigned char array.
So I did the following,
unsigned char power[2];
power[0]=abs(st_cur->power);
...