anchor.diff:              [D] = mnesia:read(links, DevAddr, write),
               FCnt = (D#link.fcntdown + 1) band 16#FFFFFFFF,
               NewD = D#link{fcntdown=FCnt},
  -            mnesia:write(links, NewD, write),
  +            ok = mnesia:write(links, NewD, write),
               NewD
           end),
       encode_frame(MType, DevAddr, L#link.nwkskey, L#link.appskey,
  
positive.code:         [] ->
              {error, {{gateway, MAC}, unknown_mac}};
          [G] ->
              mnesia:dirty_write(gateways,
                  store_status(G#gateway{last_rx=calendar:universal_time()}, S)),
              ok
      end.
  
negative.code:             [D] = mnesia:read(multicast_groups, DevAddr, write),
              FCnt = (D#multicast_group.fcntdown + 1) band 16#FFFFFFFF,
              NewD = D#multicast_group{fcntdown=FCnt},
              ok = mnesia:write(multicast_groups, NewD, write),
              NewD
          end),
      encode_frame(MType, DevAddr, G#multicast_group.nwkskey, G#multicast_group.appskey,
  