func: static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev) struct brcmf_if * ifp = netdev_priv ( ndev ) ; struct brcmf_join_params join_params ; if ( ifp -> vif -> wdev . iftype == NL80211_IFTYPE_AP )  if ( ifp -> vif -> mbss )  memset ( & join_params , 0 , sizeof ( join_params ) ); err = brcmf_fil_cmd_data_set ( ifp , BRCMF_C_SET_SSID , & join_params , sizeof ( join_params ) ); if ( err < 0 )  brcmf_err ( "SET SSID error (%d)\n" , err ); if ( err < 0 )  brcmf_err ( "BRCMF_C_DOWN error %d\n" , err ); if ( err < 0 )  brcmf_err ( "setting AP mode failed %d\n" , err ); if ( err < 0 )  brcmf_err ( "setting INFRA mode failed %d\n" , err ); if ( err < 0 )  brcmf_err ( "restoring REGULATORY setting failed %d\n" , err ); if ( err < 0 )  brcmf_err ( "BRCMF_C_UP error %d\n" , err ); return err ; 