anchor.diff:      ACMonitor = erlang:monitor(process, AC),
   
       State = update_state_from_cfg(StationCfg, State0#state{ac = AC, ac_monitor = ACMonitor}),
  -    {reply, {ok, self()}, initial_state(MacMode), State, ?IDLE_TIMEOUT}.
  +    {next_state, initial_state(MacMode), State, [{reply, {ok, self}}, ?IDLE_TIMEOUT]}.
   
   %% partially en/decode Authentication Frames
   decode_auth_frame(<<Algo:16/little-integer, SeqNo:16/little-integer,
  
positive.code:         N -> <<Binary/binary, 0:(N*8)>>
      end.
  
  format_mac(<<A:8, B:8, C:8, D:8, E:8, F:8>>) ->
      flat_format("~2.16.0b:~2.16.0b:~2.16.0b:~2.16.0b:~2.16.0b:~2.16.0b", [A, B, C, D, E, F]);
  format_mac(MAC) ->
  
negative.code: 			      rekey_tref = undefined} = State)
    when is_integer(Interval) andalso Interval > 0 ->
      lager:debug("Starting rekey for PTK in ~w", [Interval]),
      TRef = erlang:send_after(Interval * 1000, self(), {rekey, ptk}),
      State#state{rekey_tref = TRef};
  rekey_timer_start(_Type, State) ->
      State.
  
  rekey_timer_stop(ptk, #state{rekey_tref = TRef} = State)
    when is_reference(TRef) ->
      cancel_timer(TRef),
      State#state{rekey_tref = undefined};
  rekey_timer_stop(_Type, State) ->
      State.
  