anchor.diff:  		[StationMAC, StationCount, MaxStations]),
       {{error, too_many_clients}, State};
   
  -internal_new_station(Wlan = #wlan{bss = BSS}, StationMAC,
  +internal_new_station(Wlan = #wlan{}, StationMAC, BSS,
   		     State = #state{id = WtpId, station_count  = StationCount}) ->
   
       %% we have to repeat the search again to avoid a race
  
positive.code:        gtk = GTK, igtk = IGTK
        }.
  
  internal_new_station(#wlan{}, StationMAC,
  		     State = #state{config = #wtp{max_stations = MaxStations},
  				    station_count  = StationCount})
    when StationCount + 1 > MaxStations ->
  
negative.code:     State#state{wlans =
  		    lists:keystore(WlanIdent, #wlan.wlan_identifier, Wlans, Fun(Wlan))}.
  
  get_station_cfg(#wlan{mac_mode = MacMode, tunnel_mode = TunnelMode,
  		      information_elements = IEs,
  		      wpa_config = WpaConfig, gtk = GTK, igtk = IGTK},
  		BSS,
  		#state{id = WtpId, session_id = SessionId,
  		       data_channel_address = WTPDataChannelAddress, data_path = DataPath}) ->
      #station_config{
  