@@ -103,7 +103,7 @@ __cfg80211_wdev_from_attrs(struct net *netns, struct nlattr **attrs)
103103 if (have_wdev_id && rdev -> wiphy_idx != wiphy_idx )
104104 continue ;
105105
106- list_for_each_entry (wdev , & rdev -> wdev_list , list ) {
106+ list_for_each_entry (wdev , & rdev -> wiphy . wdev_list , list ) {
107107 if (have_ifidx && wdev -> netdev &&
108108 wdev -> netdev -> ifindex == ifidx ) {
109109 result = wdev ;
@@ -149,7 +149,7 @@ __cfg80211_rdev_from_attrs(struct net *netns, struct nlattr **attrs)
149149 tmp = cfg80211_rdev_by_wiphy_idx (wdev_id >> 32 );
150150 if (tmp ) {
151151 /* make sure wdev exists */
152- list_for_each_entry (wdev , & tmp -> wdev_list , list ) {
152+ list_for_each_entry (wdev , & tmp -> wiphy . wdev_list , list ) {
153153 if (wdev -> identifier != (u32 )wdev_id )
154154 continue ;
155155 found = true;
@@ -535,7 +535,7 @@ static int nl80211_prepare_wdev_dump(struct sk_buff *skb,
535535 * rdev = wiphy_to_rdev (wiphy );
536536 * wdev = NULL ;
537537
538- list_for_each_entry (tmp , & (* rdev )-> wdev_list , list ) {
538+ list_for_each_entry (tmp , & (* rdev )-> wiphy . wdev_list , list ) {
539539 if (tmp -> identifier == cb -> args [1 ]) {
540540 * wdev = tmp ;
541541 break ;
@@ -2490,7 +2490,7 @@ static int nl80211_dump_interface(struct sk_buff *skb, struct netlink_callback *
24902490 }
24912491 if_idx = 0 ;
24922492
2493- list_for_each_entry (wdev , & rdev -> wdev_list , list ) {
2493+ list_for_each_entry (wdev , & rdev -> wiphy . wdev_list , list ) {
24942494 if (if_idx < if_start ) {
24952495 if_idx ++ ;
24962496 continue ;
@@ -2762,7 +2762,7 @@ static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info)
27622762 spin_lock_init (& wdev -> mgmt_registrations_lock );
27632763
27642764 wdev -> identifier = ++ rdev -> wdev_id ;
2765- list_add_rcu (& wdev -> list , & rdev -> wdev_list );
2765+ list_add_rcu (& wdev -> list , & rdev -> wiphy . wdev_list );
27662766 rdev -> devlist_generation ++ ;
27672767 break ;
27682768 default :
@@ -3298,7 +3298,7 @@ static bool nl80211_get_ap_channel(struct cfg80211_registered_device *rdev,
32983298 struct wireless_dev * wdev ;
32993299 bool ret = false;
33003300
3301- list_for_each_entry (wdev , & rdev -> wdev_list , list ) {
3301+ list_for_each_entry (wdev , & rdev -> wiphy . wdev_list , list ) {
33023302 if (wdev -> iftype != NL80211_IFTYPE_AP &&
33033303 wdev -> iftype != NL80211_IFTYPE_P2P_GO )
33043304 continue ;
@@ -10392,7 +10392,7 @@ static int nl80211_prepare_vendor_dump(struct sk_buff *skb,
1039210392 * wdev = NULL ;
1039310393
1039410394 if (cb -> args [1 ]) {
10395- list_for_each_entry (tmp , & ( * rdev ) -> wdev_list , list ) {
10395+ list_for_each_entry (tmp , & wiphy -> wdev_list , list ) {
1039610396 if (tmp -> identifier == cb -> args [1 ] - 1 ) {
1039710397 * wdev = tmp ;
1039810398 break ;
@@ -13413,7 +13413,7 @@ static int nl80211_netlink_notify(struct notifier_block * nb,
1341313413 sched_scan_req -> owner_nlportid == notify -> portid )
1341413414 schedule_scan_stop = true;
1341513415
13416- list_for_each_entry_rcu (wdev , & rdev -> wdev_list , list ) {
13416+ list_for_each_entry_rcu (wdev , & rdev -> wiphy . wdev_list , list ) {
1341713417 cfg80211_mlme_unregister_socket (wdev , notify -> portid );
1341813418
1341913419 if (wdev -> owner_nlportid == notify -> portid )
0 commit comments