Home | History | Annotate | Download | only in sys

Lines Matching defs:ndev

75 static int32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev,
77 static int32 __wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
79 static int32 wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
135 static int32 wl_notify_connect_status(struct wl_priv *wl, struct net_device *ndev,
137 static int32 wl_notify_roaming_status(struct wl_priv *wl, struct net_device *ndev,
139 static int32 wl_notify_scan_status(struct wl_priv *wl, struct net_device *ndev,
141 static int32 wl_bss_connect_done(struct wl_priv *wl, struct net_device *ndev,
143 static int32 wl_bss_roaming_done(struct wl_priv *wl, struct net_device *ndev,
145 static int32 wl_notify_mic_status(struct wl_priv *wl, struct net_device *ndev,
247 static int32 wl_dongle_mode(struct net_device *ndev, int32 iftype);
257 static int32 wl_dongle_mode(struct net_device *ndev, int32 iftype);
258 static int32 wl_dongle_country(struct net_device *ndev, uint8 ccode);
259 static int32 wl_dongle_up(struct net_device *ndev, uint32 up);
260 static int32 wl_dongle_power(struct net_device *ndev, uint32 power_mode);
261 static int32 wl_dongle_glom(struct net_device *ndev, uint32 glom, uint32 dongle_align);
262 static int32 wl_dongle_roam(struct net_device *ndev, uint32 roamvar, uint32 bcn_timeout);
263 static int32 wl_dongle_eventmsg(struct net_device *ndev);
264 static int32 wl_dongle_scantime(struct net_device *ndev, int32 scan_assoc_time,
266 static int32 wl_dongle_offload(struct net_device *ndev, int32 arpoe, int32 arp_ol);
268 static int32 wl_dongle_filter(struct net_device *ndev, uint32 filter_mode);
586 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev,
616 wdev = ndev->ieee80211_ptr;
618 WL_DBG(("%s : ap (%d), infra (%d)\n", ndev->name, ap, infra));
619 if (unlikely((err = wl_dev_ioctl(ndev, WLC_SET_INFRA, &infra, sizeof(infra)))) ||
620 unlikely((err = wl_dev_ioctl(ndev, WLC_SET_AP, &ap, sizeof(ap))))) {
755 __wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
758 struct wl_priv *wl = ndev_to_wl(ndev);
827 if (unlikely((err = wl_dev_ioctl(ndev, WLC_SET_PASSIVE_SCAN,
833 if ((err = wl_dev_ioctl(ndev, WLC_SCAN, &sr->ssid, sizeof(sr->ssid)))) {
857 wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
866 if (unlikely((err = __wl_cfg80211_scan(wiphy, ndev, request, NULL)))) {
976 struct net_device *ndev = wl_to_ndev(wl);
986 if (!(err = wl_set_rts(ndev, wl->conf->rts_threshold))) {
993 if (!(err = wl_set_frag(ndev, wl->conf->frag_threshold))) {
999 if (!(err = wl_set_retry(ndev, wl->conf->retry_long, TRUE))) {
1005 if (!(err = wl_set_retry(ndev, wl->conf->retry_short, FALSE))) {
1471 struct net_device *ndev = wl_to_ndev(wl);
1499 if (unlikely((err = wl_dev_ioctl(ndev, WLC_SET_RADIO, &disable, sizeof(disable))))) {
1508 if (unlikely((err = wl_dev_intvar_set(ndev, "qtxpower",
1525 struct net_device *ndev = wl_to_ndev(wl);
1534 if (unlikely((err = wl_dev_intvar_get(ndev, "qtxpower", &txpwrdbm)))) {
2594 wl_notify_connect_status(struct wl_priv *wl, struct net_device *ndev,
2606 cfg80211_ibss_joined(ndev, (int8 *)&e->addr, GFP_KERNEL);
2609 wl_bss_connect_done(wl, ndev, e, data);
2616 cfg80211_disconnected(ndev, 0, NULL, 0, GFP_KERNEL);
2629 wl_notify_roaming_status(struct wl_priv *wl, struct net_device *ndev,
2638 wl_bss_roaming_done(wl, ndev, e, data);
2682 struct net_device *ndev = wl_to_ndev(wl);
2689 if (unlikely(err = wl_dev_bufvar_get(ndev, "assoc_info", wl->extra_buf,
2698 if (unlikely(err = wl_dev_bufvar_get(ndev, "assoc_req_ies", wl->extra_buf,
2710 if (unlikely(err = wl_dev_bufvar_get(ndev, "assoc_resp_ies", wl->extra_buf,
2777 wl_bss_roaming_done(struct wl_priv *wl, struct net_device *ndev,
2789 cfg80211_roamed(ndev,
2805 wl_bss_connect_done(struct wl_priv *wl, struct net_device *ndev,
2818 cfg80211_connect_result(ndev,
2826 cfg80211_roamed(ndev,
2842 wl_notify_mic_status(struct wl_priv *wl, struct net_device *ndev,
2858 cfg80211_michael_mic_failure(ndev, (uint8 *)&e->addr, key_type, -1, NULL, GFP_KERNEL);
2868 wl_notify_scan_status(struct wl_priv *wl, struct net_device *ndev,
2890 if (unlikely((err = wl_dev_ioctl(ndev, WLC_GET_CHANNEL, &channel_inform,
2904 if (unlikely((err = wl_dev_ioctl(ndev, WLC_SCAN_RESULTS, bss_list, len)))) {
2905 WL_ERR(("%s Scan_results error (%d)\n", ndev->name, err));
3443 wl_cfg80211_attach(struct net_device *ndev, void *data)
3453 if (unlikely(!ndev)) {
3454 WL_ERR(("ndev is invaild\n"));
3477 ndev->ieee80211_ptr = wdev;
3478 SET_NETDEV_DEV(ndev, wiphy_dev(wdev->wiphy));
3479 wdev->netdev = ndev;
3555 wl_cfg80211_event(struct net_device *ndev, const wl_event_msg_t *e, void* data)
3558 struct wl_priv *wl = ndev_to_wl(ndev);
3660 wl_dongle_mode(struct net_device *ndev, int32 iftype)
3684 WL_DBG(("%s ap (%d), infra (%d)\n", ndev->name, ap, infra));
3685 if (unlikely(err = wl_dev_ioctl(ndev, WLC_SET_INFRA, &infra, sizeof(infra))) ||
3686 unlikely(err = wl_dev_ioctl(ndev, WLC_SET_AP, &ap, sizeof(ap)))) {
3696 wl_dongle_country(struct net_device *ndev, uint8 ccode)
3706 wl_dongle_up(struct net_device *ndev, uint32 up)
3713 if (unlikely(err = wl_dev_ioctl(ndev, WLC_UP, &up, sizeof(up)))) {
3723 wl_dongle_power(struct net_device *ndev, uint32 power_mode)
3727 if (unlikely(err = wl_dev_ioctl(ndev, WLC_SET_PM, &power_mode, sizeof(power_mode)))) {
3734 wl_dongle_glom(struct net_device *ndev, uint32 glom, uint32 dongle_align)
3741 if (unlikely(err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3747 if (unlikely(err = wl_dev_ioctl(ndev
3756 wl_dongle_roam(struct net_device *ndev, uint32 roamvar, uint32 bcn_timeout)
3764 if (unlikely(err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3771 if (unlikely(err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3780 wl_dongle_eventmsg(struct net_device *ndev)
3789 if (unlikely(err = wl_dev_ioctl(ndev, WLC_GET_VAR, iovbuf, sizeof(iovbuf)))) {
3815 if (unlikely(err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3825 wl_dongle_scantime(struct net_device *ndev, int32 scan_assoc_time, int32 scan_unassoc_time)
3829 if ((err = wl_dev_ioctl(ndev, WLC_SET_SCAN_CHANNEL_TIME, &scan_assoc_time,
3838 if ((err = wl_dev_ioctl(ndev, WLC_SET_SCAN_UNASSOC_TIME, &scan_unassoc_time,
3853 wl_dongle_offload(struct net_device *ndev, int32 arpoe, int32 arp_ol)
3860 if ((err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3869 if ((err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3908 wl_dongle_filter(struct net_device *ndev, uint32 filter_mode)
3967 if ((err = wl_dev_ioctl(ndev, WLC_SET_VAR, buf, buf_len))) {
3978 if ((err = wl_dev_ioctl(ndev, WLC_SET_VAR, iovbuf, sizeof(iovbuf)))) {
3998 struct net_device *ndev;
4009 ndev = wl_to_ndev(wl);
4010 wdev = ndev->ieee80211_ptr;
4015 if (unlikely((err = wl_dongle_up(ndev, 0))))
4017 if (unlikely((err = wl_dongle_country(ndev, 0))))
4019 if (unlikely((err = wl_dongle_power(ndev, PM_FAST))))
4021 if (unlikely((err = wl_dongle_glom(ndev, 0, DHD_SDALIGN))))
4023 if (unlikely((err = wl_dongle_roam(ndev, (wl->roam_on ? 0 : 1), 3))))
4025 if (unlikely((err = wl_dongle_eventmsg(ndev))))
4028 wl_dongle_scantime(ndev, 40, 80);
4029 wl_dongle_offload(ndev, 1, 0xf);
4030 wl_dongle_filter(ndev, 1);
4033 err = wl_dongle_mode(ndev, wdev->iftype);